Good morning, I have a problem creating an index, it happens that @timestamp does not appear to me, this is an example of the date in the log file:
####<Mar 15, 2020 11:44:28 PM CLST> <Info> <Health> <vp1mw220> <osb_Teleton02> <weblogic.GCMonitor> <<anonymous>> <> <48acf31c77bb5441:19522313:170cc2728eb:-7ffd-0000000000000033> <1584326668140> <BEA-310002> <41% of the total memory in the server is free>
####<Mar 15, 2020 11:45:28 PM CLST> <Info> <Health> <vp1mw220> <osb_Teleton02> <weblogic.GCMonitor> <<anonymous>> <> <48acf31c77bb5441:19522313:170cc2728eb:-7ffd-0000000000000033> <1584326728141> <BEA-310002> <20% of the total memory in the server is free>
This is the filter I am using:
filter {
if [document_type] == "busteleton" {
grok {
match => {"message" => [
"(?m)%{COMMON_LOG:date}%{DATA:trash} <%{WORD:level}> <%{WORD:tipo}> <%{WORD:maquina}> <%{WORD:instancia}> <%{DATA:trash}> <%{DATA:trash}> <%{DATA:trash}> <%{DATA:trash}> <%{DATA:trash}> <%{DATA:bea}> %{GREEDYDATA:traza}",
"(?m)%{COMMON_LOG:date}%{DATA:trash} <%{WORD:level}> <%{WORD:tipo}> <%{DATA:bea}> %{GREEDYDATA:traza}"
]}
}
mutate {
add_field => { "fecha_bus" => "%{date}" }
remove_field => ["tags","message","agent","input","type","trash","host","log","file","path","offset","ecs","version","@version"]
rename => {"@timestamp" => "processTime"}
}
date {
match => ["fecha_bus", "MMM d, yyyy hh:mm:ss aa"]
target => "@timestamp"
}
}
}
When I want to create an index, only "processtime" appears, please help me
Thanks
Luis