Tags in modules

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

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

input:
  tags: ["elasticsearch"]
1 Like

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