Hi
I want to insert some lines in the logs to the alert body.
I have not found the macros that have defined in the Nagios email format, which we are able to use for integrate such content to the email body.
Can somebody help me to get this done?
Br
Luke.
Insert log content to the email body
Re: Insert log content to the email body
Relevant documentation:
https://assets.nagios.com/downloads/nag ... Server.pdf
ElasticSearch documents don't really have a concept of "lines" though. You can't simple say "grab line 3 of the message" unless you've broken out each message line into a specific field (which you can totally do).
And if you have broken out each message line into a specific field, you're still a bit out of luck. There was a feature request I put in quite some time ago to allow for stripping specific fields out of documents and dumping them into email templates, though I'm not sure what ever came of it.
I would love to be proven wrong about any of the above.
https://assets.nagios.com/downloads/nag ... Server.pdf
ElasticSearch documents don't really have a concept of "lines" though. You can't simple say "grab line 3 of the message" unless you've broken out each message line into a specific field (which you can totally do).
And if you have broken out each message line into a specific field, you're still a bit out of luck. There was a feature request I put in quite some time ago to allow for stripping specific fields out of documents and dumping them into email templates, though I'm not sure what ever came of it.
I would love to be proven wrong about any of the above.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Insert log content to the email body
From the document @mcapra posted on page 13 you can see you can use the Email templates to create your onw output.
Also, at the top of the page you can see the available macros.
Also, at the top of the page you can see the available macros.