Reference IP Reuse Domains in Splunk Queries
Forescout eyeExtend for Spunk integrates between the eyeSight and Splunk.
IP Reuse Domains are used to distinguish several instances of an overlapping IP address. IP addresses are unique in each IP Reuse Domain and cannot overlap within a domain.
Splunk support for IP Reuse Domains is asymmetrical: Splunk can retrieve the IP Reuse Domain value and use it to distinguish endpoints with overlapping IPv4 addresses in retrieved data. However, eyeExtend for Splunk cannot use the IP Reuse Domain to apply actions or adaptive response functions to an endpoint with an overlapping IP address.
Follow these guidelines to modify Splunk queries so they retrieve IP Reuse Domain
information and distinguish endpoints with overlapping IP addresses. The IP Reuse Domain
is provided by the area_code field.
Modify queries or dashboard/alert statements that use ct_hostinfo as a
datasource, or have
fillnull, dedup ip or ip statements.
To use the area_code variable in a Splunk query to distinguish overlapping IP addresses:
- Add the following statement:
rename host_properties.area_code {}.value as area_code - Add
area_codetofillnullstatements. - Add
area_codeas part ofdedupstatements.In the following example, the query
es_trigger_bad_dns_notificationis modified.Original Query Modified Query ` get_index ` ` get_sourcetypes ` ` ct_hostinfo ` dnsniff_event` get_index ` ` get_sourcetypes ` ` ct_hostinfo ` dnsniff_eventrename host_properties.dnsniff_event {}.value as dnsniff_eventrename host_properties.dnsniff_event {}.value as dnsniff_eventrename host_properties.area_code {}.value as area_codemvexpand dnsniff_eventmvexpand dnsniff_eventrex field= dnsniff_event "DNS Query Type:\s*(?< DNSQueryType >[^;^$]);DNS Query/Response: Query;DNS Zone: ;DNS Addresses."rex field= dnsniff_event "DNS Query Type:\s*(?< DNSQueryType >[^;^$]);DNS Query/Response: Query;DNS Zone: ;DNS Addresses."search DNSQueryType ="A"search DNSQueryType ="A"fillnull value="" ip ipv6 macfillnull value="" ip ipv6 mac area_codeeventstats count as eventcount by ip ipv6 maceventstats count as eventcount by ip ipv6 mac area_codededup ip , ipv6, macdedup ip , ipv6, mac area_codewhere eventcount >5 AND eventcount <=10where eventcount >5 AND eventcount <=10