I've found some code where applications are purposefully logging JSON instead of a message and inside that JSON logging a string into a field called raw.
My understanding is that raw is normally autocreated and we're limiting our query abilities by writing directly to it. Is that right? Is the raw field documented somewhere so I can support my request for change?
I've found some code where applications are purposefully logging JSON instead of a message and inside that JSON logging a string into a field called raw.
Can you show an example so it's clear exactly what we're talking about?
My understanding is that raw is normally autocreated and we're limiting our query abilities by writing directly to it. Is that right? Is the raw field documented somewhere so I can support my request for change?
You can certainly name fields raw; they won't collide with the .raw or .keyword subfields exposed in Elasticsearch (depending on the index's mappings). To understand the different between fields x and x.keyword read what the ES documentation says about text and keyword fields.
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.