Logstash single input and multiple output

Viewed 853

I have configured logstash to get input from one filebeat port. Filebeat configured with two different paths. is it possible to display logs to two different index?

Logstash input part:

input{
beats 
   {
     type => "stack"
     port => 5044
   }

Filebeat input part :

 prospectors:

  paths:
    - E://stack/**/*.txt
    - E://test/**/*.txt

Now i need to display "stack" in one index and "test" in other index. How to configure logstash output part?

1 Answers
Related