How to Create Different index for different Logpaths

Hi I am getting logs from filebeat to my ELK server.One filebeat is sending two diiferent log files.My file beat is sending Nginx logs and Laraverl logs,my requirement is that i have to create Different index for different Logpaths can any one tell me how can I create different index

Can anyone help me out ??

Use a conditional to test the value of [log][file][path] and set [@metadata][indexName] based on that value. Then pass

index => "%{[@metadata][indexName]}"

to the elasticsearch output.

Hey thanks for reply ... and i will try this

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.