tags()
Synopsis: | tag |
Description: Select messages labeled with the specified tag. Every message automatically has the tag of its source in .source.<id_of_the_source_statement>
format. This option is available only in AxoSyslog 3.1 and later.
Example: Adding tags and filtering messages with tags
source s_tcp {
network(ip(192.168.1.1) port(1514) tags("tcp", "router"));
};
Use the tags()
option of the filters to select only specific messages:
filter f_tcp {
tags(".source.s_tcp");
};
filter f_router {
tags("router");
};
Note
The AxoSyslog application automatically adds the class of the message as a tag using the .classifier.<message-class>
format. For example, messages classified as “system” receive the .classifier.system
tag. Use the tags()
filter function to select messages of a specific class.
filter f_tag_filter {tags(".classifier.system");};
Last modified July 2, 2023: Change highlight mode of code examples (2f8a959)