<?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 Combinate SHOULD_LINEMERGE with Filtering in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Combinate-SHOULD-LINEMERGE-with-Filtering/m-p/335258#M93646</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I am trying to have a combination of SHOULD_LINEMERGE=true with filtering just to index some lines of the log file and diregards the others lines.&lt;/P&gt;

&lt;P&gt;Trying to use the below but not working&lt;/P&gt;

&lt;P&gt;[sourcetype] &lt;BR /&gt;
TRANSFORMS-set= setnull,setparsing&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;/P&gt;

&lt;P&gt;[setnull]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[setparsing]&lt;BR /&gt;
REGEX = lvsapsd&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;Part of the text of the log file:&lt;BR /&gt;
S  Doing: print 1591111lllllll&lt;BR /&gt;
S  lvsapsd -&amp;gt; Print Job @&amp;gt;SPOREQ:1597246@
S  print job @&amp;gt;SPOREQ:1597246@&amp;lt;/1 has no list attributes&lt;BR /&gt;
S  replace user SAPSYS       by 99718165    &lt;/P&gt;

&lt;P&gt;It is creating one event but not filtering just the second line. It is bringing all the lines.&lt;/P&gt;

&lt;P&gt;How I can combinate the usage of SHOULD_LINEMERGE with Filtering?&lt;/P&gt;

&lt;P&gt;Thanks and regards,&lt;BR /&gt;
Danillo Pavan&lt;/P&gt;</description>
    <pubDate>Sat, 09 Dec 2017 20:22:32 GMT</pubDate>
    <dc:creator>danillopavan</dc:creator>
    <dc:date>2017-12-09T20:22:32Z</dc:date>
    <item>
      <title>Combinate SHOULD_LINEMERGE with Filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Combinate-SHOULD-LINEMERGE-with-Filtering/m-p/335258#M93646</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I am trying to have a combination of SHOULD_LINEMERGE=true with filtering just to index some lines of the log file and diregards the others lines.&lt;/P&gt;

&lt;P&gt;Trying to use the below but not working&lt;/P&gt;

&lt;P&gt;[sourcetype] &lt;BR /&gt;
TRANSFORMS-set= setnull,setparsing&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;/P&gt;

&lt;P&gt;[setnull]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[setparsing]&lt;BR /&gt;
REGEX = lvsapsd&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;Part of the text of the log file:&lt;BR /&gt;
S  Doing: print 1591111lllllll&lt;BR /&gt;
S  lvsapsd -&amp;gt; Print Job @&amp;gt;SPOREQ:1597246@
S  print job @&amp;gt;SPOREQ:1597246@&amp;lt;/1 has no list attributes&lt;BR /&gt;
S  replace user SAPSYS       by 99718165    &lt;/P&gt;

&lt;P&gt;It is creating one event but not filtering just the second line. It is bringing all the lines.&lt;/P&gt;

&lt;P&gt;How I can combinate the usage of SHOULD_LINEMERGE with Filtering?&lt;/P&gt;

&lt;P&gt;Thanks and regards,&lt;BR /&gt;
Danillo Pavan&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2017 20:22:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Combinate-SHOULD-LINEMERGE-with-Filtering/m-p/335258#M93646</guid>
      <dc:creator>danillopavan</dc:creator>
      <dc:date>2017-12-09T20:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Combinate SHOULD_LINEMERGE with Filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Combinate-SHOULD-LINEMERGE-with-Filtering/m-p/335259#M93647</link>
      <description>&lt;P&gt;Hi @danillopavan, &lt;/P&gt;

&lt;P&gt;Do you have any timestamps in your logs ? If not then Splunk considers both the line as one event. &lt;/P&gt;

&lt;P&gt;Try to break the lines in the props itself. &lt;/P&gt;

&lt;P&gt;[sourcetype] &lt;BR /&gt;
TRANSFORMS-set= setnull,setparsing&lt;BR /&gt;
SHOULD_LINEMERGE= false &lt;/P&gt;

&lt;P&gt;This will separate each line then write your transforms.conf as it is. &lt;/P&gt;

&lt;P&gt;[setnull]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[setparsing]&lt;BR /&gt;
REGEX = lvsapsd&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 13:15:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Combinate-SHOULD-LINEMERGE-with-Filtering/m-p/335259#M93647</guid>
      <dc:creator>sandyIscream</dc:creator>
      <dc:date>2017-12-12T13:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Combinate SHOULD_LINEMERGE with Filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Combinate-SHOULD-LINEMERGE-with-Filtering/m-p/335260#M93648</link>
      <description>&lt;P&gt;Hi Sandy, thanks for your reply.&lt;/P&gt;

&lt;P&gt;I have a timestamps in the logs, however it is registering the time minute by minute and not event by event, so I am not using timestamps as delimiter. My idea is to consider multiple lines as one event, because of that i am using the command SHOULD_LINEMERGE = true, but my expectation is to have just some lines filtered in the unique event and not all lines. So i would like to know if it is possible to filter merged lines. I tried everything on my side and it is not working. Or all lines are indexed in only one event, or the lines are filtered however having one event for each filtered line.&lt;/P&gt;

&lt;P&gt;Still need help here.&lt;/P&gt;

&lt;P&gt;Thanks and regards,&lt;BR /&gt;
Danillo Pavan&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 13:24:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Combinate-SHOULD-LINEMERGE-with-Filtering/m-p/335260#M93648</guid>
      <dc:creator>danillopavan</dc:creator>
      <dc:date>2017-12-12T13:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Combinate SHOULD_LINEMERGE with Filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Combinate-SHOULD-LINEMERGE-with-Filtering/m-p/335261#M93649</link>
      <description>&lt;P&gt;Any answer?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Dec 2017 15:05:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Combinate-SHOULD-LINEMERGE-with-Filtering/m-p/335261#M93649</guid>
      <dc:creator>danillopavan</dc:creator>
      <dc:date>2017-12-16T15:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Combinate SHOULD_LINEMERGE with Filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Combinate-SHOULD-LINEMERGE-with-Filtering/m-p/335262#M93650</link>
      <description>&lt;P&gt;@danillopavan this seems similar to other question your have posted: &lt;A href="https://answers.splunk.com/answers/597389/filtering-data-using-should-linemerge.html"&gt;https://answers.splunk.com/answers/597389/filtering-data-using-should-linemerge.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I would request you to consolidate required details against single question and keep only one of them open.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Dec 2017 18:48:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Combinate-SHOULD-LINEMERGE-with-Filtering/m-p/335262#M93650</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-16T18:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Combinate SHOULD_LINEMERGE with Filtering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Combinate-SHOULD-LINEMERGE-with-Filtering/m-p/335263#M93651</link>
      <description>&lt;P&gt;Closing this topic, keeping just the other one that I have created as it is similar:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/597389/filtering-data-using-should-linemerge.html"&gt;https://answers.splunk.com/answers/597389/filtering-data-using-should-linemerge.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 20:59:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Combinate-SHOULD-LINEMERGE-with-Filtering/m-p/335263#M93651</guid>
      <dc:creator>danillopavan</dc:creator>
      <dc:date>2017-12-19T20:59:53Z</dc:date>
    </item>
  </channel>
</rss>

