Multiple metricbeat index for each host

Currently i am sending metricbeat data from all the server directly to elastichost:9200. This way metricbeat data from all the server sends data to single metricbeat-dataIs it possible to create separate index for metricbeat data from each server. Current metricbeat configuration is like below.


#------------------------------- System Module -------------------------------

  • module: system
    • cpu
    • load
    • filesystem
    • fsstat
    • memory
    • network
    • process
      enabled: true
      period: 10s
      processes: ['.*']

hosts: ["elastichost:9200"]

For example, I looking for separate metricbeat index for each host.

You can change the index` setting.


  index: 'metricbeat-%{[beat.version]}-%{[]}-%{+yyyy.MM.dd}'

This way the index-name is still versioned by the beat version (required to the template mapping still to be applied). I'm using here. The hostname is stored in beat.hostname. The is the hostname by default, but can be reconfigured using the global name setting in beats.

Nice and simple. I will try this and let you know. Thanks Steffens.

Before making this change, be aware that having a large number of small indices can be very inefficient.

This is what i was looking for. Initially i thought to send to logstash and create separate index using logstash output. But this creates directly in ES.
@Christian_Dahlqvist - I am using this option for one or two servers to monitor and retain the index for a month.
Thanks team for your help.

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