<?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: Adding fields to the output of a CLI search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Adding-fields-to-the-output-of-a-CLI-search/m-p/173574#M186573</link>
    <description>&lt;P&gt;The "table" command gave me the other half. Now I can get the host, source, and sourcetype, but I'm missing the actual search results. I tried adding "_raw", but that just gets me the results (same as before):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# splunk search "reboot | table host, source, _raw"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 04 Mar 2014 19:23:50 GMT</pubDate>
    <dc:creator>dmalcor</dc:creator>
    <dc:date>2014-03-04T19:23:50Z</dc:date>
    <item>
      <title>Adding fields to the output of a CLI search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-fields-to-the-output-of-a-CLI-search/m-p/173572#M186571</link>
      <description>&lt;P&gt;In the GUI I get results plus the fields: host, source, and sourcetype&lt;BR /&gt;
Same search in the CLI I just get results, no fields (even when I ask for "fields":&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# splunk search "reboot | fields + source, sourcetype, host"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm still very new to this, so I could be missing something really basic.&lt;/P&gt;

&lt;P&gt;:-Dan&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2014 17:40:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-fields-to-the-output-of-a-CLI-search/m-p/173572#M186571</guid>
      <dc:creator>dmalcor</dc:creator>
      <dc:date>2014-03-04T17:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding fields to the output of a CLI search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-fields-to-the-output-of-a-CLI-search/m-p/173573#M186572</link>
      <description>&lt;P&gt;The field picker and the fields index/source/sourcetype is a Splunk GUI feature (provides metadata about the search result) and is not available in Splunk CLI (understandably). If you wish to see these fields into your result, you would have to use search commands like table.&lt;/P&gt;

&lt;P&gt;e.g. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# splunk search " your search | table source, sourcetype, host, your other fields from search result"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Mar 2014 19:06:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-fields-to-the-output-of-a-CLI-search/m-p/173573#M186572</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-03-04T19:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Adding fields to the output of a CLI search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-fields-to-the-output-of-a-CLI-search/m-p/173574#M186573</link>
      <description>&lt;P&gt;The "table" command gave me the other half. Now I can get the host, source, and sourcetype, but I'm missing the actual search results. I tried adding "_raw", but that just gets me the results (same as before):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# splunk search "reboot | table host, source, _raw"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Mar 2014 19:23:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-fields-to-the-output-of-a-CLI-search/m-p/173574#M186573</guid>
      <dc:creator>dmalcor</dc:creator>
      <dc:date>2014-03-04T19:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adding fields to the output of a CLI search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-fields-to-the-output-of-a-CLI-search/m-p/173575#M186574</link>
      <description>&lt;P&gt;The "table" command gave me the other half. Now I can get the host, source, and sourcetype, but I'm missing the actual search results. I tried adding "_raw", but that just gets me the results (same as before):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# splunk search "reboot | table host, source, _raw"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Mar 2014 19:24:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-fields-to-the-output-of-a-CLI-search/m-p/173575#M186574</guid>
      <dc:creator>dmalcor</dc:creator>
      <dc:date>2014-03-04T19:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding fields to the output of a CLI search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-fields-to-the-output-of-a-CLI-search/m-p/173576#M186575</link>
      <description>&lt;P&gt;Try this.&lt;/P&gt;

&lt;P&gt;splunk search "reboot| table host, source , *"&lt;/P&gt;

&lt;P&gt;This will give all the columns you need. I don't think you would be able to see the event listing (way to see in GUI) + these three additional columns. If you are interested in specific column, specify them in the table command.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2014 20:04:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-fields-to-the-output-of-a-CLI-search/m-p/173576#M186575</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-03-04T20:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adding fields to the output of a CLI search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-fields-to-the-output-of-a-CLI-search/m-p/173577#M186576</link>
      <description>&lt;P&gt;It seem like we can't get the message and the details on the same line. The "&lt;EM&gt;" is no different than no "&lt;/EM&gt;".&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2014 22:39:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-fields-to-the-output-of-a-CLI-search/m-p/173577#M186576</guid>
      <dc:creator>dmalcor</dc:creator>
      <dc:date>2014-03-04T22:39:31Z</dc:date>
    </item>
  </channel>
</rss>

