<?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: I want to move my unwanted logs into nullQueue.But no luck in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/522170#M88177</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/70277"&gt;@uagraw01&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Ok good for you.&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 06:40:23 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-09-30T06:40:23Z</dc:date>
    <item>
      <title>How to move unwanted logs into nullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471264#M86041</link>
      <description>&lt;P&gt;2020-05-12 14:34:52,060&lt;BR /&gt;
2020-05-12 14:34:52,060&lt;BR /&gt;
2020-05-12 14:34:52,060&lt;/P&gt;

&lt;P&gt;I want to remove ####&amp;lt; from my events, so i used props.conf along with transforms.conf with this below setting. But still ####&amp;lt; is not removed from the events.&lt;/P&gt;

&lt;P&gt;My props.conf&lt;/P&gt;

&lt;P&gt;[hast_sourcetype]&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE = &lt;BR /&gt;
CHARSET = UTF-8&lt;BR /&gt;
DATETIME_CONFIG = &lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 29&lt;BR /&gt;
NO_BINARY_CHECK = true&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TRANSFORMS-remove-hash = include-date-item&lt;BR /&gt;
category = Custom&lt;BR /&gt;
description = hash_sourcetype&lt;BR /&gt;
pulldown_type = true&lt;/P&gt;

&lt;P&gt;My transforms.conf&lt;BR /&gt;
[eliminate-hash-item]&lt;BR /&gt;
DELIMS = ####&amp;lt;&lt;BR /&gt;
DEST_KEY=queue &lt;BR /&gt;
FORMAT=nullQueue&lt;/P&gt;

&lt;P&gt;Please help me to solve this issue.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:37:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471264#M86041</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2020-09-30T05:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: I want to move my unwanted logs into nullQueue.But no luck</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471265#M86042</link>
      <description>&lt;P&gt;In place of DELIMS = ####&amp;lt; i used REGEX= ####&amp;lt; also but event showing the same.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 15:56:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471265#M86042</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2020-06-03T15:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: I want to move my unwanted logs into nullQueue.But no luck</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471266#M86043</link>
      <description>&lt;P&gt;Hi @uagraw01,&lt;BR /&gt;
there are two problems in your transforms.conf:&lt;BR /&gt;
the first parameter is wrong, you have to use &lt;CODE&gt;REGEX = ####&amp;lt;&lt;/CODE&gt;, not &lt;CODE&gt;DELIMS&lt;/CODE&gt;, as you can see at &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.0.2004/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.0.2004/Forwarding/Routeandfilterdatad#Filter_event_data_and_send_to_queues&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Then &lt;CODE&gt;#&lt;/CODE&gt; and &lt;CODE&gt;&amp;lt;&lt;/CODE&gt; are special chars for regexes, so you have to escape them, try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = \#\#\#\#\&amp;lt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 16:01:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471266#M86043</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-06-03T16:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: I want to move my unwanted logs into nullQueue.But no luck</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471267#M86044</link>
      <description>&lt;P&gt;Thanks for answering .Please let me know if i use REGEX = (.*#&amp;lt;) would it work? Because it is correctly matched on regex101 engine. But when i used this on transforms.conf it is not remove any ####&amp;lt; char from events while indexing. Please suggest&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 17:56:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471267#M86044</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2020-06-03T17:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: I want to move my unwanted logs into nullQueue.But no luck</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471268#M86045</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt; As i tried the setting as you suggest but still ####&amp;lt; is not remoed from the logs.&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[hast_sourcetype]&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE = &lt;BR /&gt;
CHARSET = UTF-8&lt;BR /&gt;
DATETIME_CONFIG = &lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 29&lt;BR /&gt;
NO_BINARY_CHECK = true&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TRANSFORMS-remove-hash = include-date-item&lt;BR /&gt;
category = Custom&lt;BR /&gt;
description = hash_sourcetype&lt;BR /&gt;
pulldown_type = true&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[eliminate-hash-item]&lt;BR /&gt;
REGEX = ####&amp;lt;&lt;BR /&gt;
DEST_KEY=queue &lt;BR /&gt;
FORMAT=nullQueue&lt;/P&gt;

&lt;P&gt;I am unable to paste screenshot.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:36:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471268#M86045</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2020-09-30T05:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: I want to move my unwanted logs into nullQueue.But no luck</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471269#M86046</link>
      <description>&lt;P&gt;Hi @uagraw01,&lt;BR /&gt;
about the regex, you can test your regex using the regex command on your logs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your-search
| regex "\#\#\#\#\&amp;lt;"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and see if Splunk correctly find the logs to remove, so you can adjust your regex inside Splunk and find the correct one (sometimes there are differences between Splunk and regex101)&lt;/P&gt;

&lt;P&gt;Then I see a difference in you conf files:&lt;BR /&gt;
the name in &lt;CODE&gt;TRANSFORMS-remove-hash&lt;/CODE&gt; in props.conf, must be the same in transforms.conf stanza:&lt;BR /&gt;
&lt;STRONG&gt;props.conf&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRANSFORMS-remove-hash = eliminate-hash-item
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[eliminate-hash-item]
REGEX = \#\#\#\#\&amp;lt;
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 06:34:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471269#M86046</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-06-04T06:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: I want to move my unwanted logs into nullQueue.But no luck</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471270#M86047</link>
      <description>&lt;P&gt;@gcusello Thanks but i tried everything logs ###&amp;lt; is not removed from the events, by correcting everything from my side .&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 12:35:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471270#M86047</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2020-06-04T12:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: I want to move my unwanted logs into nullQueue.But no luck</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471271#M86048</link>
      <description>&lt;P&gt;Hi @uagraw01,&lt;BR /&gt;
did you tested your regex in Splunk using the regex command?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search
| regex "\#\#\#\#\&amp;lt;"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;what's the result?&lt;/P&gt;

&lt;P&gt;ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 12:50:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471271#M86048</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-06-04T12:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: I want to move my unwanted logs into nullQueue.But no luck</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471272#M86049</link>
      <description>&lt;P&gt;@gcusello &lt;BR /&gt;
When i perform a search index=main | regex "####&amp;lt;" &lt;BR /&gt;
The result is same 12/05/202014:00:09.000 ####&lt;BR /&gt;&lt;BR /&gt;
It is capturing full events which have timestamps with #.&lt;/P&gt;

&lt;P&gt;I want only this May 12, 2020 2:00:09 PM CD&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 13:06:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471272#M86049</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2020-06-04T13:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: I want to move my unwanted logs into nullQueue.But no luck</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471273#M86050</link>
      <description>&lt;P&gt;Hi @uagraw01,&lt;BR /&gt;
let me understand:&lt;BR /&gt;
using the regex command do you find the events to filter or not?&lt;BR /&gt;
if yes the regex is correct if not, you have to modify the regex.&lt;/P&gt;

&lt;P&gt;Could you share two or three events to discard and two or three events to take? so I can help you with the regex.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 14:10:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471273#M86050</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-06-04T14:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: I want to move my unwanted logs into nullQueue.But no luck</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471274#M86051</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;  Please see my full log path: &lt;/P&gt;

&lt;P&gt;[ ####  &lt;/P&gt;

&lt;P&gt;2020-05-12 14:34:52,060&lt;BR /&gt;
2020-05-12 14:34:52,060&lt;BR /&gt;
2020-05-12 14:34:52,060]&lt;/P&gt;

&lt;P&gt;in which i want [May 12, 2020 2:00:09 PM CDT&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
May 12, 2020 2:00:09 PM CDT&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
May 12, 2020 2:00:09 PM CDT&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
May 12, 2020 2:00:09 PM CDT&amp;gt;&lt;BR /&gt;&lt;BR /&gt;
2020-05-12 14:34:52,060&lt;BR /&gt;
2020-05-12 14:34:52,060&lt;BR /&gt;
2020-05-12 14:34:52,060]&lt;/P&gt;

&lt;P&gt;and ignore [####&amp;lt; &lt;/P&gt;

&lt;H4&gt;&amp;lt;&lt;/H4&gt;

&lt;H4&gt;&amp;lt;&lt;/H4&gt;

&lt;H4&gt;&amp;lt;]&lt;/H4&gt;

&lt;P&gt;in these call we can use nullQueue or indexQueue in transforms.conf but nothing works.&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[hast_sourcetype]&lt;BR /&gt;
CHARSET = UTF-8&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 29&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TRANSFORMS-remove-hash = eliminate-hash-item,include-date-item&lt;BR /&gt;
description = hash_sourcetype&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[eliminate-hash-item]&lt;BR /&gt;
REGEX = ####&amp;lt;&lt;BR /&gt;
DEST_KEY=queue &lt;BR /&gt;
FORMAT=nullQueue&lt;/P&gt;

&lt;P&gt;[include-date-item]&lt;BR /&gt;
REGEX = [A-Za-z]{3}\s[0-9]{2},\s\d+\s\d:\d+:\d+\s\w{2}.*&lt;BR /&gt;
DEST_KEY=queue&lt;BR /&gt;
FORMAT=indexQueue&lt;/P&gt;

&lt;P&gt;Please provide your inputs.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:37:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/471274#M86051</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2020-09-30T05:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: I want to move my unwanted logs into nullQueue.But no luck</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/504646#M86052</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/70277"&gt;@uagraw01&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you accepted this answer during the closing period so the acceptance was lost.&lt;/P&gt;&lt;P&gt;Could you accept again this answer?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 15:58:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/504646#M86052</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-06-16T15:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: I want to move my unwanted logs into nullQueue.But no luck</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/504674#M86053</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;But not getting the resolution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 19:04:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/504674#M86053</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2020-06-16T19:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: I want to move my unwanted logs into nullQueue.But no luck</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/504769#M86054</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/70277"&gt;@uagraw01&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I thought that you solved!&lt;/P&gt;&lt;P&gt;Anyway, I see that you have logs like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ ####
2020-05-12 14:34:52,060
2020-05-12 14:34:52,060
2020-05-12 14:34:52,060]&lt;/LI-CODE&gt;&lt;P&gt;you want to discard the fist row and take the other three, is it correct?&lt;/P&gt;&lt;P&gt;If this is your need, try this props.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[hastsourcetype]
CHARSET = UTF-8
LINEBREAKER = ([\r\n]+)
MAXTIMESTAMPLOOKAHEAD = 29
SHOULDLINEMERGE = false
TRANSFORMS-remove-hash = eliminate-hash-item
description = hashsourcetype&lt;/LI-CODE&gt;&lt;P&gt;and this transforms.conf:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[eliminate-hash-item]
REGEX=\[\s+\#\#\#\#
DEST_KEY=queue
FORMAT=nullQueue&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 10:54:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/504769#M86054</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-06-17T10:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: I want to move my unwanted logs into nullQueue.But no luck</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/522170#M88177</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/70277"&gt;@uagraw01&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Ok good for you.&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 06:40:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-move-unwanted-logs-into-nullQueue/m-p/522170#M88177</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-30T06:40:23Z</dc:date>
    </item>
  </channel>
</rss>

