Hi I have log files with multiple json lines. Each json has single quotes and some of the values do not even has any quote. Due to this single quote and absence of quote issue, I cannot index them to elasticsearch. Through logstash I need to replace all single quotes to double quotes and also add double quotes to all constant type values (i.e: True, None to "True", "None" etc.).
If you could help please? Example data:
Hi @Badger, I will try. Need a suggestion. Though I have shared the formatted jsons in the question, actually my jsons are not formatted in the log file. There are many single line jsons in each log file. Example:
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.