Getting Data In

Syslog Monitoring when REGEX is not enough

mayestl04
Explorer

I have been tasked with deploying Splunk for an organization that has an extensive syslog (multiple rsyslog & syslog-ng svrs) environment. The problem is with their naming convention. Of the hundreds of syslog sources, only 60% follow a naming convention. The remainder may be (random) IP's, or a hostname that does not align with its events. The logs are not stored in logical directories, AND..... they are unwilling to make the changes necessary to "clean it up".

The REGEX's in inputs.conf if rapidly becoming ugly, and with every change, requires complete re-validation. What do others do in this situation to manage poor syslog naming conventions, and still get the events into the proper indexes without the extensive use of REGEX in inputs.conf, and without touching the syslog conf?

0 Karma

frobert
New Member

Hi,
This might not exactly be what you are looking for, but syslog-ng can manage lists that you can use in filters to classify your log messages (for example, to add specific message fields if the host/IP appears in a specific list), using the inlist filter, or add metadata from files. Recent versions of syslog-ng Premium Edition (the commercial version of syslog-ng) can even send log messages to Splunk HEC directly.

0 Karma

mayestl04
Explorer

Thanks for the response. The challenges I must overcome are: no access to the syslog servers or the UF, and no modifications allowed to the syslog storage format. Means anything I do must be via an App @ the Universal Forwarder, or on the Indexers @ parsing time.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...