- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Enhanced Security Measures in Place: To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.
03-19-2012 03:35 PM
Hey guys,
Has anyone ever got the PAN ID XML API to work with rsyslog?
I am trying to parse my VPN Concentrator Logs (which are sent to my rsyslog server) and see if I can run it through the API module which will then send the data over to the PAN UserID Agent.
I am writing a simple perl script to scrape sample VPN log data first and then port that over using the API to the UserID Agent.
I am also curious on how to have this script generate as a scripted action for every log match so that it will consistantly update the PAN UserID Agent.
Any help or ideas that you guys can provide would be awesome.
Thanks.
Brian
11-14-2012 04:53 AM
Hi
sorry about this late answer, but you can write a perl script that tail the syslog file.
inside your perl script you use a regex to parse each line.
with this method, all syslog server can be used.
but it's better if your syslog server is able to execute a script based on a regex (if the log match the regex, the syslog server execute the perl script).
regards
Christophe
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!