I'm trying to record the full JSON message that is posted along with all the fields. I've tried something similar to the following input with no luck. Any ideas on what I'm doing wrong?
@magnusbaeck I'm not really following what you're doing here.. Are you posting the message as: "{\"foo\": \"bar\"}"? Are you purposely setting the raw_message field as the same?
There's a possibility I'm just misinterpreting what you're doing here.
To clarify what I'm trying to accomplish, I'd like to see the full message come in and be indexed as one long field, like a log message would be. So ideally the message would get correctly parsed so I'd be able to see all fields and another field with the entire message in it.
Are you posting the message as: "{\"foo\": \"bar\"}"?
Yes. See my curl command.
Are you purposely setting the raw_message field as the same?
That's done with the add_field option in the Logstash configuration.
To clarify what I'm trying to accomplish, I'd like to see the full message come in and be indexed as one long field, like a log message would be. So ideally the message would get correctly parsed so I'd be able to see all fields and another field with the entire message in it.
Right. So keep raw_message around and feed message to a json filter.
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.