<?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: Filtering data using SHOULD_LINEMERGE in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-data-using-SHOULD-LINEMERGE/m-p/335068#M61990</link>
    <description>&lt;P&gt;I still didn´t find any solution for this case. Still need to trash certain lines and then create multiline events out of what is left...&lt;BR /&gt;
Any proposal??&lt;/P&gt;</description>
    <pubDate>Tue, 19 Dec 2017 21:02:07 GMT</pubDate>
    <dc:creator>danillopavan</dc:creator>
    <dc:date>2017-12-19T21:02:07Z</dc:date>
    <item>
      <title>Filtering data using SHOULD_LINEMERGE</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-data-using-SHOULD-LINEMERGE/m-p/335062#M61984</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I have configured the line breaking parameter as (SHOULD_LINEMERGE = true) to read a log file that contains the below data for each update. It will allow to have all data in the same event to run my searches:&lt;/P&gt;

&lt;P&gt;S  Doing: print 1597931/1 &lt;BR /&gt;
S  --&amp;gt; Print Job @&amp;gt;SPOREQ:1597931@
S  print job @&amp;gt;SPOREQ:1597931@
S  replace user SAPSYS       by NFEX        &lt;BR /&gt;
S  print job @&amp;gt;SPOREQ:1597931@
S  --------&amp;gt; db_rtab Error 128, table TSPEVJOB, action rspogdio_insert (expected)&lt;BR /&gt;
S  SpTSP01Select() - 1597931 is OTF/SMART/RDI/ADSx job, do not read TSP02L!&lt;BR /&gt;
S  Sß: (2017120211393600) sending job @&amp;gt;SPOREQ:1597931@DEV:JCD1@&amp;lt;'&lt;BR /&gt;
S 1 processed&lt;/P&gt;

&lt;P&gt;And I would like to filter the input data to index only the below lines of the log file disregarding the others lines:&lt;BR /&gt;
S  Doing: print 1597931/1 &lt;BR /&gt;
S  replace user SAPSYS       by NFEX&lt;BR /&gt;&lt;BR /&gt;
S  Sß: (2017120211393600) sending job @&amp;gt;SPOREQ:1597931@DEV:JCD1@&amp;lt;'&lt;BR /&gt;
S 1 processed&lt;/P&gt;

&lt;P&gt;I was thinking to configure my REGEX just using the phases "Doing: print" , "replace user", "sending job", however it will not work for the line merge configuration as dont have the end of the line. So my question is: how I should configure the regex in transform file to allow just index 3 lines using SHOULD_LINEMERGE ?&lt;/P&gt;

&lt;P&gt;I am using this below configuration on the props and transform files and it is not working:&lt;/P&gt;

&lt;P&gt;[sourcetype]&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
BREAK_ONLY_BEFORE=processed&lt;BR /&gt;
TRANSFORMS-set= setIndexnull,setIndexparsing&lt;/P&gt;

&lt;P&gt;[setIndexnull]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[setIndexparsing]&lt;BR /&gt;
REGEX = print&lt;BR /&gt;
DEST_KEY = queue &lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;Thanks and regards,&lt;BR /&gt;
Danillo Pavan&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:12:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-data-using-SHOULD-LINEMERGE/m-p/335062#M61984</guid>
      <dc:creator>danillopavan</dc:creator>
      <dc:date>2020-09-29T17:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data using SHOULD_LINEMERGE</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-data-using-SHOULD-LINEMERGE/m-p/335063#M61985</link>
      <description>&lt;P&gt;I am using this below configuration on the transform files and it is not working:&lt;/P&gt;

&lt;P&gt;[setIndexnull]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[setIndexparsing]&lt;BR /&gt;
REGEX = print&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2017 18:36:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-data-using-SHOULD-LINEMERGE/m-p/335063#M61985</guid>
      <dc:creator>danillopavan</dc:creator>
      <dc:date>2017-12-09T18:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data using SHOULD_LINEMERGE</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-data-using-SHOULD-LINEMERGE/m-p/335064#M61986</link>
      <description>&lt;P&gt;Write your props and transforms.conf like the below and try this.&lt;/P&gt;

&lt;P&gt;props.conf &lt;/P&gt;

&lt;P&gt;[sourcetype]&lt;BR /&gt;
TRANSFORMS-set = setnull, print1,print2,print3&lt;/P&gt;

&lt;P&gt;Transforms.conf&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;[print1]&lt;BR /&gt;
REGEX = S\sDoing:&lt;BR /&gt;
DEST_KEY = queue &lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;[print2]&lt;BR /&gt;
REGEX = S\sreplace&lt;BR /&gt;
DEST_KEY = queue &lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;[print3]&lt;BR /&gt;
REGEX = S \sSß:&lt;BR /&gt;
DEST_KEY = queue &lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 13:45:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-data-using-SHOULD-LINEMERGE/m-p/335064#M61986</guid>
      <dc:creator>sandyIscream</dc:creator>
      <dc:date>2017-12-12T13:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data using SHOULD_LINEMERGE</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-data-using-SHOULD-LINEMERGE/m-p/335065#M61987</link>
      <description>&lt;P&gt;Hello Sandy,&lt;/P&gt;

&lt;P&gt;Now no lines are being indexed. The regex commands that you suggested seems to be wrong. Anyway, the instructions that you suggested, in my opinion, would not work. I need to conciliate MERGED LINES with FILTERING.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 14:20:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-data-using-SHOULD-LINEMERGE/m-p/335065#M61987</guid>
      <dc:creator>danillopavan</dc:creator>
      <dc:date>2017-12-12T14:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data using SHOULD_LINEMERGE</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-data-using-SHOULD-LINEMERGE/m-p/335066#M61988</link>
      <description>&lt;P&gt;Any answer?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Dec 2017 15:04:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-data-using-SHOULD-LINEMERGE/m-p/335066#M61988</guid>
      <dc:creator>danillopavan</dc:creator>
      <dc:date>2017-12-16T15:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data using SHOULD_LINEMERGE</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-data-using-SHOULD-LINEMERGE/m-p/335067#M61989</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:47:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-data-using-SHOULD-LINEMERGE/m-p/335067#M61989</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-16T18:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data using SHOULD_LINEMERGE</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-data-using-SHOULD-LINEMERGE/m-p/335068#M61990</link>
      <description>&lt;P&gt;I still didn´t find any solution for this case. Still need to trash certain lines and then create multiline events out of what is left...&lt;BR /&gt;
Any proposal??&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 21:02:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-data-using-SHOULD-LINEMERGE/m-p/335068#M61990</guid>
      <dc:creator>danillopavan</dc:creator>
      <dc:date>2017-12-19T21:02:07Z</dc:date>
    </item>
  </channel>
</rss>

