<?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: Can I select specified fields with the Python SDK? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Can-I-select-specified-fields-with-the-Python-SDK/m-p/242226#M3070</link>
    <description>&lt;P&gt;It's ... | fields - thisOne thatOne&lt;/P&gt;

&lt;P&gt;minus removes... plus adds /  technically works too if you need to add a blank field, or if you just want to be verbose&lt;/P&gt;

&lt;P&gt;... | fields + Action bug_id Host User &lt;BR /&gt;
is same as &lt;BR /&gt;
... | fields Action bug_id Host User &lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 10:42:44 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2020-09-29T10:42:44Z</dc:date>
    <item>
      <title>Can I select specified fields with the Python SDK?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Can-I-select-specified-fields-with-the-Python-SDK/m-p/242223#M3067</link>
      <description>&lt;P&gt;I'd like to write a python script to select only certain fields such as the UI does (example below) and load them into a pandas dataframe.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1750i845BEDF875FE1795/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2016 14:57:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Can-I-select-specified-fields-with-the-Python-SDK/m-p/242223#M3067</guid>
      <dc:creator>anshanno</dc:creator>
      <dc:date>2016-08-22T14:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can I select specified fields with the Python SDK?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Can-I-select-specified-fields-with-the-Python-SDK/m-p/242224#M3068</link>
      <description>&lt;P&gt;Yes, just use the fields command in your search string:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|fields Action bug_id Host User
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Aug 2016 15:12:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Can-I-select-specified-fields-with-the-Python-SDK/m-p/242224#M3068</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-08-22T15:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can I select specified fields with the Python SDK?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Can-I-select-specified-fields-with-the-Python-SDK/m-p/242225#M3069</link>
      <description>&lt;P&gt;Awesome, thank you so much!  I wasn't able to find this in the documentation.&lt;/P&gt;

&lt;P&gt;EDIT:  is there away to get rid of the extra garbage too, I am presuming something like ...|exclude fields yada yada?&lt;/P&gt;

&lt;P&gt;Action,User,"b_Project",Host,"_bkt","_cd","_indextime","_kv","_raw","_serial","_si","_sourcetype","_subsecond","_time"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:42:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Can-I-select-specified-fields-with-the-Python-SDK/m-p/242225#M3069</guid>
      <dc:creator>anshanno</dc:creator>
      <dc:date>2020-09-29T10:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can I select specified fields with the Python SDK?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Can-I-select-specified-fields-with-the-Python-SDK/m-p/242226#M3070</link>
      <description>&lt;P&gt;It's ... | fields - thisOne thatOne&lt;/P&gt;

&lt;P&gt;minus removes... plus adds /  technically works too if you need to add a blank field, or if you just want to be verbose&lt;/P&gt;

&lt;P&gt;... | fields + Action bug_id Host User &lt;BR /&gt;
is same as &lt;BR /&gt;
... | fields Action bug_id Host User &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:42:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Can-I-select-specified-fields-with-the-Python-SDK/m-p/242226#M3070</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2020-09-29T10:42:44Z</dc:date>
    </item>
  </channel>
</rss>

