modify ingest timestamp format check to remove timezone
This commit is contained in:
parent
b6906702cc
commit
d2416a3a40
|
@ -24,11 +24,23 @@
|
||||||
"value": "{{ _ingest.timestamp }}"
|
"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" : {
|
"date" : {
|
||||||
"field" : "my_time",
|
"field" : "my_time",
|
||||||
"target_field": "my_time",
|
"target_field": "my_time",
|
||||||
"formats": ["EEE MMM dd HH:mm:ss zzz yyyy"]
|
"formats": ["EEE MMM dd HH:mm:ss yyyy"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue