Hello Team,
I am using Elasticsearch version 6.2.4.
I have below scenario and need a work around for this. Planning to have two indices with below properties.
EmployeeId, EmployeeName, Designation.
index 1 : Employee (Latest designation of each employee)
index 2 : Employee_History (History of designation of each employee)
There is an employee who joined as Software Engineer.So the index1 and index2 will be having the documents as below
Index : Employee
EmployeeId : 1001, EmployeeName : Sam, Designation: Software Engineer
Index : Employee_History
Later he promoted as Senior Software Engineer. So the indices records should be as follow.
Index : Employee
EmployeeId : 1001, EmployeeName : Sam, Designation: Senior Software Engineer
Index : Employee_History
EmployeeId : 1001, EmployeeName : Sam, Designation: Software Engineer
Later he promoted to Team Lead. So the indices records should be as follow.
Index : Employee
EmployeeId : 1001, EmployeeName : Sam, Designation: Team Lead
Index : Employee_History
EmployeeId : 1001, EmployeeName : Sam, Designation: Software Engineer
EmployeeId : 1001, EmployeeName : Sam, Designation: Senior Software Engineer
Here I want to use logstash to push the documents to elastic.
Could you please suggest the elastic/logstash configurations for the workaround.
I want to keep the data in this way as I have to show the designation history (Employee + Employee_History) for each employee but I will be using the index Employee for all the search functionality as this index will be having the latest designation for each employees.
Thanks.
Ratheesh