<?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 to exclude/ignore writing an error to splunkd.log in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-ignore-writing-an-error-to-splunkd-log/m-p/495862#M84548</link>
    <description>&lt;P&gt;Hi nareshinsvu,&lt;BR /&gt;
if you want, you can filter events before indexing (see &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/Forwarding/Routeandfilterdatad"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/Forwarding/Routeandfilterdatad&lt;/A&gt; ) but why you want this?&lt;BR /&gt;
I think that all the information can be useful to debug a problem when needed, if you want to exclude them fron your searches use a NOT clause in yout search so you can exclude them!&lt;/P&gt;

&lt;P&gt;Anyway to filter these events, you can use something like this:&lt;BR /&gt;
In &lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_json]
TRANSFORMS-null= setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In &lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = ERROR JsonLineBreaker - JSON StreamId:\d+ had parsing error:Unexpected character
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If instead you want to exclude these events from your searches, see something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search NOT ("ERROR JsonLineBreaker - JSON StreamId:" "had parsing error:Unexpected character")
| ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2019 06:57:55 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2019-09-30T06:57:55Z</dc:date>
    <item>
      <title>How to exclude/ignore writing an error to splunkd.log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-ignore-writing-an-error-to-splunkd-log/m-p/495861#M84547</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Is there a way to tell splunk not to write a particular error message to splunkd.log?&lt;/P&gt;

&lt;P&gt;I am getting hit by below error continuously and I can't fix JSON inputs which are coming from external source. &lt;/P&gt;

&lt;P&gt;My splunkd.log has only these lines and nothing else.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;09-30-2019 14:45:25.717 +1000 ERROR JsonLineBreaker - JSON StreamId:10924785040871047960 had parsing error:Unexpected character: '-' - .......................
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My props.conf is like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_json]
SEDCMD-strip_prefix = s/^[^{]+//g
INDEXED_EXTRACTIONS=JSON
NO_BINARY_CHECK = true
category = Custom
description = my_json_custom
disabled = false
pulldown_type = true
DATETIME_CONFIG = CURRENT
TRUNCATE = 100000
MAX_EVENTS = 10000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Sep 2019 04:51:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-ignore-writing-an-error-to-splunkd-log/m-p/495861#M84547</guid>
      <dc:creator>nareshinsvu</dc:creator>
      <dc:date>2019-09-30T04:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude/ignore writing an error to splunkd.log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-ignore-writing-an-error-to-splunkd-log/m-p/495862#M84548</link>
      <description>&lt;P&gt;Hi nareshinsvu,&lt;BR /&gt;
if you want, you can filter events before indexing (see &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/Forwarding/Routeandfilterdatad"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/Forwarding/Routeandfilterdatad&lt;/A&gt; ) but why you want this?&lt;BR /&gt;
I think that all the information can be useful to debug a problem when needed, if you want to exclude them fron your searches use a NOT clause in yout search so you can exclude them!&lt;/P&gt;

&lt;P&gt;Anyway to filter these events, you can use something like this:&lt;BR /&gt;
In &lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_json]
TRANSFORMS-null= setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In &lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = ERROR JsonLineBreaker - JSON StreamId:\d+ had parsing error:Unexpected character
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If instead you want to exclude these events from your searches, see something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search NOT ("ERROR JsonLineBreaker - JSON StreamId:" "had parsing error:Unexpected character")
| ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 06:57:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-ignore-writing-an-error-to-splunkd-log/m-p/495862#M84548</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-09-30T06:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude/ignore writing an error to splunkd.log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-ignore-writing-an-error-to-splunkd-log/m-p/495863#M84549</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;/P&gt;

&lt;P&gt;You got my question wrong. Below is my splunkd.log file on forwarders. Not the source file content being indexed&lt;/P&gt;

&lt;P&gt;I am getting these lines in the splunk logs while indexing JSON data (from my source data which is a mix of JSON and non-JSON). I am successfully getting my JSON data indexed. But my splunkd.log is continuously filled with these lines which I want to avoid.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;09-30-2019 14:45:25.717 +1000 ERROR JsonLineBreaker - JSON StreamId:10924785040871047960 had parsing error:Unexpected character: '-' - .......................
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Sep 2019 07:10:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-ignore-writing-an-error-to-splunkd-log/m-p/495863#M84549</guid>
      <dc:creator>nareshinsvu</dc:creator>
      <dc:date>2019-09-30T07:10:16Z</dc:date>
    </item>
  </channel>
</rss>

