Hi,
I am trying to parse a log but i have this error.
[source] tried to parse field [source] as object, but found a concrete value
if "string" in [tags] {
grok {
match => [ "message", "(?<ts>(.*?))\t(?<fuid>(.*?))\t(?<tx_hosts>(.*?))\t(?<rx_hosts>(.*?))\t(?<conn_uids>(.*?))\t(?<source>(.*?))\t(?<depth>(.*?))\t(?<analyzers>(.*?))\t(?<mime_type>(.*?))\t(?<filename>(.*?))\t(?<duration>(.*?))\t(?<local_orig>(.*?))\t(?<is_orig>(.*?))\t(?<seen_bytes>(.*?))\t(?<total_bytes>(.*?))\t(?<missing_bytes>(.*?))\t(?<overflow_bytes>(.*?))\t(?<timedout>(.*?))\t(?<parent_fuid>(.*?))\t(?<md5>(.*?))\t(?<sha1>(.*?))\t(?<sha256>(.*?))\t(?<extracted>(.*))" ]
}
mutate {
add_tag => ["hello world from source"]
convert => [ "source", "string" ]
}
}
The actual log
1295981542.761080 FLNLOJ2zgI814vI3Lh 72.14.213.102 192.168.3.131 COcbTZ3MjJb30W6Wba HTTP 0 (empty) text/json - 0.000000 - F 273 - 0 0 F - - - - - - -
Thank you in advance!