Hi,
I have a nested json in a field like this:
{
....
"host" => "repo1.server.io",
"source" => "/mnt/centralizedlogs/logstash/netsec/48851f14d3e9/2017-06-08.txt",
"message" => "{"@timestamp"=>"2017-06-08T07:06:13.427Z", "@version"=>"1", "beat"=>{"hostname"=>"48851f14d3e9", "name"=>"48851f14d3e9", "version"=>"5.4.1"}, "group"=>"netsec", "host"=>"48851f14d3e9", "identifier"=>"asalog", "input_type"=>"log", "message"=>"Jun 8 02:06:12 172.16.124.1 %ASA-4-106023: Deny tcp src OUTSIDE:104.168.182.194/59523 dst ProdWeb:10.246.165.119/3555 by access-group \"101\" [0x0, 0x0]", "offset"=>44112925, "source"=>"/var/log/asa/asa.log", "tags"=><Java::JavaUtil::ArrayList:-1276964729 ["beats_input_codec_plain_applied"]>, "type"=>"log"}",
....
}
I tried to do:
json
{
source => "message"
target => "parsed"
}
also tried to add_field with:
"%{[message][identifier]}"
"%{[message][0][identifier]}"
[message][identifier]
not working
Also in the input i tried:
codec => "json"
Always I get a : [0] "_jsonparsefailure",
any ideas? what I'm doing wrong?
Thank you very much!