<?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: Output only specific field values to CLI in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Output-only-specific-field-values-to-CLI/m-p/16035#M2095</link>
    <description>&lt;P&gt;you can also use the &lt;CODE&gt;table&lt;/CODE&gt; search command instead of &lt;CODE&gt;fields&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jun 2010 03:59:49 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2010-06-24T03:59:49Z</dc:date>
    <item>
      <title>Output only specific field values to CLI</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Output-only-specific-field-values-to-CLI/m-p/16033#M2093</link>
      <description>&lt;P&gt;I'm trying to pull data from the CLI to pipe to awk to pipe to ...  I can't seem to find the correct syntax to say, for example, just pull a single field from a record, rather than pulling everything in each event.  Older examples seem to indicate that I can pipe the search to 'fields + field1 field2' but this still only produces the entire event information.  What am I missing?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2010 23:59:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Output-only-specific-field-values-to-CLI/m-p/16033#M2093</guid>
      <dc:creator>jones4bob</dc:creator>
      <dc:date>2010-06-23T23:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Output only specific field values to CLI</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Output-only-specific-field-values-to-CLI/m-p/16034#M2094</link>
      <description>&lt;P&gt;I think I've found what I was looking for.  &lt;/P&gt;

&lt;P&gt;The syntax for pulling specific fields appears to need to work like this:
fields field1 field2 | fields - _*&lt;/P&gt;

&lt;P&gt;It looks like that last pipe to fields is needed to remove the remainder of the fields from the search result.  This worked for me and produced the desired output for awk to process.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2010 00:52:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Output-only-specific-field-values-to-CLI/m-p/16034#M2094</guid>
      <dc:creator>jones4bob</dc:creator>
      <dc:date>2010-06-24T00:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Output only specific field values to CLI</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Output-only-specific-field-values-to-CLI/m-p/16035#M2095</link>
      <description>&lt;P&gt;you can also use the &lt;CODE&gt;table&lt;/CODE&gt; search command instead of &lt;CODE&gt;fields&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2010 03:59:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Output-only-specific-field-values-to-CLI/m-p/16035#M2095</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-06-24T03:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Output only specific field values to CLI</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Output-only-specific-field-values-to-CLI/m-p/16036#M2096</link>
      <description>&lt;P&gt;Interestingly, in 4.3.1, when I use this for the cli (which works fine in the GUI):&lt;BR /&gt;
table a b c d e&lt;BR /&gt;
I get these results:&lt;BR /&gt;
a d e b c&lt;BR /&gt;
Why would table return fields in a different order from the CLI?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2012 19:23:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Output-only-specific-field-values-to-CLI/m-p/16036#M2096</guid>
      <dc:creator>swdonline</dc:creator>
      <dc:date>2012-03-30T19:23:09Z</dc:date>
    </item>
  </channel>
</rss>

