Hello, I would like to add a json string in the logstash output, and in the future save the output "call output_db" in a postgreSQL database, however, I still can not get the initial step of inserting the whole string into the logstash output.
logstash.conf:
input {
beats {
port => "5043"
type => "json"
}
Have a look a the json_encode filter for producing the JSON string. Once that's working, reference it in the jdbc output with the standard %{name-of-field} syntax.
And on the json string in a single field, is it possible? I already researched a lot using json and mutate filter but I was not successful.
add_field => { "output"=> {"from":"workstationSMD","event":{"product":{},"moment":"2015121418011800","status":{},"data":"%{message}"}}}
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.