Multiple elasticsearch input


(Jonar B) #1

how to input 2 index using elasticsearch input plugin?

TIA


(Magnus Bäck) #2

By using two elasticsearch input plugins?


(Jonar B) #3

yes. can be like this?

input {
  elasticsearch {
    hosts => "localhost"
    index => "192.168.0.1, 192.168.0.2"
  }
}

(Magnus Bäck) #4

No, that's still one plugin. This is what you want:

input {
  elasticsearch {
    ...
  }
  elasticsearch {
    ...
  }
}

(Jonar B) #5

Thanks @magnusbaeck! :slight_smile: :100:


(system) #6

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