Getting Data In

How can I create a list of network devices?

seanaldo
New Member

Hi,

I want to create a list of the IP addresses in our environment against the host DNS name.

Cheers,
Sean

0 Karma

seanaldo
New Member

I want a list of IP Address's against their host names.
I am using
host=* | regex host="^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$"

But I cant export to a csv

0 Karma

adonio
Ultra Champion

very important task you are facing, and very vague question you are asking.
can you elaborate please? do you have DNS data and names in Splunk?
do you have the IP addresses in Splunk?
if so, there are plenty of ways to do it.
one idea is to start by creating a lookup: search that gives you all DNS | dedup DNS | table DNS | outputlookup my_dns.csv
now that you have a lookup with all DNS you can compare IPs against it
many more answers in this portal, here are couple:
https://answers.splunk.com/answers/293874/how-to-compare-the-ip-addresses-in-dns-lookup-dnsc.html
https://answers.splunk.com/answers/105246/dns-resolution-in-a-search.html
feel free to upvote those great answers
hope it helps

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...