<?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 handle staggered logs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488233#M193933</link>
    <description>&lt;P&gt;as @to4kawa mentioned, too many backslashes - I've corrected, the simplified LINE_BREAKER with C: will work, I've just tested successfully with your data&lt;/P&gt;</description>
    <pubDate>Tue, 28 Apr 2020 09:51:17 GMT</pubDate>
    <dc:creator>PavelP</dc:creator>
    <dc:date>2020-04-28T09:51:17Z</dc:date>
    <item>
      <title>How to handle staggered logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488220#M193920</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8806iE76D0AD5085BD7D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;Hi , &lt;BR /&gt;
Basically their server send logs one line at a time. When it came to Splunk it ingest automatically and not following the line breaker configuration. Out target is to line break the logs before &lt;STRONG&gt;"C:\Users\localserver&amp;gt;systeminfo"&lt;/STRONG&gt;.&lt;BR /&gt;
Can Splunk wait for the line breaker to be visible before it linebreak ? Or what is the best way to handle this issue.&lt;/P&gt;

&lt;P&gt;Example log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;C:\Users\localserver&amp;gt;systeminfo
    Host Name:                 localserver
    OS Name:                   Microsoft Windows 10 Enterprise
    OS Version:                10.0.18362 N/A Build 18362
    OS Manufacturer:           Microsoft Corporation
    OS Configuration:          Member Workstation
    OS Build Type:             Multiprocessor Free
    Registered Owner:          company
    Registered Organization:   OOO
    Original Install Date:     01/01/2020, 7:10:02 PM
    System Boot Time:          4/28/2020, 12:43:21 PM
    System Model:              HP Samplebook
    System Type:               x64-based PC
    Processor(s):              1 Processor(s) Installed.
    Windows Directory:         C:\WINDOWS
    System Directory:          C:\WINDOWS\system32
    Boot Device:               \Device\HarddiskVolume1

    C:\Users\localserver&amp;gt;
    Host Name:                 localserver
    OS Name:                   Microsoft Windows 10 Enterprise
    OS Version:                10.0.18362 N/A Build 18362
    OS Manufacturer:           Microsoft Corporation
    OS Configuration:          Member Workstation
    OS Build Type:             Multiprocessor Free
    Registered Owner:          company
    Registered Organization:   OOO
    Original Install Date:     01/01/2020, 7:10:02 PM
    System Boot Time:          4/28/2020, 12:43:21 PM
    System Model:              HP Samplebook
    System Type:               x64-based PC
    Processor(s):              1 Processor(s) Installed.
    Windows Directory:         C:\WINDOWS
    System Directory:          C:\WINDOWS\system32
    Boot Device:               \Device\HarddiskVolume1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's the situation that their server sending the logs, every 1minute it will sent the nextline.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;C:\Users\localserver&amp;gt;systeminfo &amp;lt;After 1min it will send the next line&amp;gt;
Host Name:                 localserver &amp;lt;After 1min it will send the next line&amp;gt;
OS Name:                   Microsoft Windows 10 Enterprise &amp;lt;After 1min it will send the next line&amp;gt;
OS Version:                10.0.18362 N/A Build 18362 &amp;lt;After 1min it will send the next line&amp;gt;
OS Manufacturer:           Microsoft Corporation &amp;lt;After 1min it will send the next line&amp;gt;
OS Configuration:          Member Workstation &amp;lt;After 1min it will send the next line&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype_name]
DATETIME_CONFIG = CURRENT
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE = (C\:\\Users)
TRUNCATE = 8000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If i ingest the log as a bulk it will show  the "&lt;STRONG&gt;GREEN BOX"&lt;/STRONG&gt; in the picture whole and complete.&lt;BR /&gt;
But in my case &lt;STRONG&gt;it's staggered&lt;/STRONG&gt; and ingesting 1line per minute "&lt;STRONG&gt;RED BOX&lt;/STRONG&gt;".&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 08:09:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488220#M193920</guid>
      <dc:creator>jadengoho</dc:creator>
      <dc:date>2020-04-28T08:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle staggered logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488221#M193921</link>
      <description>&lt;P&gt;can you post your props and inputs?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 08:18:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488221#M193921</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-04-28T08:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle staggered logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488222#M193922</link>
      <description>&lt;P&gt;i'll update the question to include the current props.conf&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 08:39:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488222#M193922</guid>
      <dc:creator>jadengoho</dc:creator>
      <dc:date>2020-04-28T08:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle staggered logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488223#M193923</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="C:\Users\localserver&amp;gt;systeminfo
     Host Name:                 localserver
     OS Name:                   Microsoft Windows 10 Enterprise
     OS Version:                10.0.18362 N/A Build 18362
     OS Manufacturer:           Microsoft Corporation
     OS Configuration:          Member Workstation
     OS Build Type:             Multiprocessor Free
     Registered Owner:          company
     Registered Organization:   OOO
     Original Install Date:     01/01/2020, 7:10:02 PM
     System Boot Time:          4/28/2020, 12:43:21 PM
     System Model:              HP Samplebook
     System Type:               x64-based PC
     Processor(s):              1 Processor(s) Installed.
     Windows Directory:         C:\WINDOWS
     System Directory:          C:\WINDOWS\system32
     Boot Device:               \Device\HarddiskVolume1

C:\Users\localserver&amp;gt;
     Host Name:                 localserver
     OS Name:                   Microsoft Windows 10 Enterprise
     OS Version:                10.0.18362 N/A Build 18362
     OS Manufacturer:           Microsoft Corporation
     OS Configuration:          Member Workstation
     OS Build Type:             Multiprocessor Free
     Registered Owner:          company
     Registered Organization:   OOO
     Original Install Date:     01/01/2020, 7:10:02 PM
     System Boot Time:          4/28/2020, 12:43:21 PM
     System Model:              HP Samplebook
     System Type:               x64-based PC
     Processor(s):              1 Processor(s) Installed.
     Windows Directory:         C:\WINDOWS
     System Directory:          C:\WINDOWS\system32
     Boot Device:               \Device\HarddiskVolume1
 "
| rex mode=sed "s/(?ms)[\r\n]+^C:/#C/g"
| makemv delim="#" _raw
| stats count by _raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype_name]
DATETIME_CONFIG = CURRENT
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+^)C:
TRUNCATE = 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Apr 2020 08:47:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488223#M193923</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-28T08:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle staggered logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488224#M193924</link>
      <description>&lt;P&gt;are the events coming one in time (say 1 event/minute) or multiple are send at once?&lt;/P&gt;

&lt;P&gt;please try:&lt;BR /&gt;
    [sourcetype_name]&lt;BR /&gt;
    DATETIME_CONFIG = CURRENT&lt;BR /&gt;
    SHOULD_LINEMERGE = false&lt;BR /&gt;
    LINE_BREAKER = ([\r\n]+)C:&lt;BR /&gt;
    TRUNCATE = 8000&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:14:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488224#M193924</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-09-30T05:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle staggered logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488225#M193925</link>
      <description>&lt;P&gt;what a many slashes! &lt;/P&gt;

&lt;P&gt;@jadengoho&lt;BR /&gt;
what's your &lt;CODE&gt;inputs.conf&lt;/CODE&gt;&lt;BR /&gt;
I don't understand why commands displays and is logging.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 09:09:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488225#M193925</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-28T09:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle staggered logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488226#M193926</link>
      <description>&lt;P&gt;we don't have inputs. their server is sending logs to our HF .&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 09:21:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488226#M193926</guid>
      <dc:creator>jadengoho</dc:creator>
      <dc:date>2020-04-28T09:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle staggered logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488227#M193927</link>
      <description>&lt;P&gt;hi @PavelP - it s 1 line per minute&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 09:23:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488227#M193927</guid>
      <dc:creator>jadengoho</dc:creator>
      <dc:date>2020-04-28T09:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle staggered logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488228#M193928</link>
      <description>&lt;P&gt;Will this work even their server send data 1 line per minute, cause that's my problem?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 09:24:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488228#M193928</guid>
      <dc:creator>jadengoho</dc:creator>
      <dc:date>2020-04-28T09:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle staggered logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488229#M193929</link>
      <description>&lt;P&gt;The problem was that HF was sending more than one event at a time.&lt;BR /&gt;
If the event breaks up, there's no problem.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 09:29:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488229#M193929</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-28T09:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle staggered logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488230#M193930</link>
      <description>&lt;P&gt;The problem was that HF was sending more than one event at a time.&lt;BR /&gt;
   - How can i set the HF to not send the logs if it doesn't saw the linebreaker ?&lt;/P&gt;

&lt;P&gt;Also the client want to see the logs as a complete not  line by line..&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 09:32:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488230#M193930</guid>
      <dc:creator>jadengoho</dc:creator>
      <dc:date>2020-04-28T09:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle staggered logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488231#M193931</link>
      <description>&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/458237/setting-up-propsconf-at-the-heavy-forwarders.html"&gt;https://answers.splunk.com/answers/458237/setting-up-propsconf-at-the-heavy-forwarders.html&lt;/A&gt;&lt;BR /&gt;
set props.conf on HF&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 09:34:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488231#M193931</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-28T09:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle staggered logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488232#M193932</link>
      <description>&lt;P&gt;I do know how to setup the props on heavy forwarder using deployment server.&lt;/P&gt;

&lt;P&gt;The question is How can i make HF not send the logs if it doesn't saw the linebreaker?&lt;BR /&gt;
OR how to make the HF wait until he saw the linebreaker?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 09:42:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488232#M193932</guid>
      <dc:creator>jadengoho</dc:creator>
      <dc:date>2020-04-28T09:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle staggered logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488233#M193933</link>
      <description>&lt;P&gt;as @to4kawa mentioned, too many backslashes - I've corrected, the simplified LINE_BREAKER with C: will work, I've just tested successfully with your data&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 09:51:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488233#M193933</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-04-28T09:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle staggered logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488234#M193934</link>
      <description>&lt;P&gt;hi @PavelP -the configuration works for "one time ingestion", please see the GREEN BOX in the image. &lt;BR /&gt;
But when the staggered data came it doesn't follow the linebreaking - please see the RED BOX.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 10:16:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488234#M193934</guid>
      <dc:creator>jadengoho</dc:creator>
      <dc:date>2020-04-28T10:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle staggered logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488235#M193935</link>
      <description>&lt;P&gt;@to4kawa i've tried your code and it shows similar output.&lt;BR /&gt;
When i ingest the log as whole - it shows complete - please see GREEN BOX&lt;BR /&gt;
but in my case it send 1line per minute shows line per line  - please see RED BOX&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 11:01:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488235#M193935</guid>
      <dc:creator>jadengoho</dc:creator>
      <dc:date>2020-04-28T11:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle staggered logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488236#M193936</link>
      <description>&lt;P&gt;Hi @jadengoho,&lt;/P&gt;

&lt;P&gt;I've just checked it successfully with this configuration:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype_name]
DATETIME_CONFIG = CURRENT
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)C:
TRUNCATE = 8000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;don't forget to debug/refresh or restart Splunk after you changed the configuration.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 10:18:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488236#M193936</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-04-30T10:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle staggered logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488237#M193937</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/49552"&gt;@PavelP&lt;/a&gt; - yes this works on bulk ingestion even logs 1second apart. &lt;BR /&gt;
But in my case logs are being ingested 1minute apart.&lt;/P&gt;

&lt;P&gt;I resolve the issue by using "inputs.conf" time_before_close&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:16:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-handle-staggered-logs/m-p/488237#M193937</guid>
      <dc:creator>jadengoho</dc:creator>
      <dc:date>2020-09-30T05:16:00Z</dc:date>
    </item>
  </channel>
</rss>

