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
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...