<?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 Unwanted line breaking when running a Python script in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Unwanted-line-breaking-when-running-a-Python-script/m-p/595293#M10591</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hey there Splunk community. I'm new here and I would appreciate some help if it is possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm running a Python script that generates a 4 line event inside my Splunk app. The strange thing about it is that it always generates the same amount of characters (spread across 4 lines) and my events still break into 2 linecounts 20% of the time. I don't see any pattern whatsoever. Is there a way to solve this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_2022-04-25_20_51_39.png"&gt;&lt;img src="https://community.splunk.com/skins/images/D24560F609AFF3529859E2708330C89A/responsive_peak/images/image_not_found.png" alt="Screenshot_2022-04-25_20_51_39.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2022 19:57:44 GMT</pubDate>
    <dc:creator>mrrci</dc:creator>
    <dc:date>2022-04-25T19:57:44Z</dc:date>
    <item>
      <title>Unwanted line breaking when running a Python script</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unwanted-line-breaking-when-running-a-Python-script/m-p/595293#M10591</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hey there Splunk community. I'm new here and I would appreciate some help if it is possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm running a Python script that generates a 4 line event inside my Splunk app. The strange thing about it is that it always generates the same amount of characters (spread across 4 lines) and my events still break into 2 linecounts 20% of the time. I don't see any pattern whatsoever. Is there a way to solve this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_2022-04-25_20_51_39.png"&gt;&lt;img src="https://community.splunk.com/skins/images/D24560F609AFF3529859E2708330C89A/responsive_peak/images/image_not_found.png" alt="Screenshot_2022-04-25_20_51_39.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 19:57:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unwanted-line-breaking-when-running-a-Python-script/m-p/595293#M10591</guid>
      <dc:creator>mrrci</dc:creator>
      <dc:date>2022-04-25T19:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unwanted line breaking when running a Python script</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unwanted-line-breaking-when-running-a-Python-script/m-p/595297#M10592</link>
      <description>&lt;P&gt;Is there a timestamp on your lines?&lt;/P&gt;&lt;P&gt;Do you have props for this sourcetype?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 21:11:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unwanted-line-breaking-when-running-a-Python-script/m-p/595297#M10592</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2022-04-25T21:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unwanted line breaking when running a Python script</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unwanted-line-breaking-when-running-a-Python-script/m-p/595301#M10593</link>
      <description>&lt;P&gt;Yes, I created a sourcetype.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 22:08:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unwanted-line-breaking-when-running-a-Python-script/m-p/595301#M10593</guid>
      <dc:creator>mrrci</dc:creator>
      <dc:date>2022-04-25T22:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unwanted line breaking when running a Python script</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unwanted-line-breaking-when-running-a-Python-script/m-p/595337#M10594</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/245189"&gt;@mrrci&lt;/a&gt;&amp;nbsp;- Check your sourcetype's props.conf for line breaker and timestamp extraction.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[&amp;lt;your sourcetype&amp;gt;]
LINE_BREAKER = ([\n\r]+)\d{8}[\n\r]+
SHOULD_LINEMERGE = false
TRUNCATE = 100&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please also set the following parameters for timestamp extraction, if you have not set already.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TIME_PREFIX = regex of the text that leads up to the timestamp
MAX_TIMESTAMP_LOOKAHEAD = how many characters for the timestamp
TIME_FORMAT = strptime format of the timestamp&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!! Upvote/Karma would be appreciated!!!!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 06:22:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unwanted-line-breaking-when-running-a-Python-script/m-p/595337#M10594</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-04-26T06:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unwanted line breaking when running a Python script</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Unwanted-line-breaking-when-running-a-Python-script/m-p/595343#M10595</link>
      <description>&lt;P&gt;And how does your _time correspond to those events? Because at first glance I'd also suspect that Splunks tries automagically to "fit" some date format to your number and breaks "before timestamp".&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 06:41:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Unwanted-line-breaking-when-running-a-Python-script/m-p/595343#M10595</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-04-26T06:41:39Z</dc:date>
    </item>
  </channel>
</rss>

