how to find subempcategoryid from emp_category index
emp_category index structure
mainempcategoryid
mainempcategoryname
subempcategoryid
subempcategoryname
used elasticseaxh fillter pluging. but query not working when there two condition
elasticsearch {
hosts => ["http://localhost:9200/"]
index => "emp_category"
query => "mainempcategoryid :%{maincategoryid} AND subempcategoryname:%{[data][categories][0]}"
fields => { "subempcategoryid" => "subcategoryid"
}
}
no i m not getting what u want exactly u have an index called emp_category which consists of the mentioned fields.... can u send me the entire config file
transferring employee data in json to ELK from logstash. while do transfer take employee subcategory id which is already in emp_category index in ELK. To get subempcategoryid, need to query emp_category index by mainemocategoryid and subempcategoryname. the query is not working search in two fields . problem is how to get subempcategoryid by querying mainemocategoryid and subempcategoryname
I'd like to take this file as input in Logstash and ingest the json object as document in an Elasticsearch index whatever_index.
I'd like to add as new documents those events whose "employee_id" doesn't already exist and update those who already exists.
And maybe providing a concrete example with 3 input docs, 2 with employee_id not already present in the whatever_index and one with an employee_id already registered but with different fields that need to be updated.
If you spend 10 minutes of your time to make a clear post, you'll help others better understand your needs and help you back.
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.