Filebeat JSON parsing Error

Here is my filebeat configuration in windows

  • type: log

    enabled: true

    paths:

    • c:\logs*
      json.keys_under_root: true
      json.add_error_key: true

and my log looks like:

{"level":30,"time":1520891892759,"pid":15268,"hostname":"DESKTOP-BMTMN1M","message":"** APP START **","type":"init","v":1}
{"level":30,"time":1520891892760,"pid":15268,"hostname":"DESKTOP-BMTMN1M","message":"listening on *:3456","type":"init","v":1}
{"level":30,"time":1520891893972,"pid":15268,"hostname":"DESKTOP-BMTMN1M","message":"hpWfK9Zv81TBU84CAAAA user connected","type":"client","v":1}
{"level":30,"time":1520891895760,"pid":15268,"hostname":"DESKTOP-BMTMN1M","message":"DB - Get Exchange Info, Pair Maps","type":"init","v":1}
{"level":30,"time":1520891896191,"pid":15268,"hostname":"DESKTOP-BMTMN1M","message":"INIT: Exchanges","type":"init","v":1}
{"level":30,"time":1520891898892,"pid":15268,"hostname":"DESKTOP-BMTMN1M","message":"INIT: pairMapLookup","type":"init","v":1}
{"level":30,"time":1520891898898,"pid":15268,"hostname":"DESKTOP-BMTMN1M","message":"INIT: Fetch Balances","type":"init","v":1}

but i keep getting this JSON parsing error in filebeat:
Error decoding JSON: invalid character '\x00' looking for beginning of value

each log statement is contained in one line, and each line is terminated with a CR,LF

Do you get an error for each line or only some of the lines?

Which Filebeat version are you using?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.