<?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: Filter several strings in transforms.conf in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162505#M46078</link>
    <description>&lt;P&gt;Am I wrong or its a multiline log ? Did u try your regex in a search query ?&lt;/P&gt;

&lt;P&gt;btw: I've edited the transforms.conf check that out if it works.&lt;/P&gt;</description>
    <pubDate>Wed, 14 May 2014 12:27:53 GMT</pubDate>
    <dc:creator>alemarzu</dc:creator>
    <dc:date>2014-05-14T12:27:53Z</dc:date>
    <item>
      <title>Filter several strings in transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162500#M46073</link>
      <description>&lt;P&gt;&lt;STRONG&gt;EDITED to add relevant info:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I'm trying to prevent indexing of entries containing certain strings (ACDB0000,ACM0033,W0032,L0041, \[DEBUG\])&lt;/P&gt;

&lt;P&gt;This stanza worked fine when all I wanted to filter was debug entries:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#old transforms.conf
[setnull]
REGEX = \[DEBUG\])
DEST_KEY = queue
FORMAT = nullQueue 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But when I add a few more string to the REGEX, failure ensues. The log events containing ACM0033 and ACDB0000 aren't getting filtered out. They are still getting indexed. This is the new transforms file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#new transforms.conf
[setnull]
REGEX = (W0032|L0041|ACM0033|ACDB0000|\[DEBUG\]) 
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is my props.conf for both configs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# same props.conf
[default]
TRANSFORMS-null = setnull
CHARSET = AUTO
NO_BINARY_CHECK = 1
pulldown_type = 1

[foo-prod]
TIME_FORMAT = %b %d %H:%M:%S
NO_BINARY_CHECK = 1
pulldown_type = 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The log entries in question look something like this. A date, a level of severity in brackets and then a string of varying length. All generated in the standard Unix syslog format&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2014-05-13 22:56:20,988 [INFO] ACDB0000: ACDB_LOG - IncomingRequest. guid=AN-ON method=register idx=0 &amp;lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&amp;gt;&amp;lt;soap:Body&amp;gt;&amp;lt;ns2:register 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 May 2014 17:58:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162500#M46073</guid>
      <dc:creator>gozulin</dc:creator>
      <dc:date>2014-05-13T17:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Filter several strings in transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162501#M46074</link>
      <description>&lt;P&gt;How is it not working?  Filtering too much or too little?  Please provide some sample log events.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2014 18:01:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162501#M46074</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-05-13T18:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filter several strings in transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162502#M46075</link>
      <description>&lt;H1&gt;props.conf&lt;/H1&gt;

&lt;P&gt;[default]&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%d %H:%M:%S,%9N&lt;BR /&gt;
TRANSFORMS-changeme = changeme_setnull, changeme_setparsing&lt;BR /&gt;
CHARSET = AUTO&lt;BR /&gt;
NO_BINARY_CHECK = 1&lt;BR /&gt;
pulldown_type = 1&lt;/P&gt;

&lt;H1&gt;transforms.conf&lt;/H1&gt;

&lt;P&gt;[changeme_setparsing]&lt;BR /&gt;
REGEX = (W0032|L0041|ACM0033|ACDB0000|[DEBUG])&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;[changeme_setnull]&lt;BR /&gt;
REGEX =  .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;What kind of log u have there ? I'm not sure but you can try this. (kinda new to splunk so bare with me)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:36:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162502#M46075</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2020-09-28T16:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filter several strings in transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162503#M46076</link>
      <description>&lt;P&gt;they are syslog generated on linux/solaris machines&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2014 19:16:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162503#M46076</guid>
      <dc:creator>gozulin</dc:creator>
      <dc:date>2014-05-13T19:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Filter several strings in transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162504#M46077</link>
      <description>&lt;P&gt;As Rich said, can u provide some sample ? And what was the outcome ?&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2014 19:34:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162504#M46077</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2014-05-13T19:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Filter several strings in transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162505#M46078</link>
      <description>&lt;P&gt;Am I wrong or its a multiline log ? Did u try your regex in a search query ?&lt;/P&gt;

&lt;P&gt;btw: I've edited the transforms.conf check that out if it works.&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2014 12:27:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162505#M46078</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2014-05-14T12:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Filter several strings in transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162506#M46079</link>
      <description>&lt;P&gt;I tried this search query:&lt;BR /&gt;
    W0032 OR L0041 OR ACM0033 OR ACDB0000 OR \[DEBUG\] &lt;BR /&gt;
It finds ACM0033 and ACDB0000 entries but DEBUG, W0032 and L0041 appear to be filtered properly.&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2014 17:49:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162506#M46079</guid>
      <dc:creator>gozulin</dc:creator>
      <dc:date>2014-05-16T17:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Filter several strings in transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162507#M46080</link>
      <description>&lt;P&gt;I have edited my post to answer your question. Please let me know if you'd like more info.&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2014 18:17:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162507#M46080</guid>
      <dc:creator>gozulin</dc:creator>
      <dc:date>2014-05-16T18:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filter several strings in transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162508#M46081</link>
      <description>&lt;P&gt;What is the reason for changing the format from nullQueue to indexQueue?&lt;/P&gt;

&lt;P&gt;Also, what is the function of:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[changeme_setnull]
REGEX =  .
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would appreciate it if you would explain your reasoning to me so I could learn more.&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2014 19:14:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162508#M46081</guid>
      <dc:creator>gozulin</dc:creator>
      <dc:date>2014-05-16T19:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filter several strings in transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162509#M46082</link>
      <description>&lt;P&gt;What is the reason for changing the format from nullQueue to indexQueue?&lt;/P&gt;

&lt;P&gt;Also, what is the function of:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[changeme_setnull]
REGEX =  .
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would appreciate it if you would explain your reasoning to me so I could learn more.&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2014 19:15:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-several-strings-in-transforms-conf/m-p/162509#M46082</guid>
      <dc:creator>gozulin</dc:creator>
      <dc:date>2014-05-16T19:15:03Z</dc:date>
    </item>
  </channel>
</rss>

