<?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 How to check regexp rules from transforms.conf ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-check-regexp-rules-from-transforms-conf/m-p/370459#M67219</link>
    <description>&lt;P&gt;Hi, &lt;BR /&gt;
I'm looking for a way (through a cmdline for example) to check whether my rules inside transforms.conf are correct or not ?&lt;BR /&gt;
I've checked them with a grep of course in cmdline, but either I mis-understood the way transforms.conf works or there is an issue in the regexp (which I'd therefore like to validate).&lt;BR /&gt;
My goal is that I don't want to send to the indexer all the lines that match one of the 4 regexp bellow.&lt;BR /&gt;
I have I syslog VM on which I have a UF (ie: the conf bellow) and another VM : Splunk  (indexer head) that receive data.&lt;/P&gt;

&lt;P&gt;ideally I'd like to find a way to do something like:&lt;BR /&gt;
check_transform.sh   &lt;/P&gt;

&lt;P&gt;Thanks a lot for your help.&lt;BR /&gt;
regards.&lt;BR /&gt;
JT&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[syslog-mgmt]&lt;BR /&gt;
TRANSFORMS-set= setnull-part1,setnull-part2,setnull-part3,setnull-part4&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[setnull-part1]&lt;BR /&gt;
REGEX = created\s[0-9./]*-&amp;gt;10.90.3.[35]/53&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[setnull-part2]&lt;BR /&gt;
REGEX = created\s10.90.3.[46]/[0-9]&lt;EM&gt;-&amp;gt;[.0-9]&lt;/EM&gt;/53&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[setnull-part3]&lt;BR /&gt;
REGEX = created\s10.20.139.3/&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[setnull-part4]&lt;BR /&gt;
REGEX = &amp;gt;10.100.105.1/137&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;~&lt;BR /&gt;
~&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2018 19:29:57 GMT</pubDate>
    <dc:creator>ucp_djaity</dc:creator>
    <dc:date>2018-02-08T19:29:57Z</dc:date>
    <item>
      <title>How to check regexp rules from transforms.conf ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-check-regexp-rules-from-transforms-conf/m-p/370459#M67219</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
I'm looking for a way (through a cmdline for example) to check whether my rules inside transforms.conf are correct or not ?&lt;BR /&gt;
I've checked them with a grep of course in cmdline, but either I mis-understood the way transforms.conf works or there is an issue in the regexp (which I'd therefore like to validate).&lt;BR /&gt;
My goal is that I don't want to send to the indexer all the lines that match one of the 4 regexp bellow.&lt;BR /&gt;
I have I syslog VM on which I have a UF (ie: the conf bellow) and another VM : Splunk  (indexer head) that receive data.&lt;/P&gt;

&lt;P&gt;ideally I'd like to find a way to do something like:&lt;BR /&gt;
check_transform.sh   &lt;/P&gt;

&lt;P&gt;Thanks a lot for your help.&lt;BR /&gt;
regards.&lt;BR /&gt;
JT&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[syslog-mgmt]&lt;BR /&gt;
TRANSFORMS-set= setnull-part1,setnull-part2,setnull-part3,setnull-part4&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[setnull-part1]&lt;BR /&gt;
REGEX = created\s[0-9./]*-&amp;gt;10.90.3.[35]/53&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[setnull-part2]&lt;BR /&gt;
REGEX = created\s10.90.3.[46]/[0-9]&lt;EM&gt;-&amp;gt;[.0-9]&lt;/EM&gt;/53&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[setnull-part3]&lt;BR /&gt;
REGEX = created\s10.20.139.3/&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[setnull-part4]&lt;BR /&gt;
REGEX = &amp;gt;10.100.105.1/137&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;~&lt;BR /&gt;
~&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 19:29:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-check-regexp-rules-from-transforms-conf/m-p/370459#M67219</guid>
      <dc:creator>ucp_djaity</dc:creator>
      <dc:date>2018-02-08T19:29:57Z</dc:date>
    </item>
  </channel>
</rss>

