<?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 to execute TRANSFORMS by source name in props.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-TRANSFORMS-by-source-name-in-props-conf/m-p/263310#M50520</link>
    <description>&lt;P&gt;Have you checked the file $SPLUNK_HOME/var/log/splunk/splunkd.log for any warnings or errors?&lt;BR /&gt;
Also, just running &lt;CODE&gt;$SPLUNK_HOME/bin/splunk btool check&lt;/CODE&gt; might also turn up something.&lt;/P&gt;

&lt;P&gt;I'm running low on ideas...&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 12:03:01 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2020-09-29T12:03:01Z</dc:date>
    <item>
      <title>How to execute TRANSFORMS by source name in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-TRANSFORMS-by-source-name-in-props-conf/m-p/263305#M50515</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Given the below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;inputs.conf

[monitor://\\MyServer\MyFolder]
disabled = false
host = MyServer
index = MyIndex
sourcetype = MySourceType
ignoreOlderThan = 2d
recursive = false
whitelist = (MyLog1\d+-\d+\.txt)|(MyLog2\d+-\d+\.txt)

props.conf

[MySourceType]
TRANSFORMS-trash = badError, badError2
BREAK_ONLY_BEFORE_DATE = TRUE
SHOULD_LINEMERGE = TRUE
TIME_FORMAT = %m/%d/%Y %T
TRUNCATE = 0
MAX_DAYS_AGO = 2
sourcetype = MySourceType


[source::.../\\Myfolder\\MyLog2*.txt]
TRANSFORMS-removejunk = setnull , setparsing

[source::..../MyServer\\MyFolder\\MyLog2*.txt]
TRANSFORMS-removejunk = setnull , setparsing


[source::\\\\MyServer\MyFolder\MyLog2*.txt]
TRANSFORMS-removejunk = setnull , setparsing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm trying to have a transform just for one of the log files (MyLog2) in the white list. The file is a UNC path and I have tried the 3 naming entries and nothing works. I use &lt;CODE&gt;setnull&lt;/CODE&gt; and &lt;CODE&gt;setparsing&lt;/CODE&gt; elsewhere so I know they function properly. &lt;/P&gt;

&lt;P&gt;Is there a way to do this by source?&lt;/P&gt;

&lt;P&gt;I have a workaround by creating a separate stanza just for this file, but it would be less configuration to be able to use the white list and execute a transform by source name.&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 19:12:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-TRANSFORMS-by-source-name-in-props-conf/m-p/263305#M50515</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2016-12-05T19:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute TRANSFORMS by source name in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-TRANSFORMS-by-source-name-in-props-conf/m-p/263306#M50516</link>
      <description>&lt;P&gt;I think that the problem is definitely in your &lt;CODE&gt;source::&lt;/CODE&gt; spec. And I believe that it should be&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::\\\\MyServer\\MyFolder\\MyLog2*.txt]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You might want to review the props.conf &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf#GLOBAL_SETTINGS"&gt;Global Settings&lt;/A&gt;&lt;BR /&gt;
I learn something new every time I read the props.conf documentation!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 22:36:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-TRANSFORMS-by-source-name-in-props-conf/m-p/263306#M50516</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2016-12-05T22:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute TRANSFORMS by source name in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-TRANSFORMS-by-source-name-in-props-conf/m-p/263307#M50517</link>
      <description>&lt;P&gt;Thanks. I just tried :&lt;BR /&gt;
    [source::\\MyServer\MyFolder\MyLog2*.txt]&lt;BR /&gt;
Still no go. Maybe I'm missing something in reading the props.conf docs...&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 16:49:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-TRANSFORMS-by-source-name-in-props-conf/m-p/263307#M50517</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2016-12-06T16:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute TRANSFORMS by source name in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-TRANSFORMS-by-source-name-in-props-conf/m-p/263308#M50518</link>
      <description>&lt;P&gt;are you on a single full instance or in a distributed architecture with some forwarders ?&lt;BR /&gt;
In the second case, your settings may not be deployed on the correct instance.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 22:06:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-TRANSFORMS-by-source-name-in-props-conf/m-p/263308#M50518</guid>
      <dc:creator>maraman_splunk</dc:creator>
      <dc:date>2016-12-06T22:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute TRANSFORMS by source name in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-TRANSFORMS-by-source-name-in-props-conf/m-p/263309#M50519</link>
      <description>&lt;P&gt;Single. No forwarders. &lt;/P&gt;

&lt;P&gt;Thanks for trying to help.&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 15:26:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-TRANSFORMS-by-source-name-in-props-conf/m-p/263309#M50519</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2016-12-07T15:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute TRANSFORMS by source name in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-TRANSFORMS-by-source-name-in-props-conf/m-p/263310#M50520</link>
      <description>&lt;P&gt;Have you checked the file $SPLUNK_HOME/var/log/splunk/splunkd.log for any warnings or errors?&lt;BR /&gt;
Also, just running &lt;CODE&gt;$SPLUNK_HOME/bin/splunk btool check&lt;/CODE&gt; might also turn up something.&lt;/P&gt;

&lt;P&gt;I'm running low on ideas...&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:03:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-execute-TRANSFORMS-by-source-name-in-props-conf/m-p/263310#M50520</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2020-09-29T12:03:01Z</dc:date>
    </item>
  </channel>
</rss>

