sdee to syslog proxy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2007 06:48 AM - edited 03-10-2019 03:28 AM
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.
- Labels:
-
IPS and IDS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2007 08:36 AM
good stuff. thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2015 03:38 AM
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>
