<?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: Trouble ignoring events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244558#M99121</link>
    <description>&lt;P&gt;You might also try using sedcmd in props negating the need for transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-removeHashLines = s/^#.*//g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;SEDCMD only happens at index time, so you'd have to reindex the data to see the changes.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jul 2016 12:06:17 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2016-07-06T12:06:17Z</dc:date>
    <item>
      <title>Trouble ignoring events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244555#M99118</link>
      <description>&lt;P&gt;I'm having some difficulty forcing Splunk to ignore events which start with a '#' character. The file is compressed, but the events appear to be indexing OK. Here are my props and transforms - is there anything obviously wrong here?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/logs/proxy/SG_proxyna_SIEM__1920629171951.log.gz.processed]
NO_BINARY_CHECK = true
invalid_cause = archive
unarchive_cmd = gunzip -c -f -S .processed
TRANSFORMS-comments = setNull
TRUNCATE = 20000
TIME_PREFIX = ^
MAX_TIMESTAMP_LOOKAHEAD = 19
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;-&lt;BR /&gt;
    [setNull]&lt;BR /&gt;
    REGEX = ^#&lt;BR /&gt;
    DEST_KEY = queue&lt;BR /&gt;
    FORMAT = nullQueue&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 20:53:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244555#M99118</guid>
      <dc:creator>_smp_</dc:creator>
      <dc:date>2016-07-05T20:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ignoring events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244556#M99119</link>
      <description>&lt;P&gt;At a glance, I think everything looks ok.  Do you have the props and transforms on the parsing layer of your environment, typically an indexer?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 01:40:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244556#M99119</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2016-07-06T01:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ignoring events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244557#M99120</link>
      <description>&lt;P&gt;or a Heavy weight forwarder - don't forget to restart the Splunk instance after you added the config files.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 04:00:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244557#M99120</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-07-06T04:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ignoring events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244558#M99121</link>
      <description>&lt;P&gt;You might also try using sedcmd in props negating the need for transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-removeHashLines = s/^#.*//g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;SEDCMD only happens at index time, so you'd have to reindex the data to see the changes.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 12:06:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244558#M99121</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-07-06T12:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ignoring events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244559#M99122</link>
      <description>&lt;P&gt;I should have mentioned this in my original post - I have the props and transforms on a universal forwarder. I will try moving the conf files to the indexer and post the results.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 12:18:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244559#M99122</guid>
      <dc:creator>_smp_</dc:creator>
      <dc:date>2016-07-06T12:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ignoring events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244560#M99123</link>
      <description>&lt;P&gt;Just to be clear, I believe the no binary check, invalid clause and unarchive cmd settings will need to remain on your forwarder.  Those happen at input time.  The rest happens at parse time and should be on your indexers.&lt;/P&gt;

&lt;P&gt;Wasn't sure if you were literally going to move both files or just copy them, so wanted to mention that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 12:22:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244560#M99123</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2016-07-06T12:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ignoring events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244561#M99124</link>
      <description>&lt;P&gt;Actually I am a new Splunk admin and I struggle quite a bit understanding which parameters go where. I found that comment to really helpful - thanks. I'm working on the config files now...&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 12:26:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244561#M99124</guid>
      <dc:creator>_smp_</dc:creator>
      <dc:date>2016-07-06T12:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ignoring events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244562#M99125</link>
      <description>&lt;P&gt;in case you haven't come across it yet, this article may help unmuddy the waters a bit.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F"&gt;http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 12:42:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244562#M99125</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2016-07-06T12:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ignoring events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244563#M99126</link>
      <description>&lt;P&gt;maciep was right - I had the correct stanzas, but in the wrong place. Here is the corrected versions. Thank you very much!!!&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Universal Forwarder: props.conf&lt;/STRONG&gt;&lt;BR /&gt;
&lt;CODE&gt;[source::/logs/proxy/SG_proxyna_SIEM__1920629171951.log.gz.processed]&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;NO_BINARY_CHECK = true&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;invalid_cause = archive&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;unarchive_cmd = gunzip -c -f -S .processed&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Indexer: props.conf&lt;/STRONG&gt;&lt;BR /&gt;
&lt;CODE&gt;[source::/logs/proxy/SG_proxyna_SIEM__1920629171951.log.gz.processed]&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;TRANSFORMS-comments = setNull&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;TRUNCATE = 20000&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;TIME_PREFIX = ^&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD = 19&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Indexer: transforms.conf&lt;/STRONG&gt;&lt;BR /&gt;
&lt;CODE&gt;[setNull]&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;REGEX = ^#&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;DEST_KEY = queue&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;FORMAT = nullQueue&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 12:43:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244563#M99126</guid>
      <dc:creator>_smp_</dc:creator>
      <dc:date>2016-07-06T12:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ignoring events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244564#M99127</link>
      <description>&lt;P&gt;Again, great reference - thank you.&lt;/P&gt;

&lt;P&gt;You were right, I had the stanzas in the wrong place. I don't see a way to convert your comment to an answer, so I wasn't sure what to do. If you know how, and care about the credit, let me know and I'll be happy to do it.&lt;/P&gt;

&lt;P&gt;Thanks again for a really helpful answer.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 12:47:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244564#M99127</guid>
      <dc:creator>_smp_</dc:creator>
      <dc:date>2016-07-06T12:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ignoring events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244565#M99128</link>
      <description>&lt;P&gt;You should use &lt;CODE&gt;^\s*#&lt;/CODE&gt; instead.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 13:45:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244565#M99128</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-07-06T13:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ignoring events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244566#M99129</link>
      <description>&lt;P&gt;Click &lt;CODE&gt;Accept&lt;/CODE&gt; on this answer.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 13:46:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244566#M99129</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-07-06T13:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ignoring events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244567#M99130</link>
      <description>&lt;P&gt;The first character in the line I want to ignore is a #, so that regex would not match.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 14:18:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244567#M99130</guid>
      <dc:creator>_smp_</dc:creator>
      <dc:date>2016-07-06T14:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ignoring events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244568#M99131</link>
      <description>&lt;P&gt;This seems odd to me because maciep's answer was right, not mine.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 14:19:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244568#M99131</guid>
      <dc:creator>_smp_</dc:creator>
      <dc:date>2016-07-06T14:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ignoring events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244569#M99132</link>
      <description>&lt;P&gt;You are missing the point; there might be leading whitespace in front of the pound sign.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 15:43:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244569#M99132</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-07-06T15:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ignoring events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244570#M99133</link>
      <description>&lt;P&gt;no worries...karma is cool and all, but just glad it's working for you now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 16:16:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244570#M99133</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2016-07-06T16:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ignoring events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244571#M99134</link>
      <description>&lt;P&gt;That wasn't what you posted initially, which is why I asked the follow up. But I understand your revised regex, and you're right, that's a good idea. Thanks for bringing it up for consideration.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 16:42:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244571#M99134</guid>
      <dc:creator>_smp_</dc:creator>
      <dc:date>2016-07-06T16:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ignoring events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244572#M99135</link>
      <description>&lt;P&gt;You can transfer the points that you got for answering to him.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 19:17:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244572#M99135</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-07-06T19:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ignoring events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244573#M99136</link>
      <description>&lt;P&gt;All fixed now &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 13:48:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244573#M99136</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-07-07T13:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble ignoring events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244574#M99137</link>
      <description>&lt;P&gt;I have the exact opposite issue, my sql logs contain useful information after the # sign but they are omitted (as comments i suppose)&lt;/P&gt;

&lt;P&gt;How can i fix this?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 19:23:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-ignoring-events/m-p/244574#M99137</guid>
      <dc:creator>adepasquale</dc:creator>
      <dc:date>2019-08-30T19:23:30Z</dc:date>
    </item>
  </channel>
</rss>

