Tags in modules


#1

Can we use tags in modules, I was trying to tag the logs in elasticsearch module but the tag is not assigned to the particular path

  • module: elasticsearch
    server:
    enabled: true
    var.paths: ["/var/log/elasticsearch/server1/*.log"]
    tags: ["elasticsearch"]

    gc:
    enabled: false
    var.paths: ["/var/log/elasticsearch/server1/gc.log.[0-9]*"]

In the kibana ,

t prospector.type
log
t service.name
elasticsearch
t source
/var/log/elasticsearch/server1/xxx.log
t tags
beats_input_codec_plain_applied
t type
beats

(Steffen Siering) #2

I think "tags" is no module setting, but an input setting. Try with:

input:
  tags: ["elasticsearch"]