<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I create a report that lists all servers and devices reporting to Splunk broken out by country? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/How-do-I-create-a-report-that-lists-all-servers-and-devices/m-p/131566#M2982</link>
    <description>&lt;P&gt;Thank you for asking.  I didn't think of that.  The ip addresses are private, so GeoIP/IPLocation won't work.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2015 19:52:57 GMT</pubDate>
    <dc:creator>jldebell</dc:creator>
    <dc:date>2015-04-08T19:52:57Z</dc:date>
    <item>
      <title>How do I create a report that lists all servers and devices reporting to Splunk broken out by country?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-I-create-a-report-that-lists-all-servers-and-devices/m-p/131564#M2980</link>
      <description>&lt;P&gt;We need to create a report that lists all devices and servers reporting into Splunk.  We want to have the report broken out by country.  We don't have an internal cross-reference to identify servers to countries.  I was using this search based on other Answer questions.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=_internal source="/opt/splunk/var/log/splunk/metrics.log*" sourcetype="splunkd" fwdType="*" | dedup sourceHost|stats count  by hostname, sourceHost, fwdType, guid, os, arch
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried to plug in the geoip/iplocation searches to see if we could obtain the location of our servers.  I wasn't able to get results.  &lt;/P&gt;

&lt;P&gt;Please advise if you have suggestions.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;Jenn&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2015 19:32:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-I-create-a-report-that-lists-all-servers-and-devices/m-p/131564#M2980</guid>
      <dc:creator>jldebell</dc:creator>
      <dc:date>2015-04-08T19:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a report that lists all servers and devices reporting to Splunk broken out by country?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-I-create-a-report-that-lists-all-servers-and-devices/m-p/131565#M2981</link>
      <description>&lt;P&gt;Are your forwarder have public IP address?? If your forwarders do not have public IP then you can't filter out with GeoIP/IPlocation.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2015 19:37:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-I-create-a-report-that-lists-all-servers-and-devices/m-p/131565#M2981</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2015-04-08T19:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a report that lists all servers and devices reporting to Splunk broken out by country?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-I-create-a-report-that-lists-all-servers-and-devices/m-p/131566#M2982</link>
      <description>&lt;P&gt;Thank you for asking.  I didn't think of that.  The ip addresses are private, so GeoIP/IPLocation won't work.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2015 19:52:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-I-create-a-report-that-lists-all-servers-and-devices/m-p/131566#M2982</guid>
      <dc:creator>jldebell</dc:creator>
      <dc:date>2015-04-08T19:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a report that lists all servers and devices reporting to Splunk broken out by country?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-I-create-a-report-that-lists-all-servers-and-devices/m-p/131567#M2983</link>
      <description>&lt;P&gt;You would need to make an inventory of all your devices. Store it in a CSV file like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;device,ip,country,latitude,longitude
www1,10.10.2.101,US,33.8090,-117.9190
www2,10.20.2.102,France,48.8687,2.7818
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I added the lat/lon just for fun, but you don't need it. Use this CSV file to create a lookup table: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Knowledge/Usefieldlookupstoaddinformationtoyourevents"&gt;Use field lookups...&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you do this, then you could run this search (if you named the lookup "device_lookup"):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype="splunkd" group=tcpin_connections
| dedup sourceHost
| lookup device_lookup device as sourceHost 
| stats count  by hostname, sourceHost, fwdType, guid, os, arch, country
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype="splunkd" group=tcpin_connections
| eval sourceHost=coalesce(hostname, sourceHost) 
| lookup device_lookup device as sourceHost 
| stats sum(kb) as total_KB  by sourceHost, fwdType, guid, os, arch
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or even&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype="splunkd" group=tcpin_connections
| eval sourceHost=coalesce(hostname, sourceHost) 
| lookup device_lookup device as sourceHost 
| geostats latfield=latitude longfield=longitude sum(kb) as total_KB  by sourceHost
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Apr 2015 00:53:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-I-create-a-report-that-lists-all-servers-and-devices/m-p/131567#M2983</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-04-09T00:53:33Z</dc:date>
    </item>
  </channel>
</rss>

