sdee to syslog proxy

Unanswered Question
Feb 20th, 2007

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.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
chornopay Tue, 11/10/2015 - 03:38

Inside getSomeEvents
$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

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


This Discussion