I have a logstash configuration of http poller input, and elastic output, but i am struggling to store the json input from poller to index as documents. it stores the entire json as a single field but i need to store each values as a field
ex input from http poller
{
"results": [
{
"tables": [
{
"rows": [
{
"Tree Details[id]": "1984",
"Tree Details[year]": "2018",
"Tree Details[quarter_1]": null
},
{
"KPI Tree Details[id]": "1984",
"KPI Tree Details[year]": "2018",
"KPI Tree Details[quarter_1]": null
}
]
}
]
}
]
}
without any filter it stores the results as a field with entire json in single field but i would like to parse each result of rows in each document of an index.
Any suggestion is appreciated
i have tried split, json_encode and json end up with either invalid field reference or typecase error.
That's going to be a problem. What do you want that field to be called? It's name cannot contain square brackets, since that is taken as a field reference. We could make it a nested field [KPI Tree Details][id] etc.
KPI Tree Details[id] - in this if we can replace the KPI Tree Details[id] with id. that works for me
My rows data is huge. 200+ fields present in each row
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.