You can send custom log messages using the zensendaudit script.
- Log in to the Control Center host as a user with serviced CLI privileges.
- Attach to the zope
serviced service attach zope
- Change to the zenoss user.
su - zenoss
- Run the zensendaudit
where MessageText is the text you want displayed in the log.For example, zensendaudit Hello world. will generate the following output:
Message sent: Hello world.It will log the following message in the zenossaudit fields.type in the application-audit.log that can also be viewed in Kibana.
2017-07-14 19:10:18 INFO action=Log kind=Comment comment="Hello world." source=Shell process=zensendaudit logname=zenoss parameters="Hello world."