Hmm strange because the only brackets in the file are the brackets of the field images:
[2021-05-13T00:00:37,436][ERROR][logstash.codecs.json ][main][08ae9b307c2d0f73d6caf27e682f549d737fbda856d1ad084aa68cedaff5eb62] JSON parse error, original data now in message field {:error=>#<LogStash::Json::ParserError: Unexpected close marker ']': expected '}' (for root starting at [Source: (String)"]["; line: 1, column: 0])
at [Source: (String)"]["; line: 1, column: 2]>, :data=>"]["}
I didn't restart logstash after changing the config file. I have restarted it and tried again but no errors occur but also the data is not coming into elastic.
The in-memory sincedb (which records how much of the file logstash has processed) is persisted across restarts by default. You will need to append data to the file, or else use sincedb_path => "/dev/null"
Oke i figured out that the error was occured of the other index. But it still leaves me with the issue.
If i completely remove the json file and add new data to it it starts with [ and ends with ] do i need to remove these brackets or do i need to use another codec or something?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.