<?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 create one event per line in scripted innput in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-one-event-per-line-in-scripted-innput/m-p/80815#M16668</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;Edit or create your props.conf file and add:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ps]
SHOULD_LINEMERGE=false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That should force one event per line&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Mon, 01 Apr 2013 16:38:04 GMT</pubDate>
    <dc:creator>gfuente</dc:creator>
    <dc:date>2013-04-01T16:38:04Z</dc:date>
    <item>
      <title>How to create one event per line in scripted innput</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-one-event-per-line-in-scripted-innput/m-p/80814#M16667</link>
      <description>&lt;P&gt;I have a scripted file input that is tailing a log file, unfortunately events are not being broken out correctly. I would like one event per line. &lt;/P&gt;

&lt;P&gt;Ideas?&lt;/P&gt;

&lt;P&gt;Inputs.conf below:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[script://D:\Splunk\etc\apps\sos\bin\sospowershell.cmd oaintfep03.ps1]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
index = main&lt;BR /&gt;
interval = 90&lt;BR /&gt;
source = oaintfep03&lt;BR /&gt;
sourcetype = ps&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;[Sample of data below]&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;USERENV(dcf8.5ae8) 17:53:05:315 LoadUserProfile: NULL server name&lt;BR /&gt;
USERENV(dcf8.5ae8) 17:53:05:315 LoadUserProfile: no thread token found, impersonating self.&lt;BR /&gt;
USERENV(dcf8.5ae8) 17:53:05:315 GetInterface: Returning rpc binding handle&lt;BR /&gt;
USERENV(364.20c8) 17:53:05:315 IProfileSecurityCallBack: client authenticated.&lt;BR /&gt;
USERENV(364.20c8) 17:53:05:315 MIDL_user_allocate enter&lt;BR /&gt;
USERENV(364.20c8) 17:53:05:315 DropClientContext: Got client token 000009B8, sid = S-1-5-18&lt;BR /&gt;
USERENV(364.20c8) 17:53:05:315 MIDL_user_allocate enter&lt;BR /&gt;
USERENV(364.20c8) 17:53:05:315 DropClientContext: load profile object successfully made&lt;BR /&gt;
USERENV(364.20c8) 17:53:05:315 DropClientContext: Returning 0&lt;BR /&gt;
USERENV(364.20c8) 17:53:05:331 MIDL_user_free enter&lt;BR /&gt;
USERENV(dcf8.5ae8) 17:53:05:331 LoadUserProfile: Calling DropClientToken (as self) succeeded&lt;BR /&gt;
USERENV(dcf8.5ae8) 17:53:05:331 CProfileDialog::Initialize : Cookie generated &amp;lt;917DE8361C59FB6371FF057477808B96&amp;gt;&lt;BR /&gt;
USERENV(dcf8.5ae8) 17:53:05:331 CProfileDialog::Initialize : Endpoint generated &amp;lt;IProfileDialog_CE7806EEC5C36D56A877F1B2156E21BB&amp;gt;&lt;BR /&gt;
USERENV(364.102f8) 17:53:05:331 IProfileSecurityCallBack: client authenticated.&lt;BR /&gt;
USERENV(364.102f8) 17:53:05:331 MIDL_user_allocate enter&lt;BR /&gt;
USERENV(364.102f8) 17:53:05:331 LoadUserProfileI: RPC end point IProfileDialog_CE7806EEC5C36D56A877F1B2156E21BB&lt;BR /&gt;
USERENV(364.102f8) 17:53:05:331 In LoadUserProfileP&lt;BR /&gt;
USERENV(364.102f8) 17:53:05:331 LoadUserProfile: Running as client, sid = S-1-5-18&lt;BR /&gt;
USERENV(364.102f8) 17:53:05:331 =========================================================&lt;BR /&gt;
USERENV(364.102f8) 17:53:05:331 LoadUserProfile: Entering, hToken = &amp;lt;0xd80&amp;gt;, lpProfileInfo = 0x207bb80&lt;BR /&gt;
USERENV(364.102f8) 17:53:05:331 LoadUserProfile: lpProfileInfo-&amp;gt;dwFlags = &amp;lt;0x0&amp;gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2013 16:21:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-one-event-per-line-in-scripted-innput/m-p/80814#M16667</guid>
      <dc:creator>bigtyma</dc:creator>
      <dc:date>2013-04-01T16:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create one event per line in scripted innput</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-one-event-per-line-in-scripted-innput/m-p/80815#M16668</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;Edit or create your props.conf file and add:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ps]
SHOULD_LINEMERGE=false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That should force one event per line&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2013 16:38:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-one-event-per-line-in-scripted-innput/m-p/80815#M16668</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2013-04-01T16:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create one event per line in scripted innput</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-one-event-per-line-in-scripted-innput/m-p/80816#M16669</link>
      <description>&lt;P&gt;First, if you have the Splunk *NIX app installed, there is already a sourcetype named &lt;CODE&gt;ps&lt;/CODE&gt; - and it doesn't match what you are doing here. So if you are using the *NIX app (or think you might in the future), I suggest that you pick a different name for your sourcetype.  That &lt;EM&gt;might&lt;/EM&gt; solve the problem altogether, but if it doesn't:&lt;/P&gt;

&lt;P&gt;Create the following stanza in props.conf (or add to an existing one):&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetypename]
SHOULD_LINEMERGE=false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Be sure that you put this props.conf on your indexer (or wherever the data is parsed).&lt;/P&gt;

&lt;P&gt;PS - why are you using a scripted input to tail a log file? I would think that a &lt;CODE&gt;monitor&lt;/CODE&gt; input would be preferable...&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2013 16:38:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-one-event-per-line-in-scripted-innput/m-p/80816#M16669</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-04-01T16:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to create one event per line in scripted innput</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-one-event-per-line-in-scripted-innput/m-p/80817#M16670</link>
      <description>&lt;P&gt;ps is for Powershell, I am on windows.&lt;/P&gt;

&lt;P&gt;Changing props.conf fixed that issue, however my event is now 257 lines long. Should I use max events = 1 to get one event per line?&lt;/P&gt;

&lt;P&gt;Using a file monitor had issues since it detected my file as binary, the files are encoded in unicode and I am able to tail the file in the correct encoding in Powershell. It could be better but this mostly works.&lt;/P&gt;

&lt;P&gt;I appreciate your help.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2013 16:52:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-one-event-per-line-in-scripted-innput/m-p/80817#M16670</guid>
      <dc:creator>bigtyma</dc:creator>
      <dc:date>2013-04-01T16:52:25Z</dc:date>
    </item>
  </channel>
</rss>

