<?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: Scripted input with current time and line merge in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-input-with-current-time-and-line-merge/m-p/111001#M23293</link>
    <description>&lt;P&gt;Finally, I found a way how to do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[interfaces]
DATETIME_CONFIG = NONE
SHOULD_LINEMERGE=true
#break only at the end of input
LINE_BREAKER = (?!)

[package]
DATETIME_CONFIG = NONE
SHOULD_LINEMERGE=true
#break only at the end of input
LINE_BREAKER = (?!)
MAX_EVENTS=1000

[vmstat]
DATETIME_CONFIG = NONE
SHOULD_LINEMERGE=true
#break only at the end of input
LINE_BREAKER = (?!)
MAX_EVENTS=1000

[netstat]
DATETIME_CONFIG = NONE
SHOULD_LINEMERGE=true
#break only at the end of input
LINE_BREAKER = (?!)
MAX_EVENTS=1000

[who]
DATETIME_CONFIG = NONE
SHOULD_LINEMERGE=true
#break only at the end of input
LINE_BREAKER = (?!)
MAX_EVENTS=1000

[ps]
DATETIME_CONFIG = NONE
SHOULD_LINEMERGE=true
#break only at the end of input
LINE_BREAKER = (?!)
MAX_EVENTS=1000

[protocol]
DATETIME_CONFIG = NONE
SHOULD_LINEMERGE=true
#break only at the end of input
LINE_BREAKER = (?!)
MAX_EVENTS=1000

[lastlog]
DATETIME_CONFIG = NONE
SHOULD_LINEMERGE=true
#break only at the end of input
LINE_BREAKER = (?!)
MAX_EVENTS=1000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 20 Jun 2014 12:12:58 GMT</pubDate>
    <dc:creator>koudis</dc:creator>
    <dc:date>2014-06-20T12:12:58Z</dc:date>
    <item>
      <title>Scripted input with current time and line merge</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-input-with-current-time-and-line-merge/m-p/110998#M23290</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
does anyone known how to setup scripted input. For example netstat from Unix app with current time and line merging ?&lt;BR /&gt;
This output doesn't have any timestamp so I want to setup DATETIME_CONFIG=CURRENT/NONE, but when I'm using this, the output is broken into separate lines as new events and it's unreadable.&lt;BR /&gt;
I don't know if I can somehow unset LINE_BREAKER or setup BREAK_ONLY_BEFORE to EOF ?&lt;/P&gt;

&lt;P&gt;Thank you for any advice. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:53:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-input-with-current-time-and-line-merge/m-p/110998#M23290</guid>
      <dc:creator>koudis</dc:creator>
      <dc:date>2020-09-28T16:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted input with current time and line merge</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-input-with-current-time-and-line-merge/m-p/110999#M23291</link>
      <description>&lt;P&gt;First, make sure that the props.conf is on the indexer.&lt;/P&gt;

&lt;P&gt;To force the current timestamp use the &lt;BR /&gt;
DATETIME_CONFIG=CURRENT&lt;/P&gt;

&lt;P&gt;then to handle the multiline events use should_linemerge, and add a linebreaking rule depending of your pattern. If you have scripted inputs, you can add a special line between your events to make it easier :&lt;BR /&gt;
see &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.1/Data/Indexmulti-lineevents"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.1/Data/Indexmulti-lineevents&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
[mysourcetype]&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
BREAK_ONLY_BEFORE = ^#&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;
#
new events
on 
multiline
#
another
multiline event
&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jun 2014 14:39:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-input-with-current-time-and-line-merge/m-p/110999#M23291</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2014-06-19T14:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted input with current time and line merge</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-input-with-current-time-and-line-merge/m-p/111000#M23292</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
thank you for your answer.&lt;BR /&gt;
Unfortunately, this will not help.&lt;BR /&gt;
SHOULD_LINEMERGE=true is default&lt;BR /&gt;
And I don't want to break anywhere in output. I just want to receive entire output as one event. Should I setup something like this ?&lt;BR /&gt;
BREAK_ONLY_BEFORE = ^neverexist#&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:53:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-input-with-current-time-and-line-merge/m-p/111000#M23292</guid>
      <dc:creator>koudis</dc:creator>
      <dc:date>2020-09-28T16:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted input with current time and line merge</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-input-with-current-time-and-line-merge/m-p/111001#M23293</link>
      <description>&lt;P&gt;Finally, I found a way how to do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[interfaces]
DATETIME_CONFIG = NONE
SHOULD_LINEMERGE=true
#break only at the end of input
LINE_BREAKER = (?!)

[package]
DATETIME_CONFIG = NONE
SHOULD_LINEMERGE=true
#break only at the end of input
LINE_BREAKER = (?!)
MAX_EVENTS=1000

[vmstat]
DATETIME_CONFIG = NONE
SHOULD_LINEMERGE=true
#break only at the end of input
LINE_BREAKER = (?!)
MAX_EVENTS=1000

[netstat]
DATETIME_CONFIG = NONE
SHOULD_LINEMERGE=true
#break only at the end of input
LINE_BREAKER = (?!)
MAX_EVENTS=1000

[who]
DATETIME_CONFIG = NONE
SHOULD_LINEMERGE=true
#break only at the end of input
LINE_BREAKER = (?!)
MAX_EVENTS=1000

[ps]
DATETIME_CONFIG = NONE
SHOULD_LINEMERGE=true
#break only at the end of input
LINE_BREAKER = (?!)
MAX_EVENTS=1000

[protocol]
DATETIME_CONFIG = NONE
SHOULD_LINEMERGE=true
#break only at the end of input
LINE_BREAKER = (?!)
MAX_EVENTS=1000

[lastlog]
DATETIME_CONFIG = NONE
SHOULD_LINEMERGE=true
#break only at the end of input
LINE_BREAKER = (?!)
MAX_EVENTS=1000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Jun 2014 12:12:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-input-with-current-time-and-line-merge/m-p/111001#M23293</guid>
      <dc:creator>koudis</dc:creator>
      <dc:date>2014-06-20T12:12:58Z</dc:date>
    </item>
  </channel>
</rss>

