modify ingest timestamp format check to remove timezone

This commit is contained in:
Tal Levy 2017-05-09 14:33:43 -07:00
parent b6906702cc
commit d2416a3a40
1 changed files with 13 additions and 1 deletions

View File

@ -24,11 +24,23 @@
"value": "{{ _ingest.timestamp }}"
}
},
{
"grok" : {
"field" : "my_time",
"patterns": ["%{DAY:day} %{MONTH:month} %{MONTHDAY:monthday} %{TIME:time} %{TZ} %{YEAR:year}"]
}
},
{
"set": {
"field": "my_time",
"value": "{{day}} {{month}} {{monthday}} {{time}} {{year}}"
}
},
{
"date" : {
"field" : "my_time",
"target_field": "my_time",
"formats": ["EEE MMM dd HH:mm:ss zzz yyyy"]
"formats": ["EEE MMM dd HH:mm:ss yyyy"]
}
}
]