<?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 edit props.conf and transforms.conf to keep specific events and discard the rest? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255355#M49046</link>
    <description>&lt;P&gt;The REGEX should match exact format where that literal string is available, check if there are any extra spaces in between. Also, this should be setup on Indexers/Heavy forwarder.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2017 22:01:01 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-01-26T22:01:01Z</dc:date>
    <item>
      <title>How to edit props.conf and transforms.conf to keep specific events and discard the rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255351#M49042</link>
      <description>&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::192.168.1.20:514]
TRANSFORMS-set= setnull,sra
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[sra]
REGEX = m=236
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Basically, I want my Splunk server to accept any event where field "m" equals 236 for a certain host. All other events get discarded. After putting both in "Splunk\etc\system\local" and restarting Splunk, I'm still getting all events.&lt;/P&gt;

&lt;P&gt;Here's an example of _raw:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Jan 20 14:49:37 10.11.83.1 id=firewall sn=123456789ABC time="2015-04-17 19:48:01 UTC" fw=192.168.1.96 pri=6 c=16 m=236 msg="An error has occurred" sess="Web" n=11 usr="admin" src=192.168.1.200 dst=192.168.1.95 proto=tcp/800
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:45:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255351#M49042</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2017-01-26T21:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf and transforms.conf to keep specific events and discard the rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255352#M49043</link>
      <description>&lt;P&gt;The REGEX attribute, during index-time operations, only works fields specified here, and by default applied to _raw. It doesn't apply to any custom field that you might have. If the literal string &lt;CODE&gt;m=235&lt;/CODE&gt; is not there in raw data, it won't be effective. You need to write a REGEX which will work on your raw data to filter/drop events that you want. If you can provide some sample events, of both you want to keep and drop, and highlight where the field &lt;CODE&gt;m&lt;/CODE&gt; value is in there, we may suggest something.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.1/Admin/Transformsconf#KEYS:"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.1/Admin/Transformsconf#KEYS:&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:52:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255352#M49043</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-26T21:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf and transforms.conf to keep specific events and discard the rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255353#M49044</link>
      <description>&lt;P&gt;You're saying because fields haven't been extracted at this point, yeah? The literal string, m=235, is in there.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:55:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255353#M49044</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2017-01-26T21:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf and transforms.conf to keep specific events and discard the rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255354#M49045</link>
      <description>&lt;P&gt;Also, updated to show an example of an event.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:59:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255354#M49045</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2017-01-26T21:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf and transforms.conf to keep specific events and discard the rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255355#M49046</link>
      <description>&lt;P&gt;The REGEX should match exact format where that literal string is available, check if there are any extra spaces in between. Also, this should be setup on Indexers/Heavy forwarder.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 22:01:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255355#M49046</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-26T22:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf and transforms.conf to keep specific events and discard the rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255356#M49047</link>
      <description>&lt;P&gt;Does match exact format. It's one character field name equals a number.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 22:04:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255356#M49047</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2017-01-26T22:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf and transforms.conf to keep specific events and discard the rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255357#M49048</link>
      <description>&lt;P&gt;The thing is, I'd expect to be getting no information. But I'm still getting all. Is my props file correct?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 22:07:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255357#M49048</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2017-01-26T22:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf and transforms.conf to keep specific events and discard the rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255358#M49049</link>
      <description>&lt;P&gt;Is that the exact host name? If all the data that you're receiving is for single sourcetype, use that (is much simpler). Also, How are you getting the data, through Universal forwarder? If yes, then is UF sending data to Indexers or some heavy forwarder? The props/transforms should be placed there. Other than that (location of conf files and validity of stanza name in props.conf), your configurations looks good.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 22:10:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255358#M49049</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-26T22:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf and transforms.conf to keep specific events and discard the rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255359#M49050</link>
      <description>&lt;P&gt;How about you try this for REGEX in transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = \s+m=236\s+
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jan 2017 22:12:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255359#M49050</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-26T22:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf and transforms.conf to keep specific events and discard the rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255360#M49051</link>
      <description>&lt;P&gt;Never mind, I realized I specified the port number in the address.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 22:12:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255360#M49051</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2017-01-26T22:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf and transforms.conf to keep specific events and discard the rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255361#M49052</link>
      <description>&lt;P&gt;I'm getting data from a network device via syslog. I cannot configure what it sends me. It's all or nothing.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 22:15:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255361#M49052</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2017-01-26T22:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf and transforms.conf to keep specific events and discard the rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255362#M49053</link>
      <description>&lt;P&gt;So does it work after your remove the port?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 22:25:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255362#M49053</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-26T22:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf and transforms.conf to keep specific events and discard the rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255363#M49054</link>
      <description>&lt;P&gt;Hi  tmontney,&lt;BR /&gt;
if in your logs you have "m=236", you can filter your logs in the way you used, but correcting the regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; REGEX = m\=236
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Beware that if you insert props.conf and transforms.conf in $SPLUNK_HOME/etc/system/local, you cannot manage them by Deployment Server and to deploy them in many servers will be very heavy!&lt;BR /&gt;
Every way it's a best practice to manage configurations in Apps or Technology Add-Ons.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 07:34:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255363#M49054</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-01-27T07:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit props.conf and transforms.conf to keep specific events and discard the rest?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255364#M49055</link>
      <description>&lt;P&gt;Try this.&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::192\.168\.1\.20]
TRANSFORMS-set= setnull,sra
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[sra]
REGEX = \s+m=236\s+msg=
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Put these files on every Indexer and restart all splunkd instances there.  Events that arrive and are indexed after this will be correct; older events will stay as they were.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2017 06:54:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-props-conf-and-transforms-conf-to-keep-specific/m-p/255364#M49055</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-05T06:54:02Z</dc:date>
    </item>
  </channel>
</rss>

