Hi Ninjas
I have two different json logs which looks like this:
{"version":"1.1","host":"t800.skynet.com","short_message":"Msg TzjTJPqvUaGqaOpHXFdKXyXVaHiLpbTKfhePqbEtammLeaZVaaTb \r\n","full_message":"Msg TzjTJPqvUaGqaOpHXFdKXyXVaHiLpbTKfhePqbEtammLeaZVaaTb \r\n","timestamp":1484920098.408,"level":4,"_app":"skynet","_level_name":"WARN","_mdcKeybIwMa":"mdcValueNYUGJgYJaTFaWcdicara","_thread_name":"sample","_logger_name":"common.log.json.LogFileProducer","_env":"ut"}
and the other one looks like this:
{"timestamp":"2017-01-20 14:48:18.428","level":"DEBUG","thread":"sample","logger":"common.log.json.LogFileProducer","msg":"Msg TzjTJPqvUaGqaOpHXFdKXyXVaHiLpbTKfhePqbEtammLeaZVaaTb","mdc":{"mdcKeybIwMa":"mdcValueNYUGJgYJaTFaWcdicara"}}
Those files are located on a windows machine where i have installed a Universal Forwarder(6.5x) with the following settings:
props.conf:
[my_json_sourcetype]
INDEXED_EXTRACTIONS = json
TIMESTAMP_FIELDS = timestamp
And a poper inputs.conf which simply points to the appropriate directory using monitor and applying the sourcetype "my_json_sourcetype".
Now the problem which is driving me nuts:
The Events come in in correct json format on the indexer, but searching on them shows that not all the fields are extracted, such as all the "mdc" keyvalue fields are ignored completely.
Now the fact which is driving me even more nuts:
Uploading the exact same log file by using the add data feature directly on my linux indexer with the same sourcetype (copied the props from the forwarder as descibed above) works perfect and extracts all the fields absolutely perfect - including the mdc key value fields.
The forwarder or indexer logs show absolutely nothing in that case, everything seems to work "fine".
Any ideas why the forwarder handles the data differently and why not all the fields are extracted? And why it works with the same settings on my indexer? Did i miss a setting concerning indexed_extractions on the uf?
Any help is appreciated, thx
Cheers
Salem
... View more