Hello,
i have a question about removing robot value from the event.robot variable.
This is the use case scenario:
We are using logmon probe which extracts hostname and message from the log. So we are using variable defined in logmon to use as source in alarm. With that we have a alarm which has correct hostname and source but because its collected via logmon which is on the robot we receive event.robot variable with hostname of robot and that results with wrong mapping of alarm. Alarm is mapped on robot which monitor log, not hostname (source) of alarm.
I have tried to use pre-processing with lua script to remove robot name:
event.robot = ""
return event
But nothing happens. According to the documentation this is not supported.
After that i have tried to use alarm enrichment
enricher should remove robot name and place source name.
SELECT name FROM CM_COMPUTER_SYSTEM where name =?
source=[cmdb.name]
And this also do not help.
Is this even possible?
Should i do it maybe directly in database using lua and preprocesing? What would be the consequences of that?
Thank you
Regards
Mario