Custom tagging for AIX

Tags: AIX

#1 sisaadmin

Hi,

I am trying to add a custom tag message in front of the logs similar to rsyslog custom tagging, but couldn't find a module on tagging logs. The solution in te previous forum on tagging didn't work out.

https://nxlog.co/question/4006/nxlog-logstash-using-custom-tags

Solution in that forum : Exec $tag = 'hl7out';

Does custom tagging works for AIX ? Please provide a solution for it to reflect it in forwarded logs.

#2 Zhengshi Nxlog ✓
#1 sisaadmin
Hi, I am trying to add a custom tag message in front of the logs similar to rsyslog custom tagging, but couldn't find a module on tagging logs. The solution in te previous forum on tagging didn't work out. https://nxlog.co/question/4006/nxlog-logstash-using-custom-tags Solution in that forum : Exec $tag = 'hl7out'; Does custom tagging works for AIX ? Please provide a solution for it to reflect it in forwarded logs.

The short answer is, yes. Adding fields works for any OS. That is a built-in feature of the language NXLog uses.
The longer answer is: How you incorporate these fields will depend on your configuration.
Some modules will only use $raw_event by default and will need to be transformed or repackaged.

It may be helpful to show some of your config and what you are trying to accomplish.