<?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 i write external_cmd python script in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/how-i-write-external-cmd-python-script/m-p/495833#M8920</link>
    <description>&lt;P&gt;Yes, a script can do that, but the data must be read &lt;EM&gt;by the script&lt;/EM&gt;.  It is not possible for a script to process data as it passes through an indexer.&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2020 16:49:47 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-05-12T16:49:47Z</dc:date>
    <item>
      <title>how i write external_cmd python script</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/how-i-write-external-cmd-python-script/m-p/495826#M8913</link>
      <description>&lt;P&gt;I need to alter data in splunk using props.conf&lt;BR /&gt;I need to use external_cmd to run python script&lt;BR /&gt;Can you give me a example python script for that.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 18:11:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/how-i-write-external-cmd-python-script/m-p/495826#M8913</guid>
      <dc:creator>zchandikaz</dc:creator>
      <dc:date>2020-06-07T18:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: how i write external_cmd python script</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/how-i-write-external-cmd-python-script/m-p/495827#M8914</link>
      <description>&lt;P&gt;Data in Splunk cannot be altered using props.conf or any other means.&lt;BR /&gt;
Data arriving at Splunk can be modified using transforms.conf.  See &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.3/Data/Anonymizedata"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.3/Data/Anonymizedata&lt;/A&gt; for an example.&lt;/P&gt;

&lt;P&gt;See &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.3/Search/Writeasearchcommand"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.3/Search/Writeasearchcommand&lt;/A&gt; for how to write an external command.&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 19:35:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/how-i-write-external-cmd-python-script/m-p/495827#M8914</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-10T19:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: how i write external_cmd python script</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/how-i-write-external-cmd-python-script/m-p/495828#M8915</link>
      <description>&lt;P&gt;Yes&lt;BR /&gt;
Do you know alter data in transforms.conf using python program. I couldn't find a example to alter using python as i alter data using SEDCMD.&lt;/P&gt;

&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 02:11:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/how-i-write-external-cmd-python-script/m-p/495828#M8915</guid>
      <dc:creator>zchandikaz</dc:creator>
      <dc:date>2020-05-11T02:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: how i write external_cmd python script</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/how-i-write-external-cmd-python-script/m-p/495829#M8916</link>
      <description>&lt;P&gt;If your python program is a scripted or modular input then you can make all the changes you like.  It won't involve transforms.conf, however.&lt;BR /&gt;
Or do you want to change the transforms.conf file itself using python?  If so, I don't have an answer.&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 11:38:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/how-i-write-external-cmd-python-script/m-p/495829#M8916</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-11T11:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: how i write external_cmd python script</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/how-i-write-external-cmd-python-script/m-p/495830#M8917</link>
      <description>&lt;P&gt;No No&lt;BR /&gt;
I simply want to mask some data using transforms.conf and props.conf. I know how to do it using SEDCMD or EVAL.But i need to consider more conditions before masking. So i need to use a python script to do it. But i don't know how to do it&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 12:33:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/how-i-write-external-cmd-python-script/m-p/495830#M8917</guid>
      <dc:creator>zchandikaz</dc:creator>
      <dc:date>2020-05-11T12:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: how i write external_cmd python script</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/how-i-write-external-cmd-python-script/m-p/495831#M8918</link>
      <description>&lt;P&gt;You seem to be contradicting yourself.  You say you want to use transforms, but you don't want to use SEDCMD or EVAL, which are the methods offered by transforms.  Like I said previously, a python script used as a modular or scripted input can make any alterations it wants to.&lt;BR /&gt;
Perhaps you should describe what kind of data is involved, how it is being onboarded, and what it should look like in Splunk.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 12:29:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/how-i-write-external-cmd-python-script/m-p/495831#M8918</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-12T12:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: how i write external_cmd python script</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/how-i-write-external-cmd-python-script/m-p/495832#M8919</link>
      <description>&lt;P&gt;simply i need to mask data in events&lt;BR /&gt;
before masking i need to consider log level, logger and some conditions&lt;BR /&gt;
So if i can write a script to mask, it'll be easy&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 12:33:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/how-i-write-external-cmd-python-script/m-p/495832#M8919</guid>
      <dc:creator>zchandikaz</dc:creator>
      <dc:date>2020-05-12T12:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: how i write external_cmd python script</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/how-i-write-external-cmd-python-script/m-p/495833#M8920</link>
      <description>&lt;P&gt;Yes, a script can do that, but the data must be read &lt;EM&gt;by the script&lt;/EM&gt;.  It is not possible for a script to process data as it passes through an indexer.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 16:49:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/how-i-write-external-cmd-python-script/m-p/495833#M8920</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-12T16:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: how i write external_cmd python script</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/how-i-write-external-cmd-python-script/m-p/495834#M8921</link>
      <description>&lt;P&gt;yes i'll find another alternative, thank you very much&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 16:52:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/how-i-write-external-cmd-python-script/m-p/495834#M8921</guid>
      <dc:creator>zchandikaz</dc:creator>
      <dc:date>2020-05-12T16:52:11Z</dc:date>
    </item>
  </channel>
</rss>

