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!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...