<?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: Why is line breaking inconsistent - File Monitoring - Roxio SecureBurn Log file - .txt in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425735#M74618</link>
    <description>&lt;P&gt;I added to my props.conf and did not see a change in behavior. I'm still seeing the same - one of the .txt files has been split to 10 events where each line is its own event; while 2 other .txt files are still being returned as a multi-line event. &lt;/P&gt;

&lt;P&gt;As I understand Splunk, changes in line breaking are applied at search time, correct? &lt;/P&gt;

&lt;P&gt;Could there be an issue in how the .txt file is formatted?&lt;BR /&gt;
I'm generally aware that there are some quirks with how Notepad.exe handles new lines (as evidenced by trying to modify any Splunk app in Notepad - there are never any linebreaks). Because of that I use another tool that handles the new lines appropriately - are there any tools (e.g. notepad++) that could identify what type of new line is present in my .txt file?&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2019 13:01:31 GMT</pubDate>
    <dc:creator>danielansell</dc:creator>
    <dc:date>2019-03-08T13:01:31Z</dc:date>
    <item>
      <title>Why is line breaking inconsistent - File Monitoring - Roxio SecureBurn Log file - .txt</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425730#M74613</link>
      <description>&lt;P&gt;Everytime a CD is burned with Roxio SecureBurn, a txt file log of the cd is created. The format of the .txt log file is:&lt;/P&gt;

&lt;P&gt;Date: Thu Mar 7 13:47:00 2019&lt;BR /&gt;
Computer Name: ComputerName01&lt;BR /&gt;
User Name: domain.accountname&lt;/P&gt;

&lt;H1&gt;Project includes 1 folder(s) and 2 file(s)&lt;/H1&gt;

&lt;P&gt;C:\Users\accountname\Desktop\TransferFolder\file1.txt          e69f78a887b(rest of file hash)a35          3764543bytes          2019/3/7 08:13:15&lt;BR /&gt;
C:\Users\accountname\Desktop\TransferFolder\file2.txt          e69f78a887b(rest of file hash)a35          7764543bytes          2019/3/7 08:13:18&lt;BR /&gt;
END OF FILE&lt;/P&gt;

&lt;P&gt;My props.conf for the sourcetype I created includes:&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;/P&gt;

&lt;P&gt;Linebreaking is occurring inconsistently. Some of my events show up where each line is its own event, others include every bit of data in the .txt file as its own event. Any ideas - perhaps a more bulletproof way to force a break? Do Windows .txt files normally have inconsistancies with a carriage return or line breaking?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 19:45:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425730#M74613</guid>
      <dc:creator>danielansell</dc:creator>
      <dc:date>2019-03-07T19:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why is line breaking inconsistent - File Monitoring - Roxio SecureBurn Log file - .txt</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425731#M74614</link>
      <description>&lt;P&gt;Forgive my ignorance - does each burn job result in a new file, or all all the job logs written into the same log?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 11:49:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425731#M74614</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2019-03-08T11:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why is line breaking inconsistent - File Monitoring - Roxio SecureBurn Log file - .txt</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425732#M74615</link>
      <description>&lt;P&gt;When you set &lt;CODE&gt;SHOULD_LINEMERGE = false&lt;/CODE&gt; you also need to specify a linebreaker. And while you're at it, it is always good to specify time format config explicitly as well.&lt;/P&gt;

&lt;P&gt;So, try adding this to your props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = ([\r\n]*)Date:\s+\w+\s+\w+\s+\d+
TIME_PREFIX = Date:\s+
MAX_TIMESTAMP_LOOKAHEAD = 25
TIME_FORMAT = %a %b %e %H:%M:%S %Y
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Mar 2019 12:25:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425732#M74615</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-03-08T12:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why is line breaking inconsistent - File Monitoring - Roxio SecureBurn Log file - .txt</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425733#M74616</link>
      <description>&lt;P&gt;Each job results in a new file. As such, I intend to use the source field as a means to provide meaningful data (using either a transaction, or "by" to group data). &lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 12:37:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425733#M74616</guid>
      <dc:creator>danielansell</dc:creator>
      <dc:date>2019-03-08T12:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why is line breaking inconsistent - File Monitoring - Roxio SecureBurn Log file - .txt</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425734#M74617</link>
      <description>&lt;P&gt;The ultimate goal is actually to extract data from each file burned to CD. When each .txt file is returned as a single event, I tried to extract data though using the rex command. The first result is stored in my "FileSize" field, but it does not continue on to the remaining lines. &lt;/P&gt;

&lt;P&gt;So alternatively, if there is a more appropriate way to populate a FileSize, FileName, etc. field from each line, without breaking the event into single line events, that would be great as well. &lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 12:48:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425734#M74617</guid>
      <dc:creator>danielansell</dc:creator>
      <dc:date>2019-03-08T12:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why is line breaking inconsistent - File Monitoring - Roxio SecureBurn Log file - .txt</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425735#M74618</link>
      <description>&lt;P&gt;I added to my props.conf and did not see a change in behavior. I'm still seeing the same - one of the .txt files has been split to 10 events where each line is its own event; while 2 other .txt files are still being returned as a multi-line event. &lt;/P&gt;

&lt;P&gt;As I understand Splunk, changes in line breaking are applied at search time, correct? &lt;/P&gt;

&lt;P&gt;Could there be an issue in how the .txt file is formatted?&lt;BR /&gt;
I'm generally aware that there are some quirks with how Notepad.exe handles new lines (as evidenced by trying to modify any Splunk app in Notepad - there are never any linebreaks). Because of that I use another tool that handles the new lines appropriately - are there any tools (e.g. notepad++) that could identify what type of new line is present in my .txt file?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 13:01:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425735#M74618</guid>
      <dc:creator>danielansell</dc:creator>
      <dc:date>2019-03-08T13:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why is line breaking inconsistent - File Monitoring - Roxio SecureBurn Log file - .txt</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425736#M74619</link>
      <description>&lt;P&gt;That sounds like a matter of setting &lt;CODE&gt;max_matches=0&lt;/CODE&gt; in your rex command. By default the rex command stops after finding 1 match.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 13:03:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425736#M74619</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-03-08T13:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why is line breaking inconsistent - File Monitoring - Roxio SecureBurn Log file - .txt</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425737#M74620</link>
      <description>&lt;P&gt;I typically use rex to test my extractions before building my field extractions in my props.conf. &lt;BR /&gt;
Will a field extraction defined in a props.conf return multiple values - should a max_matches=0 be added to my props.conf?&lt;/P&gt;

&lt;P&gt;If so, will I be able to perform stats functions on the multivalued field? For example, if I were to define a FileSize field in my props.conf as an extraction, and I'd like to return a total size for the burn job, would I be able to do the following:&lt;BR /&gt;
...search... |eval DiscSize=sum(FileSize) by source&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 13:15:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425737#M74620</guid>
      <dc:creator>danielansell</dc:creator>
      <dc:date>2019-03-08T13:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why is line breaking inconsistent - File Monitoring - Roxio SecureBurn Log file - .txt</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425738#M74621</link>
      <description>&lt;P&gt;You can use a REPORT extraction and configure the corresponding transforms.conf settings with &lt;CODE&gt;MV_ADD=true&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Yes, something like that would work. Although the correct syntax would be:  &lt;CODE&gt;| stats sum(FileSize) by source&lt;/CODE&gt; not eval &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;But it might also be valid to split this into single line events upon indexing, as multi valued fields can be a bit difficult to work with sometimes. But then you will have to find a way of dealing with those header lines of the file (if at all interesting).&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 13:34:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425738#M74621</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-03-08T13:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why is line breaking inconsistent - File Monitoring - Roxio SecureBurn Log file - .txt</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425739#M74622</link>
      <description>&lt;P&gt;Linebreaking happens at indextime. So to see the changes take effect, you need to restart and ingest fresh sample files.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 13:34:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425739#M74622</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-03-08T13:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why is line breaking inconsistent - File Monitoring - Roxio SecureBurn Log file - .txt</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425740#M74623</link>
      <description>&lt;P&gt;That's my problem. I was expecting the props config to be interpreted at search time. The event I have that is broken up correctly was indexed after my props change. I didn't put two and two together with that. &lt;/P&gt;

&lt;P&gt;I think I'll re-index the data and see if that serves my needs. &lt;/P&gt;

&lt;P&gt;Thanks for the help - to include up above with the stats versus eval. &lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 16:18:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425740#M74623</guid>
      <dc:creator>danielansell</dc:creator>
      <dc:date>2019-03-08T16:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why is line breaking inconsistent - File Monitoring - Roxio SecureBurn Log file - .txt</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425741#M74624</link>
      <description>&lt;P&gt;Were you able to extract the file names and sizes from these logs, if so would you be willing to share?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 21:59:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425741#M74624</guid>
      <dc:creator>mfw113</dc:creator>
      <dc:date>2020-01-17T21:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why is line breaking inconsistent - File Monitoring - Roxio SecureBurn Log file - .txt</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425742#M74625</link>
      <description>&lt;P&gt;For file details, my extraction looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?P&amp;lt;FileName&amp;gt;.+)\s(?P&amp;lt;FileHash&amp;gt;[0-9a-fA-F]{40})\s+(?P&amp;lt;FileSize&amp;gt;\d+)bytes\s+(?P&amp;lt;FileModDate&amp;gt;\d{4}\/\d+\/\d+\s\d+:\d+:\d+
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Jan 2020 21:38:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-line-breaking-inconsistent-File-Monitoring-Roxio/m-p/425742#M74625</guid>
      <dc:creator>danielansell</dc:creator>
      <dc:date>2020-01-21T21:38:06Z</dc:date>
    </item>
  </channel>
</rss>

