<?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 do I edit my props.conf for proper line breaking of my sample CSV log file? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214328#M42150</link>
    <description>&lt;P&gt;HI dcascione, I think a good angle on this would be to checkout the structured data options in props described here : &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/admin/Propsconf#Structured_Data_Header_Extraction_and_configuration" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.1/admin/Propsconf#Structured_Data_Header_Extraction_and_configuration&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Essentially you could define FIELD_NAMES config to define the software_build and count fields, and PREAMBLE_REGEX  config to disregard the initial couple lines&lt;/P&gt;

&lt;P&gt;To stick with the initial idea of breaking out the events, it seems that your config should be effective for treating each line as an event (SHOULD_LINEMERGE=false) &lt;/P&gt;

&lt;P&gt;One issue here could be that this config is being set on a universal forwarder, which wouldn't do linebreaking. Props definitions would need to be put on the upstream HF or Indexer.&lt;/P&gt;

&lt;P&gt;Please let me know if this answers your question!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 10:01:11 GMT</pubDate>
    <dc:creator>muebel</dc:creator>
    <dc:date>2020-09-29T10:01:11Z</dc:date>
    <item>
      <title>How do I edit my props.conf for proper line breaking of my sample CSV log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214327#M42149</link>
      <description>&lt;P&gt;I have a simple .csv log file that I'm trying to break with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[software_summary]
LINE_BREAKER  = ([\r\n]+)
SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is a sample of the log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Back to Index,
HOST INFORMATION,
Software build-2718055,10
Software build-3116895,15
Software build-2583090,35
Software 5.5.0 build-1746974,22
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The two fields I'm interested in which are comma delimited are &lt;STRONG&gt;Software Build&lt;/STRONG&gt; and &lt;STRONG&gt;Count&lt;/STRONG&gt;. I'd like to see each line break out into its own log file. Thanks !!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 17:59:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214327#M42149</guid>
      <dc:creator>dcascione</dc:creator>
      <dc:date>2016-06-20T17:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props.conf for proper line breaking of my sample CSV log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214328#M42150</link>
      <description>&lt;P&gt;HI dcascione, I think a good angle on this would be to checkout the structured data options in props described here : &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/admin/Propsconf#Structured_Data_Header_Extraction_and_configuration" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.1/admin/Propsconf#Structured_Data_Header_Extraction_and_configuration&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Essentially you could define FIELD_NAMES config to define the software_build and count fields, and PREAMBLE_REGEX  config to disregard the initial couple lines&lt;/P&gt;

&lt;P&gt;To stick with the initial idea of breaking out the events, it seems that your config should be effective for treating each line as an event (SHOULD_LINEMERGE=false) &lt;/P&gt;

&lt;P&gt;One issue here could be that this config is being set on a universal forwarder, which wouldn't do linebreaking. Props definitions would need to be put on the upstream HF or Indexer.&lt;/P&gt;

&lt;P&gt;Please let me know if this answers your question!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:01:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214328#M42150</guid>
      <dc:creator>muebel</dc:creator>
      <dc:date>2020-09-29T10:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props.conf for proper line breaking of my sample CSV log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214329#M42151</link>
      <description>&lt;P&gt;I was hoping to just line break the file in the props.conf and then build the field extractions using the UI - Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 19:16:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214329#M42151</guid>
      <dc:creator>dcascione</dc:creator>
      <dc:date>2016-06-20T19:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props.conf for proper line breaking of my sample CSV log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214330#M42152</link>
      <description>&lt;P&gt;According to the documentation, the stanza I added to the props.conf  which includes (([\r\n]+), ) should break out each line into an event...Not sure why this is not working?&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Defaults to ([\r\n]+), meaning data is broken into an event for each line,
delimited by any number of carriage return or newline characters.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 20 Jun 2016 19:44:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214330#M42152</guid>
      <dc:creator>dcascione</dc:creator>
      <dc:date>2016-06-20T19:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props.conf for proper line breaking of my sample CSV log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214331#M42153</link>
      <description>&lt;P&gt;The biggest issue I see with this file is that it's poorly formatted and not truly a well-formatted CSV file. See the screenshot below of when I saved the sample text you sent, saved it as software_summary.csv and opened it in Numbers on my mac. &lt;/P&gt;

&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/1477i5E0BB2577FC56D7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;If you did have it as a CSV then your props.conf would also include INDEXED_EXTRACTIONS = CSV and would handle this file much easier. &lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 19:55:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214331#M42153</guid>
      <dc:creator>ryanoconnor</dc:creator>
      <dc:date>2016-06-20T19:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props.conf for proper line breaking of my sample CSV log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214332#M42154</link>
      <description>&lt;P&gt;I edited my original issue to address the event breaking difficulty&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 20:01:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214332#M42154</guid>
      <dc:creator>muebel</dc:creator>
      <dc:date>2016-06-20T20:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props.conf for proper line breaking of my sample CSV log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214333#M42155</link>
      <description>&lt;P&gt;Yes the source file is a .csv - I just added the csv reference to the stanza - hopefully this will work! Thanks for the tip!!&lt;BR /&gt;
[software_summary]&lt;BR /&gt;
INDEXED_EXTRACTIONS = CSV &lt;BR /&gt;
LINE_BREAKER  = ([\r\n]+)&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:58:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214333#M42155</guid>
      <dc:creator>dcascione</dc:creator>
      <dc:date>2020-09-29T09:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props.conf for proper line breaking of my sample CSV log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214334#M42156</link>
      <description>&lt;P&gt;Can you also modify the first couple lines? the CSV indexed extractions work best if the first line is a header for the CSV file. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; Back to Index,
 HOST INFORMATION,
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Should be&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; software_build, count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So your CSV would look more like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; software_build, count
 Software build-2718055,10
 Software build-3116895,15
 Software build-2583090,35
 Software 5.5.0 build-1746974,22
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Jun 2016 20:16:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214334#M42156</guid>
      <dc:creator>ryanoconnor</dc:creator>
      <dc:date>2016-06-20T20:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props.conf for proper line breaking of my sample CSV log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214335#M42157</link>
      <description>&lt;P&gt;Will the change to the props.conf line break the pre-existing log files within the index, or just the new logs that are being ingested after the change?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 20:18:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214335#M42157</guid>
      <dc:creator>dcascione</dc:creator>
      <dc:date>2016-06-20T20:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props.conf for proper line breaking of my sample CSV log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214336#M42158</link>
      <description>&lt;P&gt;I just reached out to the team who generates the logs to see if they can remove the very first "HOST INFORMATION"  line. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 20:30:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214336#M42158</guid>
      <dc:creator>dcascione</dc:creator>
      <dc:date>2016-06-20T20:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props.conf for proper line breaking of my sample CSV log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214337#M42159</link>
      <description>&lt;P&gt;event breaking is done at index time, more info here : &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/Admin/Configurationparametersandthedatapipeline"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.1/Admin/Configurationparametersandthedatapipeline&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The already indexed events won't change.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 20:37:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214337#M42159</guid>
      <dc:creator>muebel</dc:creator>
      <dc:date>2016-06-20T20:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props.conf for proper line breaking of my sample CSV log file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214338#M42160</link>
      <description>&lt;P&gt;If possible, can you clean that index and re-index the file after you've made that change? Can you also post the updated version of the csv file once they've changed it so we can confirm it looks correct?&lt;/P&gt;

&lt;P&gt;Thank you,&lt;BR /&gt;
Ryan&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 20:43:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-line-breaking-of-my/m-p/214338#M42160</guid>
      <dc:creator>ryanoconnor</dc:creator>
      <dc:date>2016-06-20T20:43:37Z</dc:date>
    </item>
  </channel>
</rss>

