Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

sdee to syslog proxy

Here's a perl script that connects to an IPS device and then (when passed -l) logs to a file, somewhat simulating syslog. Without -l it will just log to screen, giving a nice pretty colour-coded output. It uses xsltproc and a stylesheet to translate the xml to something readable. (At first I tried SOAP::Lite, but that doesn't implement true xpath so I went with a stylesheet and xsltproc instead) Any feedback appreciated.

2 REPLIES
Gold

Re: sdee to syslog proxy

good stuff. thanks.

New Member

Inside getSomeEventsgetting..

Inside getSomeEvents
getting...
$VAR1 = 'HTTP/1.1 400 Bad Request
Connection: Close
Date: Tue, 10 Nov 2015 10:55:49 UTC
Server: HTTP/1.1 compliant
Content-Length: 122
Content-Type: text/html

';
body:
<html><head><title>Bad Request</title></head><body><h2>Bad Request</h2><p>Parser got an invalid version.</p></body></html>

922
Views
0
Helpful
2
Replies
CreatePlease login to create content