Archive
Highlighted

How to get mac addresses from static lookup table into IDS report?

New Member

I have an input lookup table called macaddresses.csv
It has sections for IP, MAC, & OS.
I can view it for i.e | inputlookup mac
addressess.csv

I have a report called Suricata IDS Report that includes the srcip, destip, severity, timestamp etc.... but no MAC.
Since the Suricata IDS Logs does not send the mac address of the systems on its network they are not ingested into Splunk.

I need to add the MAC addresses from the static lookup table "mac_addresses.csv" as a table/field in the IDS reports to its associated IP.

Any help will be greatly appreciated.

I followed Splunk guidance called - Knowledge/LookupexampleinSplunkWeb
I also opened a ticket but Splunk does not assist with custom configurations.

Thank you team, and hopefully, I can figure this out over the weekend.

I am open to a webex if you know how to, thank you.

Regards
Splunk0n

0 Karma
Highlighted

Re: How to get mac addresses from static lookup table into IDS report?

Contributor

This shouldn’t be too hard. You need a common field between your lookup and the search data. Say the srcip address has a matching ip address in the lookup table that you would like to match a MAC address too. In your case you would have to rename or eval the common field name between the field in your search and the field in your lookup. Eg for srcip field name in your search and ip field name in your lookup:

Your search | eval ip = srcip | lookup macaddresses.csv ip OUTPUT YourMACAddressFieldsName.

Highlighted

Re: How to get mac addresses from static lookup table into IDS report?

SplunkTrust
SplunkTrust

Try this as I told you on email as well..

<your search so far> | lookup mac_addresses.csv IP as src_ip OUTPUT MAC 

Also, for more information have a look at this example,
https://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/Lookup#Basic_example

let me know if this helps!

0 Karma