<?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: Unable to drop event in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392897#M70184</link>
    <description>&lt;P&gt;Check the configuration that it is using, in case there is another overriding configuration:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk btool transforms list --debug | less
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Look for the &lt;CODE&gt;setsslah&lt;/CODE&gt; stanzas in the output to see if it is getting the same thing that you think that it is.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jun 2018 00:17:16 GMT</pubDate>
    <dc:creator>cpetterborg</dc:creator>
    <dc:date>2018-06-15T00:17:16Z</dc:date>
    <item>
      <title>Unable to drop event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392895#M70182</link>
      <description>&lt;P&gt;I'm trying to drop some failed messages from an imported txt file, but they continue to be in the sourcetype. The regex works using regexe101.com, and it looks ok in the splunk docs, but they wont be dropped.&lt;/P&gt;

&lt;P&gt;Can somebody check my syntax please.&lt;/P&gt;

&lt;P&gt;Below is copies of the transforms.conf and props.conf.&lt;BR /&gt;
[splunk@linux1 local]$ cat props.conf&lt;BR /&gt;
[sslah]&lt;BR /&gt;
LINE_BREAKER = \d(4)-\d(2)-\d(2)\s\d(2):\d(2):\d(2)&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%d %H:%M:%S&lt;BR /&gt;
TIME_PREFIX = ^&lt;BR /&gt;
SHOULD_LINEMERGE = False&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 19&lt;BR /&gt;
TRUNCATE = 2000&lt;BR /&gt;
TRANSFORMS-null = setsslah&lt;/P&gt;

&lt;P&gt;[splunk@linux1 local]$ cat transforms.conf&lt;BR /&gt;
[setsslah]&lt;BR /&gt;
REGEX = \d+.\d+.\d+.\d+\sFAILED&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:03:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392895#M70182</guid>
      <dc:creator>alanhowlett</dc:creator>
      <dc:date>2020-09-29T20:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to drop event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392896#M70183</link>
      <description>&lt;P&gt;How is the data coming into Splunk? UF? HF? Standalone? &lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 23:39:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392896#M70183</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2018-06-14T23:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to drop event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392897#M70184</link>
      <description>&lt;P&gt;Check the configuration that it is using, in case there is another overriding configuration:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk btool transforms list --debug | less
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Look for the &lt;CODE&gt;setsslah&lt;/CODE&gt; stanzas in the output to see if it is getting the same thing that you think that it is.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 00:17:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392897#M70184</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2018-06-15T00:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to drop event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392898#M70185</link>
      <description>&lt;P&gt;Your LINE_BREAKER attribute should use braces '{}' instead of parentheses '()'.  Also, it must contain at least one capture group.  Finally, everything that matches the LINE_BREAKER is discarded, which probably is not what you want with a timestamp.&lt;/P&gt;

&lt;P&gt;Of course, all of this is pure speculation without seeing any sample data.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:00:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392898#M70185</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-29T20:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to drop event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392899#M70186</link>
      <description>&lt;P&gt;Which version of Splunk are you using?&lt;BR /&gt;
Try with version 7.0.3&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 04:26:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392899#M70186</guid>
      <dc:creator>amiftah</dc:creator>
      <dc:date>2018-06-15T04:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to drop event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392900#M70187</link>
      <description>&lt;P&gt;Good spot richgalloway, but changing to {} still doesn't work.&lt;/P&gt;

&lt;P&gt;I thought it might be syntax so upgraded the software to Version 7.1.1&lt;/P&gt;

&lt;P&gt;Still the same.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 07:22:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392900#M70187</guid>
      <dc:creator>alanhowlett</dc:creator>
      <dc:date>2018-06-15T07:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to drop event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392901#M70188</link>
      <description>&lt;P&gt;Also ran btool. No errors.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 07:32:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392901#M70188</guid>
      <dc:creator>alanhowlett</dc:creator>
      <dc:date>2018-06-15T07:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to drop event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392902#M70189</link>
      <description>&lt;P&gt;You will want to escape the &lt;CODE&gt;.&lt;/CODE&gt; if you want to actually match the &lt;CODE&gt;.&lt;/CODE&gt; character: &lt;CODE&gt;REGEX = \d+\.\d+\.\d+\.\d+\sFAILED&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Although that doesn't really explain why it doesn't work. Because the &lt;CODE&gt;.&lt;/CODE&gt; without escaping matches any character.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 07:33:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392902#M70189</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-15T07:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to drop event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392903#M70190</link>
      <description>&lt;P&gt;btool doesn't show errors, it shows you the active configuration, to help detect possible conflicts / unexpected results.&lt;/P&gt;

&lt;P&gt;Also: please explain the architecture and on what kind of Splunk instance you put this config.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 07:36:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392903#M70190</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-15T07:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to drop event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392904#M70191</link>
      <description>&lt;P&gt;Shouldnt it be \d+/.\d+/.\d+/.\d+\sFAILED&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 08:02:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392904#M70191</guid>
      <dc:creator>alanhowlett</dc:creator>
      <dc:date>2018-06-15T08:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to drop event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392905#M70192</link>
      <description>&lt;P&gt;No, you don't use forward slashes for escaping, you use &lt;CODE&gt;\&lt;/CODE&gt;. And although it is probably a good idea to use &lt;CODE&gt;\.&lt;/CODE&gt;instead of &lt;CODE&gt;.&lt;/CODE&gt;, that should still work, since &lt;CODE&gt;.&lt;/CODE&gt; in a regex will also match the literal &lt;CODE&gt;.&lt;/CODE&gt; character.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 08:07:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392905#M70192</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-15T08:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to drop event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392906#M70193</link>
      <description>&lt;P&gt;Please share some SAMPLE DATA.  It's nearly impossible to debug regex strings without seeing what the regex is working with.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 12:57:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392906#M70193</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-06-15T12:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to drop event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392907#M70194</link>
      <description>&lt;P&gt;Still not working.&lt;/P&gt;

&lt;P&gt;This is what I have now and I've double checked the regex.&lt;/P&gt;

&lt;P&gt;root@e7c48e0e23c4:/opt/splunk/etc/apps/se2_tasks/local# cat props.conf&lt;BR /&gt;
[sslbcoat1]&lt;BR /&gt;
LINE_BREAKER = ^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 19&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%d %H:%M:%S&lt;BR /&gt;
TIME_PREFIX = ^&lt;BR /&gt;
TRUNCATE = 2000&lt;BR /&gt;
category = Custom&lt;BR /&gt;
description = lab1&lt;BR /&gt;
pulldown_type = true&lt;BR /&gt;
TRANSFORMS-null = setnosslbcoat1&lt;/P&gt;

&lt;P&gt;root@e7c48e0e23c4:/opt/splunk/etc/apps/se2_tasks/local# cat transforms.conf&lt;BR /&gt;
[setnosslbcoat1]&lt;BR /&gt;
REGEX = \d+.\d+.\d+.\d+\sFAILED&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:00:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392907#M70194</guid>
      <dc:creator>alanhowlett</dc:creator>
      <dc:date>2020-09-29T20:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to drop event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392908#M70195</link>
      <description>&lt;P&gt;You still haven't shown any sample data.&lt;/P&gt;

&lt;P&gt;The &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt; attribute requires a capture group.  Yours has none.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jun 2018 01:12:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-drop-event/m-p/392908#M70195</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-06-16T01:12:39Z</dc:date>
    </item>
  </channel>
</rss>

