<?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 filter columns in a search query splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-columns-in-a-search-query-splunk/m-p/362663#M165138</link>
    <description>&lt;P&gt;or to add onto this, use the &lt;CODE&gt;fields field1 field2....&lt;/CODE&gt; to show fields, instead of the &lt;CODE&gt;table&lt;/CODE&gt; command&lt;/P&gt;</description>
    <pubDate>Wed, 15 Nov 2017 12:51:02 GMT</pubDate>
    <dc:creator>cmerriman</dc:creator>
    <dc:date>2017-11-15T12:51:02Z</dc:date>
    <item>
      <title>How to filter columns in a search query splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-columns-in-a-search-query-splunk/m-p/362660#M165135</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;I have a simple question. I have a search query, and it basically outputs lots of fields. Is there a way of filter for a specific column in the search query?&lt;/P&gt;

&lt;P&gt;index=xxx sourcetype=xxx host=xxx OR host=xxx|  eval UNIQUE=toString(xx)| eventstats dc(host) as ID by UNIQUE | where ID=2   | eval raw=toString(YYYY)| stats values(host) AS hosts BY raw | where mvcount(hosts) = 1  | replace xxx with xxx, xxx with xxxin hosts&lt;/P&gt;

&lt;P&gt;Kind Regards&lt;BR /&gt;
Mahbs&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 11:45:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-columns-in-a-search-query-splunk/m-p/362660#M165135</guid>
      <dc:creator>mahbs</dc:creator>
      <dc:date>2017-11-15T11:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter columns in a search query splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-columns-in-a-search-query-splunk/m-p/362661#M165136</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;Have you tried &lt;CODE&gt;fields&lt;/CODE&gt;  command ?&lt;/P&gt;

&lt;P&gt;eg.&lt;BR /&gt;
    ... | fields host, ip | fields - _*&lt;/P&gt;

&lt;P&gt;Doc: &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.0/SearchReference/Fields"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.0/SearchReference/Fields&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 11:52:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-columns-in-a-search-query-splunk/m-p/362661#M165136</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-15T11:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter columns in a search query splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-columns-in-a-search-query-splunk/m-p/362662#M165137</link>
      <description>&lt;P&gt;Hi  mahbs,&lt;BR /&gt;
you can use the &lt;CODE&gt;table&lt;/CODE&gt; command ( &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.0/SearchReference/Table"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.0/SearchReference/Table&lt;/A&gt; ) to display only the requested fields or &lt;CODE&gt;fields - fieldname&lt;/CODE&gt; ( &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.0/SearchReference/Fields"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.0/SearchReference/Fields&lt;/A&gt; ) to hide some column.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 11:54:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-columns-in-a-search-query-splunk/m-p/362662#M165137</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-11-15T11:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter columns in a search query splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-columns-in-a-search-query-splunk/m-p/362663#M165138</link>
      <description>&lt;P&gt;or to add onto this, use the &lt;CODE&gt;fields field1 field2....&lt;/CODE&gt; to show fields, instead of the &lt;CODE&gt;table&lt;/CODE&gt; command&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 12:51:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-columns-in-a-search-query-splunk/m-p/362663#M165138</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-11-15T12:51:02Z</dc:date>
    </item>
  </channel>
</rss>

