I have a json structure as below
{
"Name" : "",
"Type" : "",
"Document" : {
"id" : 1,
"category": "books"
}
}
I want to index only the "Document" part of the Json into Elasticsearch. Is there any way of doing that with Logstash ?
I have a json structure as below
{
"Name" : "",
"Type" : "",
"Document" : {
"id" : 1,
"category": "books"
}
}
I want to index only the "Document" part of the Json into Elasticsearch. Is there any way of doing that with Logstash ?
Do some investigation your self. Try some stuff out, and come back with specific questions.
This is a community driven site. Nobody gets paid here for doing your work.
As a starting point:
Determining which fields that are indexed and can be searched can be done by specifying mappings in an Elasticsearch index template. You do not generally control this from Logstash.
The question was posted after thorough investigation on my end and my inability to find any suitable workaround in my case. For future reference When you don't know any answer, try to avoid that post.
Posts like that do not help anyone. Please be aware of our Code of Conduct for these forums - https://www.elastic.co/community/codeofconduct
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.