<?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: Does the fields command support globbing/wildcard matching? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Does-the-fields-command-support-globbing-wildcard-matching/m-p/167462#M47686</link>
    <description>&lt;P&gt;This works for me. What version are you using?&lt;/P&gt;</description>
    <pubDate>Thu, 05 Dec 2013 12:22:16 GMT</pubDate>
    <dc:creator>alacercogitatus</dc:creator>
    <dc:date>2013-12-05T12:22:16Z</dc:date>
    <item>
      <title>Does the fields command support globbing/wildcard matching?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-the-fields-command-support-globbing-wildcard-matching/m-p/167459#M47683</link>
      <description>&lt;P&gt;Im trying to reduce the fields of my resultset by using the fields command with the '-' option. This does not appear to work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* | head 10 | eval ip="194.10.10.10" | table ip,_time | geoip ip | fields - ip_* 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can get around the problem for this case by searching differently:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* | head 10 | eval ip="194.10.10.10"  | geoip ip  | table ip,_time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...but I'm trying to find out how field command works.&lt;/P&gt;

&lt;P&gt;The &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/fields"&gt;documentation&lt;/A&gt; shows an example where the * can be used if you want to keep fields (without using the '-').&lt;/P&gt;

&lt;P&gt;This does work&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* | head 10 | eval ip="194.10.10.10" | table ip,_time | geoip ip | fields ip_l*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This does not work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* | head 10 | eval ip="194.10.10.10" | table ip,_time | geoip ip | fields - ip_l*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any Ideas?&lt;/P&gt;

&lt;P&gt;Thanks &lt;BR /&gt;
Chris&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2013 09:08:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-the-fields-command-support-globbing-wildcard-matching/m-p/167459#M47683</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2013-12-05T09:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Does the fields command support globbing/wildcard matching?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-the-fields-command-support-globbing-wildcard-matching/m-p/167460#M47684</link>
      <description>&lt;P&gt;The two last examples seem to be identical?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2013 09:54:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-the-fields-command-support-globbing-wildcard-matching/m-p/167460#M47684</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-12-05T09:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Does the fields command support globbing/wildcard matching?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-the-fields-command-support-globbing-wildcard-matching/m-p/167461#M47685</link>
      <description>&lt;P&gt;Hi Ayn, you're right. I forgot to insert the '-' option to the last command. I updated the question.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2013 10:06:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-the-fields-command-support-globbing-wildcard-matching/m-p/167461#M47685</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2013-12-05T10:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Does the fields command support globbing/wildcard matching?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-the-fields-command-support-globbing-wildcard-matching/m-p/167462#M47686</link>
      <description>&lt;P&gt;This works for me. What version are you using?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2013 12:22:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-the-fields-command-support-globbing-wildcard-matching/m-p/167462#M47686</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-12-05T12:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Does the fields command support globbing/wildcard matching?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-the-fields-command-support-globbing-wildcard-matching/m-p/167463#M47687</link>
      <description>&lt;P&gt;using 6.3.&lt;BR /&gt;
having a similar issue:&lt;/P&gt;

&lt;P&gt;For clarification: &lt;BR /&gt;
&lt;CODE&gt;| fields ip_l*&lt;/CODE&gt; this wild card will work in showing all the fields ip_l&lt;BR /&gt;
but if I try and remove them.&lt;BR /&gt;
&lt;CODE&gt;| fields - ip_l*&lt;/CODE&gt; this does not remove the columns/field but it does remove the values in them columns  ip_l*. I want the fields/columns to be removed as well.&lt;/P&gt;

&lt;P&gt;hmmm....&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:54:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-the-fields-command-support-globbing-wildcard-matching/m-p/167463#M47687</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2020-09-29T08:54:34Z</dc:date>
    </item>
  </channel>
</rss>

