<?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: Index Service-Now MID server logs in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Index-Service-Now-MID-server-logs/m-p/394926#M6215</link>
    <description>&lt;P&gt;You may want to doublecheck your line breaking.  in the props.conf Docs page it says "  * When using LINE_BREAKER to delimit events, SHOULD_LINEMERGE should be set to false, to ensure no further combination of delimited events occurs."&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
 LINE_BREAKER=([\r\n]+)&lt;/P&gt;

&lt;P&gt;SHOULD_LINEMERGE says to try and merge lines together, but  LINE_BREAKER=([\r\n]+) says to event break on every line.&lt;/P&gt;

&lt;P&gt;The test is going to be to check out the SQL message (Lines 7-11 in your original post).  These should be interpreted as one event:&lt;BR /&gt;
 04/10/19 11:52:45 (275) Worker-Standard:JDBCProbe-69923714db3cf300e6067742399619af SELECT DISTINCT pco.PCO_Ref, pco.Act_Plan, pco.Description, pco.Impact, pco.Prioritet, pco.risk, pco.Txt_type, convert(varchar(MAX), pco.Txt) as Txt, pco.Urgency, status.CloseType, status.PCOClose, status.PCOPlan2, status.PCOrelease3, act.SenesteStart, act.SenesteEnd&lt;BR /&gt;
 FROM "PobPco"."dbo"."PCO" pco&lt;BR /&gt;
 join "PobPco"."dbo"."PCO_status" status on pco.PCO_Ref = status.PCO_Ref&lt;BR /&gt;
 FULL outer join "PobPco"."dbo"."Act" act on pco.PCO_Ref = act.PCO_Ref and (act.Sequence='430' OR act.Sequence='491')&lt;/P&gt;

&lt;P&gt;Here is what I see as correct line breaking with the original config I posted.  Where there something that was not working?  It appears to work in the GDE app, I can't figure out how to get a decent sized pic, but checkout &lt;A href="https://i.imgur.com/bCk91rM.png" target="_blank"&gt;https://i.imgur.com/bCk91rM.png&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:11:19 GMT</pubDate>
    <dc:creator>toph3r</dc:creator>
    <dc:date>2020-09-30T00:11:19Z</dc:date>
    <item>
      <title>Index Service-Now MID server logs</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Index-Service-Now-MID-server-logs/m-p/394921#M6210</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;

&lt;P&gt;I'm indexing the log from the Service-now MID-Server, that should be nice and easy, most lines start with a timestamp, and a few are multiline events.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;04/10/19 11:50:24 (365) LogStatusMonitor.60 stats threads: 67, memory max: 910.0mb, allocated: 402.0mb, used: 29.0mb, standard.queued: 0 probes, standard.processing: 0 probes, expedited.queued: 0 probes, expedited.processing: 0 probes, interactive.queued: 0 probes, interactive.processing: 0 probes
04/10/19 11:51:24 (373) LogStatusMonitor.60 stats threads: 67, memory max: 910.0mb, allocated: 402.0mb, used: 29.0mb, standard.queued: 0 probes, standard.processing: 0 probes, expedited.queued: 0 probes, expedited.processing: 0 probes, interactive.queued: 0 probes, interactive.processing: 0 probes
04/10/19 11:52:24 (406) LogStatusMonitor.60 stats threads: 67, memory max: 910.0mb, allocated: 402.0mb, used: 30.0mb, standard.queued: 0 probes, standard.processing: 0 probes, expedited.queued: 0 probes, expedited.processing: 0 probes, interactive.queued: 0 probes, interactive.processing: 0 probes
04/10/19 11:52:45 (197) Worker-Standard:JDBCProbe-69923714db3cf300e6067742399619af Worker starting: JDBCProbe source: 7f753a46db16a740c53f6c16ca9619a9
04/10/19 11:52:45 (275) Worker-Standard:JDBCProbe-69923714db3cf300e6067742399619af Waiting for connection semaphore
04/10/19 11:52:45 (275) Worker-Standard:JDBCProbe-69923714db3cf300e6067742399619af Obtained connection semaphore
04/10/19 11:52:45 (275) Worker-Standard:JDBCProbe-69923714db3cf300e6067742399619af SELECT DISTINCT pco.PCO_Ref, pco.Act_Plan, pco.Description, pco.Impact, pco.Prioritet, pco.risk, pco.Txt_type, convert(varchar(MAX), pco.Txt) as Txt, pco.Urgency, status.CloseType, status.PCOClose, status.PCOPlan2, status.PCOrelease3, act.SenesteStart, act.SenesteEnd
FROM "PobPco"."dbo"."PCO" pco
join "PobPco"."dbo"."PCO_status" status on pco.PCO_Ref = status.PCO_Ref
FULL outer join "PobPco"."dbo"."Act" act on pco.PCO_Ref = act.PCO_Ref and (act.Sequence='430' OR act.Sequence='491')
WHERE (pco.Act_Plan='LEV_UDK_LEVERANCESITE' OR pco.Act_Plan='APPL_TWS_INITIERET' OR pco.Act_Plan='TEK_GENEREL_WEB')
04/10/19 11:53:24 (392) LogStatusMonitor.60 stats threads: 67, memory max: 910.0mb, allocated: 402.0mb, used: 30.0mb, standard.queued: 0 probes, standard.processing: 1 probes, expedited.queued: 0 probes, expedited.processing: 0 probes, interactive.queued: 0 probes, interactive.processing: 0 probes
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On the universal forwarder, there's just an input.conf, that sets sourcetype and index.&lt;BR /&gt;
On the indexer I have a props.conf with this content:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[snow:mid]
SHOULD_LINEMERGE = true
NO_BINARY_CHECK = true
CHARSET = AUTO
disabled = false
TIME_FORMAT = %m/%d/%y %H:%M:%S
category = Custom
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My problem is that for some reason Splunk doesn't do event break correctly&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    10/04/2019
11:53:24.000    
04/10/19 11:53:38 (565) Worker-Standard:JDBCProbe-69923714db3cf300e6067742399619af Enqueuing: D:\ServiceNow\MID_Server\atp-34umid02_dev01\agent\work\monitors\ECCSender\output_s\ecc_queue.16a06aacf050000001.xml
04/10/19 11:53:38 (596) Worker-Standard:JDBCProbe-69923714db3cf300e6067742399619af Enqueuing: D:\ServiceNow\MID_Server\atp-34umid02_dev01\agent\work\monitors\ECCSender\output_s\ecc_queue.16a06aacf140000001.xml
04/10/19 11:53:38 (611) Worker-Standard:JDBCProbe-69923714db3cf300e6067742399619af Enqueuing: D:\ServiceNow\MID_Server\atp-34umid02_dev01\agent\work\monitors\ECCSender\output_s\ecc_queue.16a06aacf240000001.xml
04/10/19 11:53:38 (627) Worker-Standard:JDBCProbe-69923714db3cf300e6067742399619af Enqueuing: D:\ServiceNow\MID_Server\atp-34umid02_dev01\agent\work\monitors\ECCSender\output_s\ecc_queue.16a06aacf430000001.xml
04/10/19 11:53:38 (643) Worker-Standard:JDBCProbe-69923714db3cf300e6067742399619af Enqueuing: D:\ServiceNow\MID_Server\atp-34umid02_dev01\agent\work\monitors\ECCSender\output_s\ecc_queue.16a06aacf530000001.xml
04/10/19 11:53:38 (643) Worker-Standard:JDBCProbe-69923714db3cf300e6067742399619af Enqueuing: D:\ServiceNow\MID_Server\atp-34umid02_dev01\agent\work\monitors\ECCSender\output_s\ecc_queue.16a06aacf530000002.xml
04/10/19 11:53:38 (643) Worker-Standard:JDBCProbe-69923714db3cf300e6067742399619af Worker completed: JDBCProbe source: 7f753a46db16a740c53f6c16ca9619a9 time: 0:00:53.368
04/10/19 11:53:38 (880) ECCSender.1 Sending ecc_queue.16a06aacf050000001.xml
04/10/19 11:53:38 (989) ECCSender.1 Sending ecc_queue.16a06aacf140000001.xml
04/10/19 11:53:39 (098) ECCSender.1 Sending ecc_queue.16a06aacf240000001.xml
04/10/19 11:53:39 (192) ECCSender.1 Sending ecc_queue.16a06aacf430000001.xml
04/10/19 11:53:39 (270) ECCSender.1 Sending ecc_queue.16a06aacf530000001.xml
04/10/19 11:53:39 (364) ECCSender.1 Sending ecc_queue.16a06aacf530000002.xml
Collapse
host =  ATP-34UMID02 source =   D:\ServiceNow\MID_Server\atp-34umid02_dev01\agent\logs\agent0.log.0 sourcetype =    snow:mid
10/04/2019
11:53:24.000    
04/10/19 11:53:24 (392) LogStatusMonitor.60 stats threads: 67, memory max: 910.0mb, allocated: 402.0mb, used: 30.0mb, standard.queued: 0 probes, standard.processing: 1 probes, expedited.queued: 0 probes, expedited.processing: 0 probes, interactive.queued: 0 probes, interactive.processing: 0 probes
host =  ATP-34UMID02 source =   D:\ServiceNow\MID_Server\atp-34umid02_dev01\agent\logs\agent0.log.0 sourcetype =    snow:mid
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Apr 2019 11:07:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Index-Service-Now-MID-server-logs/m-p/394921#M6210</guid>
      <dc:creator>las</dc:creator>
      <dc:date>2019-04-10T11:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Index Service-Now MID server logs</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Index-Service-Now-MID-server-logs/m-p/394922#M6211</link>
      <description>&lt;P&gt;I am about to onboard SNow Mid logs in my env, so I will try to remember to update after I complete that.&lt;/P&gt;

&lt;P&gt;But based on your logs it looks like Splunk is trying to auto-break on a second date that is recognizes.  Notice the difference between the event start datestamp and the datestamp on your line 18:&lt;BR /&gt;
04/10/19 vs 10/04/2019 . Note the 2 digit vs 4 digit year, probably means that something else is generating that datestamp, possibly in the middle of an event.  Though it is difficult to tell exactly what your second text box is the output from.&lt;/P&gt;

&lt;P&gt;I would define my LINE_BREAKER based on the datestamp that leads your event.  I may end up changing it, but based on your first log block I would start with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[snow:mid]
NO_BINARY_CHECK = true
CHARSET = AUTO
TIME_FORMAT = %m/%d/%y %H:%M:%S
SHOULD_LINEMERGE = FALSE
LINE_BREAKER=([\r\n]+)\d{2}\/\d{2}\/\d{2}\s\d{2}:\d{2}:\d{2}
TIME_PREFIX=^
MAX_TIMESTAMP_LOOKAHEAD=30
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Apr 2019 23:08:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Index-Service-Now-MID-server-logs/m-p/394922#M6211</guid>
      <dc:creator>toph3r</dc:creator>
      <dc:date>2019-04-11T23:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Index Service-Now MID server logs</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Index-Service-Now-MID-server-logs/m-p/394923#M6212</link>
      <description>&lt;P&gt;Sorry, I should have been more clear on the second text box.&lt;BR /&gt;
That is a screen copy of Splunk.&lt;BR /&gt;
So lines 1 and 2 are Splunk Timestamp as extracted from the log&lt;BR /&gt;
Lines 3 thru 15 included are the Splunk event&lt;BR /&gt;
Line 16 (Collapse) event&lt;BR /&gt;
Line 17 Splunk info on the event (host, source and sourcetype)&lt;BR /&gt;
Lines 18 and 19  are Splunk Timestamp as extracted from the log&lt;BR /&gt;
Line 20 is the event&lt;BR /&gt;
Line 21 Splunk info on the event (host, source and sourcetype)&lt;/P&gt;

&lt;P&gt;I will try your config and get back with the result.&lt;/P&gt;

&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 06:29:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Index-Service-Now-MID-server-logs/m-p/394923#M6212</guid>
      <dc:creator>las</dc:creator>
      <dc:date>2019-04-12T06:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Index Service-Now MID server logs</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Index-Service-Now-MID-server-logs/m-p/394924#M6213</link>
      <description>&lt;P&gt;This props.conf seems to work&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[snow:mid]
NO_BINARY_CHECK = true
CHARSET = AUTO
TIME_FORMAT = %m/%d/%y %H:%M:%S
TIME_PREFIX=^
MAX_TIMESTAMP_LOOKAHEAD=30
category=Custom
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 06:51:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Index-Service-Now-MID-server-logs/m-p/394924#M6213</guid>
      <dc:creator>las</dc:creator>
      <dc:date>2019-04-12T06:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Index Service-Now MID server logs</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Index-Service-Now-MID-server-logs/m-p/394925#M6214</link>
      <description>&lt;P&gt;I had a few issues, but now it seems to work&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[snow:mid]
NO_BINARY_CHECK = true
CHARSET = AUTO
TIME_FORMAT = %m/%d/%y %H:%M:%S
TIME_PREFIX=^
TZ = Europe/Copenhagen
MAX_TIMESTAMP_LOOKAHEAD=30
SHOULD_LINEMERGE=true
LINE_BREAKER=([\r\n]+)
category=Custom
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 10:38:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Index-Service-Now-MID-server-logs/m-p/394925#M6214</guid>
      <dc:creator>las</dc:creator>
      <dc:date>2019-04-17T10:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Index Service-Now MID server logs</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Index-Service-Now-MID-server-logs/m-p/394926#M6215</link>
      <description>&lt;P&gt;You may want to doublecheck your line breaking.  in the props.conf Docs page it says "  * When using LINE_BREAKER to delimit events, SHOULD_LINEMERGE should be set to false, to ensure no further combination of delimited events occurs."&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
 LINE_BREAKER=([\r\n]+)&lt;/P&gt;

&lt;P&gt;SHOULD_LINEMERGE says to try and merge lines together, but  LINE_BREAKER=([\r\n]+) says to event break on every line.&lt;/P&gt;

&lt;P&gt;The test is going to be to check out the SQL message (Lines 7-11 in your original post).  These should be interpreted as one event:&lt;BR /&gt;
 04/10/19 11:52:45 (275) Worker-Standard:JDBCProbe-69923714db3cf300e6067742399619af SELECT DISTINCT pco.PCO_Ref, pco.Act_Plan, pco.Description, pco.Impact, pco.Prioritet, pco.risk, pco.Txt_type, convert(varchar(MAX), pco.Txt) as Txt, pco.Urgency, status.CloseType, status.PCOClose, status.PCOPlan2, status.PCOrelease3, act.SenesteStart, act.SenesteEnd&lt;BR /&gt;
 FROM "PobPco"."dbo"."PCO" pco&lt;BR /&gt;
 join "PobPco"."dbo"."PCO_status" status on pco.PCO_Ref = status.PCO_Ref&lt;BR /&gt;
 FULL outer join "PobPco"."dbo"."Act" act on pco.PCO_Ref = act.PCO_Ref and (act.Sequence='430' OR act.Sequence='491')&lt;/P&gt;

&lt;P&gt;Here is what I see as correct line breaking with the original config I posted.  Where there something that was not working?  It appears to work in the GDE app, I can't figure out how to get a decent sized pic, but checkout &lt;A href="https://i.imgur.com/bCk91rM.png" target="_blank"&gt;https://i.imgur.com/bCk91rM.png&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:11:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Index-Service-Now-MID-server-logs/m-p/394926#M6215</guid>
      <dc:creator>toph3r</dc:creator>
      <dc:date>2020-09-30T00:11:19Z</dc:date>
    </item>
  </channel>
</rss>

