Getting Data In

Router Syslog - IP (SRC & DST) Lookup

jvader
New Member

Testing Splunk by devouring the syslog from my router with Tomato firmware installed. Is there a way to have Splunk do lookups on SRC and DST ip addresses to show host/domain names vs. just the IP? (Something similar to what wallwatcher.com can do? - http://bit.ly/Q4ZZry )

Aug 23 14:25:49 192.168.1.1 Aug 23 14:26:32 kernel: ACCEPT IN=br0 OUT=vlan1 SRC=192.168.1.70 DST=74.125.130.108 LEN=64 TOS=0x00 PREC=0x00 TTL=63 ID=16424 DF PROTO=TCP SPT=53610 DPT=993 WINDOW=65535 RES=0x00 SYN URGP=0 OPT (020405B4010303040101080A2DCEF5B90000000004020000)
host=192.168.1.1 Options| sourcetype=syslog Options| source=udp:514

Tags (1)
0 Karma

jaysundberg
New Member

Awesome thanks for the tips. I'll give this a shot.

0 Karma

Ayn
Legend

Yes. Splunk ships with a dynamic lookup script that does this for you. It's covered here: http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addfieldsfromexternaldatasources
http://blogs.splunk.com/2009/12/15/reverse-dns-lookups-for-host-entries/
http://splunk-base.splunk.com/answers/8051/dns-lookup-via-splunk

Beware though that reverse lookups will probably have a significant impact on performance while searching if you have lots of different external IP's, simply because Splunk will have to resolve each and every one of them.

Ayn
Legend

Index-time lookups do not exist though, so implementing this at index-time will not be easily done.

0 Karma

iunderwood
Path Finder

Depending on how often the data needs to be searched, refreshed, or even churned through, this might be a better task to be handled during the Indexing period. This might be one of the few times it could be worthwhile to add additional metadata to the index instead or generating it at search 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!

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 ...

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2026-2027 SplunkTrust is officially open. If ...

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 ...