How to Print Alert in XML Format
"Kaplan, Michael A" <[email protected]> Tue, 21 Dec 2010 12:27:33 -0500
| Newsgroups | gmane.comp.security.ids.prelude.devel |
|---|---|
| Message-ID | <563593148DD9A040B93397F642B3C12558C5B54C1B@rrc-dte-exmb1.dte.telcordia.com> |
Folks,
I have an IDMEF alert that I created in Prelude Correlator by creating a fresh idmef.IDMEF() object and then setting the properties I care about. I then want to send this IDMEF message to another process expecting to receive the alert in XML format. When I print my object, however, it looks like it is formatted in some way, but I don't see the XML tags. Is there a way to put the IDMEF alert in XML format? My code:
msg = idmef.IDMEF()
msg.Set("version", "1.0")
msg.Set("alert.assessment.impact.severity", "medium")
etc...
etc...
Then some socket logic to send the msg objcet. I need this object to be in XML format and by default it doesn't look XML.
Thanks,
Mike
_______________________________________________
Prelude-devel site list
[email protected]
http://lists.prelude-technologies.com/mailman/listinfo/prelude-devel