Hello,
I created a pipeline to parse log file I want to parse datetime as follow
17/08/2021:12:14:50 +0200
Or
17/Aug/2021:12:14:50 +0200
I wrote pipeline
"patterns" : [
"%{HTTPDATE:time}
....
{
"date" : {
"field" : "time",
"target_field" : "@timestamp",
"formats" : [
"dd/MM/yyyy:H:m:s Z || dd/MMM/yyyy:H:m:s Z"
],
"timezone" : "Europe/Rome",
"on_failure" : [
{
"append" : {
"field" : "error.message",
"value" : "{{_ingest.on_failure_message}}"
}
}
]
}
}
Everything works well when I use format
17/Aug/2021:12:14:50 +0200
but fails when I use
17/08/2021:12:14:50 +0200
Has someone solved it?
best regards