<?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 How to include medium-large texts with the events? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-include-medium-large-texts-with-the-events/m-p/469717#M80799</link>
    <description>&lt;P&gt;I'm developing an inotify-based daemon to report core-dumps occasionally occurring in a directory.&lt;/P&gt;

&lt;P&gt;Reporting the fact of the crash is easy, but we also want to include the debugger's output (showing the full stack at the time of crash).&lt;/P&gt;

&lt;P&gt;Should I make that simply one large text-field (with multiple newlines):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
    "PID": 1111,
    "stack": "#0  0x00000001 in ?? ()\n#1  0x28098e5f in xo_attr (name=0x5 &amp;lt;Address 0x5 out of bounds&amp;gt;, fmt=0x0) ...."
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or a &lt;EM&gt;list&lt;/EM&gt; of lines:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
     "PID": 1111,
     "stack": [
        "#0  0x00000001 in ?? ()",
        "#1  0x28098e5f in xo_attr (name=0x5 &amp;lt;Address 0x5 out of bounds&amp;gt;, fmt=0x0)",
       ...
     ]
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Are there technical pluses/minuses to either approach, or is it just a matter of taste? For example, would Splunk's additional tools (such as the Patterns-seeker) prefer one method over another?&lt;/P&gt;</description>
    <pubDate>Mon, 10 Feb 2020 15:44:26 GMT</pubDate>
    <dc:creator>unitedmarsupial</dc:creator>
    <dc:date>2020-02-10T15:44:26Z</dc:date>
    <item>
      <title>How to include medium-large texts with the events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-include-medium-large-texts-with-the-events/m-p/469717#M80799</link>
      <description>&lt;P&gt;I'm developing an inotify-based daemon to report core-dumps occasionally occurring in a directory.&lt;/P&gt;

&lt;P&gt;Reporting the fact of the crash is easy, but we also want to include the debugger's output (showing the full stack at the time of crash).&lt;/P&gt;

&lt;P&gt;Should I make that simply one large text-field (with multiple newlines):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
    "PID": 1111,
    "stack": "#0  0x00000001 in ?? ()\n#1  0x28098e5f in xo_attr (name=0x5 &amp;lt;Address 0x5 out of bounds&amp;gt;, fmt=0x0) ...."
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or a &lt;EM&gt;list&lt;/EM&gt; of lines:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
     "PID": 1111,
     "stack": [
        "#0  0x00000001 in ?? ()",
        "#1  0x28098e5f in xo_attr (name=0x5 &amp;lt;Address 0x5 out of bounds&amp;gt;, fmt=0x0)",
       ...
     ]
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Are there technical pluses/minuses to either approach, or is it just a matter of taste? For example, would Splunk's additional tools (such as the Patterns-seeker) prefer one method over another?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 15:44:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-include-medium-large-texts-with-the-events/m-p/469717#M80799</guid>
      <dc:creator>unitedmarsupial</dc:creator>
      <dc:date>2020-02-10T15:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to include medium-large texts with the events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-include-medium-large-texts-with-the-events/m-p/469718#M80800</link>
      <description>&lt;P&gt;&lt;EM&gt;props.conf&lt;/EM&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = ([\r\n]+)|\\\n
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and add &lt;CODE&gt;SEDCMD&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 20:23:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-include-medium-large-texts-with-the-events/m-p/469718#M80800</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-10T20:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to include medium-large texts with the events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-include-medium-large-texts-with-the-events/m-p/469719#M80801</link>
      <description>&lt;P&gt;you have to increase (or set to zero for this sourcetype) TRUNCATE in props.conf for the first example if the length can exceed 10000 bytes.&lt;/P&gt;

&lt;P&gt;the probability that the regex find a wrong match is higher for a very long line (depends on your regex).&lt;/P&gt;

&lt;P&gt;from the other side, Splunk best practices are to keep mulitline events to a minimum:&lt;BR /&gt;
&lt;A href="https://dev.splunk.com/enterprise/docs/developapps/logging/loggingbestpractices/#Keep-multi-line-events-to-a-minimum"&gt;https://dev.splunk.com/enterprise/docs/developapps/logging/loggingbestpractices/#Keep-multi-line-events-to-a-minimum&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 07:44:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-include-medium-large-texts-with-the-events/m-p/469719#M80801</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-02-11T07:44:28Z</dc:date>
    </item>
  </channel>
</rss>

