cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1738
Views
0
Helpful
2
Replies

sdee to syslog proxy

bitterman
Level 1
Level 1

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 2

mhellman
Level 7
Level 7

good stuff. thanks.

chornopay
Level 1
Level 1

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>

Review Cisco Networking products for a $25 gift card