I'm using gsub and regex to structure a field into json. Unfortunately, I'm having problems with double-quotes being escaped in the output. For example:
Field: event
Value: 'success': True
"event", "'", "\"",
Expected output "success": True
Actual output:
Kibana Table format
Kibana JSON format
Logstash pipeline config:
If I change the pipeline config and omit the escaping backslash character, Logstash throws an error: Expected one of [ \\t\\r\\n], \"#\", \"{\", \",\", \"]\" at line 215, column 29
Looking further into what im doing, it looks like gsub also doesn't support using capture groups and substitution? For example "event", "string (capture this)", "$1"
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.