<?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 to list result data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-result-data/m-p/252837#M75657</link>
    <description>&lt;P&gt;Try &lt;CODE&gt;stats count by host | fields host&lt;/CODE&gt; *&lt;STRONG&gt;&lt;EM&gt;OR&lt;/EM&gt;&lt;/STRONG&gt;* &lt;CODE&gt;dedup host | table host&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2016 03:19:47 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-10-13T03:19:47Z</dc:date>
    <item>
      <title>How to list result data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-result-data/m-p/252835#M75655</link>
      <description>&lt;P&gt;Hi, i have a result data like:&lt;BR /&gt;
host                     dest_ip                 src_ip&lt;BR /&gt;
FW1                    192.168.10.1        172.16.20.1&lt;BR /&gt;
FW1                    192.168.10.2        172.16.20.2&lt;BR /&gt;
FW1                    192.168.10.3        172.16.20.3&lt;BR /&gt;
FW2                    192.168.10.4        172.16.20.4&lt;BR /&gt;
FW2                    192.168.10.5         172.16.20.5&lt;BR /&gt;
FW3                     192.168.10.6         172.16.20.6&lt;/P&gt;

&lt;P&gt;i want to list or get result data like:&lt;BR /&gt;
FW1&lt;BR /&gt;
FW2&lt;BR /&gt;
FW3&lt;/P&gt;

&lt;P&gt;Please advice the syntax to obtain datat like above.&lt;BR /&gt;
I have tried using:  "myquery.....   | stats values(host) "  but the result was like this:&lt;BR /&gt;
FW1&lt;BR /&gt;
FW1&lt;BR /&gt;
FW1&lt;BR /&gt;
FW2&lt;BR /&gt;
FW2&lt;BR /&gt;
FW3&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:24:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-result-data/m-p/252835#M75655</guid>
      <dc:creator>gijoesplunk</dc:creator>
      <dc:date>2020-09-29T11:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to list result data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-result-data/m-p/252836#M75656</link>
      <description>&lt;P&gt;Try &lt;CODE&gt;stats list(host)&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 03:07:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-result-data/m-p/252836#M75656</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-10-13T03:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to list result data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-result-data/m-p/252837#M75657</link>
      <description>&lt;P&gt;Try &lt;CODE&gt;stats count by host | fields host&lt;/CODE&gt; *&lt;STRONG&gt;&lt;EM&gt;OR&lt;/EM&gt;&lt;/STRONG&gt;* &lt;CODE&gt;dedup host | table host&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 03:19:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-result-data/m-p/252837#M75657</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-13T03:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to list result data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-result-data/m-p/252838#M75658</link>
      <description>&lt;P&gt;thank's for the all answer.&lt;BR /&gt;
But now i would like to ask something different, if the "host" contains time&amp;amp;date like this one:&lt;BR /&gt;
host&lt;BR /&gt;&lt;BR /&gt;
Oct 13 16:59:03 FW1&lt;BR /&gt;
Oct 13 16:59:03 FW1&lt;BR /&gt;
Oct 13 16:59:04 FW1&lt;BR /&gt;
Oct 13 16:59:04 FW2&lt;BR /&gt;
Oct 13 16:59:05 FW2&lt;BR /&gt;
Oct 13 16:59:06 FW3&lt;/P&gt;

&lt;P&gt;how can i get info only: &lt;BR /&gt;
FW1&lt;BR /&gt;
FW2&lt;BR /&gt;
FW3&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 10:09:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-result-data/m-p/252838#M75658</guid>
      <dc:creator>gijoesplunk</dc:creator>
      <dc:date>2016-10-13T10:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to list result data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-result-data/m-p/252839#M75659</link>
      <description>&lt;P&gt;thank's for all the answer,&lt;BR /&gt;
but now i would like to ask a bit different, if the host contain date and time like:&lt;BR /&gt;
Oct 13 16:59:03 FW1&lt;BR /&gt;
Oct 13 16:59:03 FW1&lt;BR /&gt;
Oct 13 16:59:04 FW1&lt;BR /&gt;
Oct 13 16:59:04 FW2&lt;BR /&gt;
Oct 13 16:59:05 FW2&lt;BR /&gt;
Oct 13 16:59:06 FW3&lt;/P&gt;

&lt;P&gt;How can i get result only like this: &lt;BR /&gt;
FW1&lt;BR /&gt;
FW2&lt;BR /&gt;
FW3&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 10:11:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-result-data/m-p/252839#M75659</guid>
      <dc:creator>gijoesplunk</dc:creator>
      <dc:date>2016-10-13T10:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to list result data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-result-data/m-p/252840#M75660</link>
      <description>&lt;P&gt;Hosts should be in separate fields from the timestamps.  Then the same answers as above apply.  If they are not in separate fields, you should separate them before doing anything else.  Use &lt;CODE&gt;rex&lt;/CODE&gt; or the field extractor to separate host names from timestamps. &lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 14:09:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-result-data/m-p/252840#M75660</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-10-13T14:09:29Z</dc:date>
    </item>
  </channel>
</rss>

