<?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: TSTATS, Datamodel, and GEOSTATS issues in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Datamodel-and-GEOSTATS-issues/m-p/533624#M36342</link>
    <description>&lt;P&gt;Rich,&lt;/P&gt;&lt;P&gt;I'm a little aggravated, but grateful that it was something so easy. &amp;nbsp;A side questions.....Why would someone add a WHERE command and dollar signs before adding a pipe and geostats?&lt;/P&gt;&lt;P&gt;Thanks, again, for the help!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count AS Unique_IP FROM datamodel="test" BY test.test_IP WHERE $IP_INDEX$ $IN_SRC$ | geostats latfield=test.lat longfield=lon globallimit=0 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Dec 2020 22:25:16 GMT</pubDate>
    <dc:creator>frog22</dc:creator>
    <dc:date>2020-12-18T22:25:16Z</dc:date>
    <item>
      <title>TSTATS, Datamodel, and GEOSTATS issues</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Datamodel-and-GEOSTATS-issues/m-p/533602#M36333</link>
      <description>&lt;P&gt;I'm trying to eventually utilize the builtin GEOSTATS map to populate a simple map showing the number of IP addresses that hit my firewall from a specific country over a period of time. &amp;nbsp;Problem is, I cannot get anything to work related to GEOSTATS. &amp;nbsp;Hopefully, I can lay this out in a simple manor.....&lt;/P&gt;&lt;P&gt;Datamodel = test&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Extracted Fields: Client_IP (field within the log that the Originating IP address is extracted)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; test_IP (field alias points to this field, set as IPv4, is the "IP" field utilized within the GEO IP settings)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;1. Datamodel "test": Acceleration is on, status 100% complete, &amp;nbsp;and tstats commands can be used against this datamodel that produce the expected results&lt;/P&gt;&lt;P&gt;2. If I go into datamodel "test", under the GEO IP settings, select "Preview"....It populates with Lat, Long, &amp;amp; Country information&lt;/P&gt;&lt;P&gt;3. | datamodel test search | table Client_IP, test_IP, test_lat, test_lon, test_Country. &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;- this query produces lat, long, and country results.&lt;/P&gt;&lt;P&gt;3. | tstats count AS Unique_IP FROM datamodel="test" BY test.test_IP test.test_Country&lt;/P&gt;&lt;P&gt;- this query produces exactly what I would expect to see....The "test_IP" field with IP addresses, "Unique_IP" field with the count of records per IP address, and "test_Country" showing the country the IP address originates from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Problem: once I add a pipe "|" things stop working. &amp;nbsp;Example:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;| tstats count AS Unique_IP FROM datamodel="test" BY test.test_IP | table test.test_IP test.test_Country Unique_IP&lt;/P&gt;&lt;P&gt;- only shows the "Unique_IP" field and the results of that field and the IP address in the "test.test_IP" field&lt;/P&gt;&lt;P&gt;2. | tstats count AS Unique_IP FROM datamodel="test" BY test.test_IP | geostats latfield=test.lat longfield=lon globallimit=0&lt;/P&gt;&lt;P&gt;- this produces no "Statistics" and no "Visualization"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I greatly appreciate your time and thank you for your help with this!!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 18:28:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Datamodel-and-GEOSTATS-issues/m-p/533602#M36333</guid>
      <dc:creator>frog22</dc:creator>
      <dc:date>2020-12-18T18:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: TSTATS, Datamodel, and GEOSTATS issues</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Datamodel-and-GEOSTATS-issues/m-p/533612#M36338</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt; command, like &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt;, only includes in its results the fields that are used in that command.&amp;nbsp; Therefore,&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count AS Unique_IP FROM datamodel="test" BY test.test_IP &lt;/LI-CODE&gt;&lt;P&gt;Only sends the Unique_IP and test.test_IP fields downstream to next command.&amp;nbsp; That means there is no test.test_Country field for &lt;FONT face="courier new,courier"&gt;table&lt;/FONT&gt; to display.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 20:04:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Datamodel-and-GEOSTATS-issues/m-p/533612#M36338</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-12-18T20:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: TSTATS, Datamodel, and GEOSTATS issues</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Datamodel-and-GEOSTATS-issues/m-p/533624#M36342</link>
      <description>&lt;P&gt;Rich,&lt;/P&gt;&lt;P&gt;I'm a little aggravated, but grateful that it was something so easy. &amp;nbsp;A side questions.....Why would someone add a WHERE command and dollar signs before adding a pipe and geostats?&lt;/P&gt;&lt;P&gt;Thanks, again, for the help!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count AS Unique_IP FROM datamodel="test" BY test.test_IP WHERE $IP_INDEX$ $IN_SRC$ | geostats latfield=test.lat longfield=lon globallimit=0 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 22:25:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Datamodel-and-GEOSTATS-issues/m-p/533624#M36342</guid>
      <dc:creator>frog22</dc:creator>
      <dc:date>2020-12-18T22:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: TSTATS, Datamodel, and GEOSTATS issues</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Datamodel-and-GEOSTATS-issues/m-p/533625#M36343</link>
      <description>&lt;P&gt;Apologies, this is more accurate.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count AS Unique_IP FROM datamodel="test" BY test.test_IP WHERE $IP_INDEX$ $IN_SRC$ test.lat test.lon | geostats latfield=test.lat longfield=lon globallimit=0 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 22:26:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Datamodel-and-GEOSTATS-issues/m-p/533625#M36343</guid>
      <dc:creator>frog22</dc:creator>
      <dc:date>2020-12-18T22:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: TSTATS, Datamodel, and GEOSTATS issues</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Datamodel-and-GEOSTATS-issues/m-p/533630#M36345</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; option applies conditions to &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt;.&amp;nbsp; In this case, count only the events with values matching $IP_INDEX$ and $IN_SRC$.&lt;/P&gt;&lt;P&gt;The $ characters denote a token.&amp;nbsp; Tokens come from the inputs of the dashboard that houses the search.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Dec 2020 00:29:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Datamodel-and-GEOSTATS-issues/m-p/533630#M36345</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-12-19T00:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: TSTATS, Datamodel, and GEOSTATS issues</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Datamodel-and-GEOSTATS-issues/m-p/534080#M36371</link>
      <description>&lt;P&gt;Greatly appreciate the help with this!! &amp;nbsp;Happy holidays to you and yours!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 22:45:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/TSTATS-Datamodel-and-GEOSTATS-issues/m-p/534080#M36371</guid>
      <dc:creator>frog22</dc:creator>
      <dc:date>2020-12-24T22:45:39Z</dc:date>
    </item>
  </channel>
</rss>

