Getting Data In

Filtering Cisco ASA Session log to remove logging for a session ID and IP combination

timoggy
Loves-to-Learn Lots

Hi,

I'm very new to Splunk,  and struggling to find a way to filter a specific log which is consuming a large proportion of my license.

I have a Cisco ASA set up to send events to Splunk UDP port as syslog. I've restricted the logs to what I want to see by using the Built in filter tools within the ASA. 

From what I can see within the forum, there are lots of people asking how to filter based off Syslog ID, but I want to filter out based off Syslog ID 302013 and IP xxx.xxx.xxx.xxx, as I want to keep 302013 apart from anything containing that specific IP.

I don't even know where to start, but I know this can't be done from the cisco device, so has to be done on the Splunk server.

Would really appreciate someone pointing me in the right direction.

Thanks,

Tim

Labels (1)
0 Karma

timoggy
Loves-to-Learn Lots

Hi, I meant I want to keep ID302013. But I don't want to keep  ID302013 if it contains a specific IP address.

I wanted to try and simplify the set up rather than have multiple servers, we don't have much resource here, but may have to look and see if there a syslog server that may make the filtering bit a bit easier. The way to filter in Splunk doesn't look the easiest to implement, which is why I did as much as I could from the source device. 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Please clarify your requirements since "filter" and "keep apart" mean two different things in my world.  What do you want to do with the ID 302013 events?

Have read the docs on filtering events?  See https://docs.splunk.com/Documentation/Splunk/8.1.0/Forwarding/Routeandfilterdatad

Are you aware that sending syslog directly to Splunk is discouraged?  Best Practice is to send syslog to a dedicated syslog server and then forward to Splunk.  This helps to reduce data loss, plus syslog server often have built-in filtering features.  See http://www.georgestarcher.com/splunk-success-with-syslog/

---
If this reply helps you, Karma would be appreciated.
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!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...