<?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: How to filter few lines from an event in splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-few-lines-from-an-event-in-splunk/m-p/461020#M79571</link>
    <description>&lt;P&gt;My transforms.conf is:&lt;/P&gt;

&lt;P&gt;[Dequeue]&lt;BR /&gt;
REGEX = (?m)^(.*Dequeue.*)&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2019 13:52:30 GMT</pubDate>
    <dc:creator>poddraj</dc:creator>
    <dc:date>2019-12-12T13:52:30Z</dc:date>
    <item>
      <title>How to filter few lines from an event in splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-few-lines-from-an-event-in-splunk/m-p/461019#M79570</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;
I am new to splunk and am facing issue while trying to filter lines which has "Dequeue" in the event. I want the lines with Dequeue to be removed from the event before indexing. Below is my transforms.conf which is moving the entire event into nullQueue instead to remove only that line which has Dequeue in it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Dequeue]
REGEX = (?m)^(.*Dequeue.*)
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample Event:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|HEM
FTTP
TEST
DTI_EXPRESS
10-118-224-197.ebiz.verizon.com
VOICE
2019-11-27T10:32:00Z
Y
Y
Y
1
5.0
YES
76000001
/CTLHDR
/REQUEST
VOICE
YES
GETCSD
CHELLPA
M
M

 8454255242

YYYYNYYYNNYYYYYNNNYNNNNYNNNYNNYYYYYYYNYYYYYYYYYYYYYYNNNNYNYYYYYYYYYYYYYYYYYYYYYY
Y
/REQUEST
/DELPHI_REQUEST
    11/28 14:36:16.75 ft_acce(19692)874  QueueCommand: DTE_KEY: SID:A391000000-, WPID:76000001, COMMAND:GET-CSD2, FT:INVALID_FT, REQID:391000000, PRIORITY:Default, TIMEOUT:1 sec
    11/28 14:36:16.75 priorit(19692)497  Dequeue: Entry
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Dec 2019 13:51:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-few-lines-from-an-event-in-splunk/m-p/461019#M79570</guid>
      <dc:creator>poddraj</dc:creator>
      <dc:date>2019-12-12T13:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter few lines from an event in splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-few-lines-from-an-event-in-splunk/m-p/461020#M79571</link>
      <description>&lt;P&gt;My transforms.conf is:&lt;/P&gt;

&lt;P&gt;[Dequeue]&lt;BR /&gt;
REGEX = (?m)^(.*Dequeue.*)&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 13:52:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-few-lines-from-an-event-in-splunk/m-p/461020#M79571</guid>
      <dc:creator>poddraj</dc:creator>
      <dc:date>2019-12-12T13:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter few lines from an event in splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-few-lines-from-an-event-in-splunk/m-p/461021#M79572</link>
      <description>&lt;P&gt;You are using the wrong approach.  Use this instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-dequeue = s/(?m)^(.*Dequeue.*)//g
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Dec 2019 11:50:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-filter-few-lines-from-an-event-in-splunk/m-p/461021#M79572</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-13T11:50:52Z</dc:date>
    </item>
  </channel>
</rss>

