Multiple elasticsearch input

how to input 2 index using elasticsearch input plugin?

TIA

By using two elasticsearch input plugins?

yes. can be like this?

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

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

input {
  elasticsearch {
    ...
  }
  elasticsearch {
    ...
  }
}
1 Like

Thanks @magnusbaeck! :slight_smile: :100:

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