<?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 ensure regex filters in transforms.conf and a stanza in props.conf only applies to a specific input? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ensure-regex-filters-in-transforms-conf-and-a-stanza-in/m-p/427818#M74957</link>
    <description>&lt;P&gt;Hello, thanks for the response. Adding [source::/var/log/syslog]&lt;BR /&gt;
 in the stanza won't help for my use case. I have different inputs that send logs to multiple indexes, but they have the same source log, and I want to apply the filter to one of these inputs, but not the other. Is there anything else I can do?&lt;BR /&gt;
Is there no way to point the input at the props stanza?&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2019 19:11:38 GMT</pubDate>
    <dc:creator>bms9nmh</dc:creator>
    <dc:date>2019-08-05T19:11:38Z</dc:date>
    <item>
      <title>How to ensure regex filters in transforms.conf and a stanza in props.conf only applies to a specific input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ensure-regex-filters-in-transforms-conf-and-a-stanza-in/m-p/427816#M74955</link>
      <description>&lt;P&gt;Hello, so I understand that my props.conf and transforms.conf  (below) in theory allow me to filter out the events that match the regex specified. &lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [filter_out_auth_logs]
 TRANSFORMS-tonull = filter_out_word
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [filter_out_word]
 REGEX =  WORD\[.*?\]:
 DEST_KEY = queue
 FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I am unsure of, is how I ensure this filter is only applied to a specific input? &lt;/P&gt;

&lt;P&gt;For example, if I have the following entries in the input.config file, where do I specify that I want the input that sends logs to myindex1 to make use of the filtering specified in props and transforms configs?:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [monitor:///var/log/syslog]
    index = myindex1
    sourcetype = syslog

[monitor:///var/log/syslog.log]
        index = myindex2
        sourcetype = syslog
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Aug 2019 17:44:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ensure-regex-filters-in-transforms-conf-and-a-stanza-in/m-p/427816#M74955</guid>
      <dc:creator>bms9nmh</dc:creator>
      <dc:date>2019-08-05T17:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to ensure regex filters in transforms.conf and a stanza in props.conf only applies to a specific input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ensure-regex-filters-in-transforms-conf-and-a-stanza-in/m-p/427817#M74956</link>
      <description>&lt;P&gt;You can do this by specifying the source to have action taken against in props.conf. So you'll end up with a props.conf config that looks something like this:&lt;/P&gt;

&lt;P&gt;[source::/var/log/syslog]&lt;BR /&gt;
  REGEX =  WORD[.*?]:&lt;BR /&gt;
  DEST_KEY = queue&lt;BR /&gt;
  FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;You want to set the name of your props.conf stanza to refer to some metadata which splunk can use to process the logs through your transforms. &lt;/P&gt;

&lt;P&gt;You can find more about the specifics here: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/admin/Propsconf"&gt;https://docs.splunk.com/Documentation/Splunk/latest/admin/Propsconf&lt;/A&gt;&lt;BR /&gt;
(note:  []&lt;BR /&gt;
* This stanza enables properties for a given .&lt;BR /&gt;
* A props.conf file can contain multiple stanzas for any number of&lt;BR /&gt;
  different .&lt;BR /&gt;
* Follow this stanza name with any number of the following setting/value&lt;BR /&gt;
  pairs, as appropriate for what you want to do.&lt;BR /&gt;
* If you do not set a setting for a given , the default is used.&lt;/P&gt;

&lt;P&gt;can be:&lt;BR /&gt;
1. , the source type of an event.&lt;BR /&gt;
2. host::, where  is the host, or host-matching pattern, for an&lt;BR /&gt;
                 event.&lt;BR /&gt;
3. source::, where  is the source, or source-matching&lt;BR /&gt;
                     pattern, for an event.&lt;BR /&gt;
4. rule::, where  is a unique name of a source type&lt;BR /&gt;
                     classification rule.&lt;BR /&gt;
5. delayedrule::, where  is a unique name of a delayed&lt;BR /&gt;
                            source type classification rule.&lt;BR /&gt;
                            These are only considered as a last resort&lt;BR /&gt;
                            before generating a new source type based on the&lt;BR /&gt;
                            source seen.)&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 18:55:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ensure-regex-filters-in-transforms-conf-and-a-stanza-in/m-p/427817#M74956</guid>
      <dc:creator>audunn</dc:creator>
      <dc:date>2019-08-05T18:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to ensure regex filters in transforms.conf and a stanza in props.conf only applies to a specific input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ensure-regex-filters-in-transforms-conf-and-a-stanza-in/m-p/427818#M74957</link>
      <description>&lt;P&gt;Hello, thanks for the response. Adding [source::/var/log/syslog]&lt;BR /&gt;
 in the stanza won't help for my use case. I have different inputs that send logs to multiple indexes, but they have the same source log, and I want to apply the filter to one of these inputs, but not the other. Is there anything else I can do?&lt;BR /&gt;
Is there no way to point the input at the props stanza?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 19:11:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ensure-regex-filters-in-transforms-conf-and-a-stanza-in/m-p/427818#M74957</guid>
      <dc:creator>bms9nmh</dc:creator>
      <dc:date>2019-08-05T19:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to ensure regex filters in transforms.conf and a stanza in props.conf only applies to a specific input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-ensure-regex-filters-in-transforms-conf-and-a-stanza-in/m-p/427819#M74958</link>
      <description>&lt;P&gt;how we handle that in our org is by giving those a unique sourcetype and stitching everything together for end user simplicity with tags&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 19:25:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-ensure-regex-filters-in-transforms-conf-and-a-stanza-in/m-p/427819#M74958</guid>
      <dc:creator>audunn</dc:creator>
      <dc:date>2019-08-05T19:25:48Z</dc:date>
    </item>
  </channel>
</rss>

