<?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: Raspberry Pi Universal Forwarder Bug Report for splunkforwarder-8.0.3-a6754d8441bf-Linux-arm.tgz: in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Raspberry-Pi-Universal-Forwarder-Bug-Report-for-splunkforwarder/m-p/494456#M84419</link>
    <description>&lt;P&gt;You're right, but ewwww, that's expected behaviour?&lt;/P&gt;</description>
    <pubDate>Wed, 06 May 2020 18:19:38 GMT</pubDate>
    <dc:creator>BongoTheWhippet</dc:creator>
    <dc:date>2020-05-06T18:19:38Z</dc:date>
    <item>
      <title>Raspberry Pi Universal Forwarder Bug Report for splunkforwarder-8.0.3-a6754d8441bf-Linux-arm.tgz:</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Raspberry-Pi-Universal-Forwarder-Bug-Report-for-splunkforwarder/m-p/494454#M84417</link>
      <description>&lt;P&gt;On a Raspberry Pi 3 armv7l GNU/Linux, &lt;CODE&gt;INDEXED_EXTRACTIONS=JSON&lt;/CODE&gt; in the &lt;CODE&gt;props.conf&lt;/CODE&gt; file results in unrecoverable JSON StreamId processing errors:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;05-06-2020 17:52:07.836 +0100 ERROR JsonLineBreaker - JSON StreamId:8017092045127549753 had parsing error:Unexpected character: '5' - data_source="/opt/splunkforwarder/var/log/splunk/metrics.log", data_host="rpi3", data_sourcetype="json"&lt;BR /&gt;
05-06-2020 17:52:07.836 +0100 ERROR JsonLineBreaker - JSON StreamId:8017092045127549753 had parsing error:Unexpected character: '5' - data_source="/opt/splunkforwarder/var/log/splunk/metrics.log", data_host="rpi3", data_sourcetype="json"&lt;BR /&gt;
05-06-2020 17:52:07.836 +0100 ERROR JsonLineBreaker - JSON StreamId:8017092045127549753 had parsing error:Unexpected character: '5' - data_source="/opt/splunkforwarder/var/log/splunk/metrics.log", data_host="rpi3", data_sourcetype="json"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;with the log expanding so quickly, it fills up the &lt;CODE&gt;/opt/splunkforwarder/var/log/splunk/splunkd.log&lt;/CODE&gt; to maximum logrotate capacity.&lt;/P&gt;

&lt;P&gt;Steps to duplicate bug:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Install &lt;CODE&gt;splunkforwarder-8.0.3-a6754d8441bf-Linux-arm.tgz&lt;/CODE&gt; onto a Raspberry Pi 3.&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Edit the &lt;CODE&gt;/opt/splunkforwarder/etc/system/local/props.conf&lt;/CODE&gt; and add the following code:&lt;/P&gt;

&lt;P&gt;[default]&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
KV_MODE = none&lt;BR /&gt;
INDEXED_EXTRACTIONS=JSON&lt;BR /&gt;
NO_BINARY_CHECK = true&lt;BR /&gt;
TRUNCATE = 0&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Add a local JSON file to the splunk file monitor with &lt;CODE&gt;$SPLUNKHOME/bin/splunk add monitor /var/log/myvalidjsonfile.json -sourcetype json -host myhost -index myindex&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Restart splunk.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Check the file &lt;CODE&gt;tail -f $SPLUNKHOME/var/log/splunk/splunkd.log&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Watch it scroll away off the screen! The errors above are reported for both &lt;CODE&gt;metrics.log&lt;/CODE&gt; and the &lt;CODE&gt;splunkd.log&lt;/CODE&gt; itself(!)&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Stop splunk.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Edit &lt;CODE&gt;props.conf&lt;/CODE&gt; again and remove the line &lt;CODE&gt;INDEXED_EXTRACTIONS=JSON&lt;/CODE&gt;.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Restart splunk.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Your splunkd.log is back to normal again.&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Raspberry-Pi-Universal-Forwarder-Bug-Report-for-splunkforwarder/m-p/494454#M84417</guid>
      <dc:creator>BongoTheWhippet</dc:creator>
      <dc:date>2020-09-30T05:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Raspberry Pi Universal Forwarder Bug Report for splunkforwarder-8.0.3-a6754d8441bf-Linux-arm.tgz:</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Raspberry-Pi-Universal-Forwarder-Bug-Report-for-splunkforwarder/m-p/494455#M84418</link>
      <description>&lt;P&gt;so,  i think what is happening is that  you are adding that INDEXED_EXTRACTIONS=JSON to default, which will apply to every log the system is forwarding , and that includes the Splunk logs themselves (everything in $SPLUNK_HOME/var/log/splunk), which are not JSON formatted.   &lt;/P&gt;

&lt;P&gt;you are better to use a specific sourcetype for your pi logs, and add the indexed extractions to that rather than in default. &lt;/P&gt;

&lt;P&gt;./D&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:19:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Raspberry-Pi-Universal-Forwarder-Bug-Report-for-splunkforwarder/m-p/494455#M84418</guid>
      <dc:creator>darrenfuller</dc:creator>
      <dc:date>2020-09-30T05:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Raspberry Pi Universal Forwarder Bug Report for splunkforwarder-8.0.3-a6754d8441bf-Linux-arm.tgz:</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Raspberry-Pi-Universal-Forwarder-Bug-Report-for-splunkforwarder/m-p/494456#M84419</link>
      <description>&lt;P&gt;You're right, but ewwww, that's expected behaviour?&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 18:19:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Raspberry-Pi-Universal-Forwarder-Bug-Report-for-splunkforwarder/m-p/494456#M84419</guid>
      <dc:creator>BongoTheWhippet</dc:creator>
      <dc:date>2020-05-06T18:19:38Z</dc:date>
    </item>
  </channel>
</rss>

