Discussion:
How to debug event transforms?
Hector Akamine
2012-12-06 17:54:19 UTC
Permalink
Hector Akamine [http://community.zenoss.org/people/haa] created the discussion

"How to debug event transforms?"

To view the discussion, visit: http://community.zenoss.org/message/70406#70406

--------------------------------------------------------------
Hi,
Any tip/advice for a newbie on how to debug event transforms? Would it be possible to output messages to any of the log files?
Thank you,
Hector
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70406#70406]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Philip Warren
2012-12-06 21:38:21 UTC
Permalink
Philip Warren [http://community.zenoss.org/people/pwarren] created the discussion

"Re: How to debug event transforms?"

To view the discussion, visit: http://community.zenoss.org/message/70385#70385

--------------------------------------------------------------
One of the context variables passed to transforms is 'log', which is a standard Python logging logger. You can use this to log information which will show up in the zeneventd.log file (zeneventd is the daemon which executes event transforms).

For example, in your transform you could write:

log.info('Device is: %s', dev)

--
Philip
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70385#70385]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...