<?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 Why aren't my logs being forwarded for indexing by my forwarders? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Why-aren-t-my-logs-being-forwarded-for-indexing-by-my-forwarders/m-p/369362#M13590</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Summary&lt;/STRONG&gt;&lt;BR /&gt;
Not all logs are being forwarded for indexing by my splunkforwarders.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Situation&lt;/STRONG&gt;&lt;BR /&gt;
I have 4 instances that run 3 processes I am interesting in.&lt;BR /&gt;
Each process outputs logs that I am forwarding to Splunk via a splunkforwarder on the instance.&lt;BR /&gt;
These logs are rotated by logrotate.d.&lt;BR /&gt;
On some instances all logs are being forwarded, on some instances only some logs are being forwarded. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Problems&lt;/STRONG&gt;&lt;BR /&gt;
I believe the relevant error from the logs is this one (others below):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunkd.log:09-22-2017 01:30:04.522 +0000 ERROR TailReader - File will not be read, is too small to match seekptr checksum (file=/home/ubuntu/logs/json-bowman-&amp;lt;myserver&amp;gt;1-bowman-worker_search-1.log). Last time we saw this initcrc, filename was different. You may wish to use larger initCrcLen for this sourcetype, or a CRC salt on this source. Consult the documentation or file a support case online at &lt;A href="http://www.splunk.com/page/submit_issue" target="test_blank"&gt;http://www.splunk.com/page/submit_issue&lt;/A&gt; for more info.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Possible Solutions?&lt;/STRONG&gt;&lt;BR /&gt;
- Increase the initCrcLen?&lt;BR /&gt;
- WHAT ELSE SHOULD I TRY?&lt;BR /&gt;
- DO THE OTHER ERRORS IN THE LOG MATTER (ERROR JsonLineBreaker or ERROR TcpOutputProc) &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Reference&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Splunk Forwarder Config&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Env=prodb|Role=bowman|root@bowman-&amp;lt;myserver&amp;gt;1:/opt/splunkforwarder/etc/system/local# cat inputs.conf
[default]
host = bowman-&amp;lt;myserver&amp;gt;1

[monitor:///home/ubuntu/logs/json-bowman-&amp;lt;myserver&amp;gt;1*.log]
disabled = 0
sourcetype = boeinglogjson
index = prod-boeing

Env=prodb|Role=bowman|root@bowman-&amp;lt;myserver&amp;gt;1:/opt/splunkforwarder/etc/system/local# cat outputs.conf
[tcpout]
defaultGroup = default-autolb-group

[tcpout:default-autolb-group]
server = splunk.myotherserver.com:9997

[tcpout-server://splunk.myotherserver.com:9997]
Env=prodb|Role=bowman|root@bowman-&amp;lt;myserver&amp;gt;1:/opt/splunkforwarder/etc/system/local# cat props.conf
TRUNCATE = 2000000

[boeinglogjson]
INDEXED_EXTRACTIONS = json
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
TIMESTAMP_FIELDS = info.created
TIME_FORMAT = %Y-%m-%d %H:%M:%S.%3Q
category = Custom
disabled = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Other errors from Splunk Logs&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Env=prodb|Role=bowman|root@bowman-&amp;lt;myserver&amp;gt;1:/opt/splunkforwarder/var/log/splunk# grep ERROR *.log
splunkd.log:09-21-2017 23:44:53.585 +0000 ERROR TcpOutputProc - LightWeightForwarder/UniversalForwarder not configured. Please configure outputs.conf.
splunkd.log:09-22-2017 01:30:04.522 +0000 ERROR TailReader - File will not be read, is too small to match seekptr checksum (file=/home/ubuntu/logs/json-bowman-&amp;lt;myserver&amp;gt;1-bowman-worker_booking-1.log). Last time we saw this initcrc, filename was different. You may wish to use larger initCrcLen for this sourcetype, or a CRC salt on this source. Consult the documentation or file a support case online at &lt;A href="http://www.splunk.com/page/submit_issue" target="test_blank"&gt;http://www.splunk.com/page/submit_issue&lt;/A&gt; for more info.
splunkd.log:09-22-2017 01:30:04.522 +0000 ERROR TailReader - File will not be read, is too small to match seekptr checksum (file=/home/ubuntu/logs/json-bowman-&amp;lt;myserver&amp;gt;1-bowman-worker_search-1.log). Last time we saw this initcrc, filename was different. You may wish to use larger initCrcLen for this sourcetype, or a CRC salt on this source. Consult the documentation or file a support case online at &lt;A href="http://www.splunk.com/page/submit_issue" target="test_blank"&gt;http://www.splunk.com/page/submit_issue&lt;/A&gt; for more info.
splunkd.log:09-26-2017 08:51:46.621 +0000 ERROR JsonLineBreaker - JSON StreamId:11681658046189288813 had parsing error:String value too long - data_source="/home/ubuntu/logs/json-bowman-&amp;lt;myserver&amp;gt;1-bowman-worker_default-1.log", data_host="bowman-&amp;lt;myserver&amp;gt;1", data_sourcetype="boeinglogjson"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Example logrotate.d conf..&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/&amp;lt;log file path and name&amp;gt;/
{
  size 250M
  missingok
  rotate 3
  compress
  delaycompress
  notifempty
  create 664 ubuntu ubuntu
  su ubuntu ubuntu
  sharedscripts
  postrotate
  service bowman-worker_booking-1 restart
  endscript
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 28 Sep 2017 21:34:28 GMT</pubDate>
    <dc:creator>markconlin</dc:creator>
    <dc:date>2017-09-28T21:34:28Z</dc:date>
    <item>
      <title>Why aren't my logs being forwarded for indexing by my forwarders?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-aren-t-my-logs-being-forwarded-for-indexing-by-my-forwarders/m-p/369362#M13590</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Summary&lt;/STRONG&gt;&lt;BR /&gt;
Not all logs are being forwarded for indexing by my splunkforwarders.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Situation&lt;/STRONG&gt;&lt;BR /&gt;
I have 4 instances that run 3 processes I am interesting in.&lt;BR /&gt;
Each process outputs logs that I am forwarding to Splunk via a splunkforwarder on the instance.&lt;BR /&gt;
These logs are rotated by logrotate.d.&lt;BR /&gt;
On some instances all logs are being forwarded, on some instances only some logs are being forwarded. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Problems&lt;/STRONG&gt;&lt;BR /&gt;
I believe the relevant error from the logs is this one (others below):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunkd.log:09-22-2017 01:30:04.522 +0000 ERROR TailReader - File will not be read, is too small to match seekptr checksum (file=/home/ubuntu/logs/json-bowman-&amp;lt;myserver&amp;gt;1-bowman-worker_search-1.log). Last time we saw this initcrc, filename was different. You may wish to use larger initCrcLen for this sourcetype, or a CRC salt on this source. Consult the documentation or file a support case online at &lt;A href="http://www.splunk.com/page/submit_issue" target="test_blank"&gt;http://www.splunk.com/page/submit_issue&lt;/A&gt; for more info.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Possible Solutions?&lt;/STRONG&gt;&lt;BR /&gt;
- Increase the initCrcLen?&lt;BR /&gt;
- WHAT ELSE SHOULD I TRY?&lt;BR /&gt;
- DO THE OTHER ERRORS IN THE LOG MATTER (ERROR JsonLineBreaker or ERROR TcpOutputProc) &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Reference&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Splunk Forwarder Config&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Env=prodb|Role=bowman|root@bowman-&amp;lt;myserver&amp;gt;1:/opt/splunkforwarder/etc/system/local# cat inputs.conf
[default]
host = bowman-&amp;lt;myserver&amp;gt;1

[monitor:///home/ubuntu/logs/json-bowman-&amp;lt;myserver&amp;gt;1*.log]
disabled = 0
sourcetype = boeinglogjson
index = prod-boeing

Env=prodb|Role=bowman|root@bowman-&amp;lt;myserver&amp;gt;1:/opt/splunkforwarder/etc/system/local# cat outputs.conf
[tcpout]
defaultGroup = default-autolb-group

[tcpout:default-autolb-group]
server = splunk.myotherserver.com:9997

[tcpout-server://splunk.myotherserver.com:9997]
Env=prodb|Role=bowman|root@bowman-&amp;lt;myserver&amp;gt;1:/opt/splunkforwarder/etc/system/local# cat props.conf
TRUNCATE = 2000000

[boeinglogjson]
INDEXED_EXTRACTIONS = json
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
TIMESTAMP_FIELDS = info.created
TIME_FORMAT = %Y-%m-%d %H:%M:%S.%3Q
category = Custom
disabled = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Other errors from Splunk Logs&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Env=prodb|Role=bowman|root@bowman-&amp;lt;myserver&amp;gt;1:/opt/splunkforwarder/var/log/splunk# grep ERROR *.log
splunkd.log:09-21-2017 23:44:53.585 +0000 ERROR TcpOutputProc - LightWeightForwarder/UniversalForwarder not configured. Please configure outputs.conf.
splunkd.log:09-22-2017 01:30:04.522 +0000 ERROR TailReader - File will not be read, is too small to match seekptr checksum (file=/home/ubuntu/logs/json-bowman-&amp;lt;myserver&amp;gt;1-bowman-worker_booking-1.log). Last time we saw this initcrc, filename was different. You may wish to use larger initCrcLen for this sourcetype, or a CRC salt on this source. Consult the documentation or file a support case online at &lt;A href="http://www.splunk.com/page/submit_issue" target="test_blank"&gt;http://www.splunk.com/page/submit_issue&lt;/A&gt; for more info.
splunkd.log:09-22-2017 01:30:04.522 +0000 ERROR TailReader - File will not be read, is too small to match seekptr checksum (file=/home/ubuntu/logs/json-bowman-&amp;lt;myserver&amp;gt;1-bowman-worker_search-1.log). Last time we saw this initcrc, filename was different. You may wish to use larger initCrcLen for this sourcetype, or a CRC salt on this source. Consult the documentation or file a support case online at &lt;A href="http://www.splunk.com/page/submit_issue" target="test_blank"&gt;http://www.splunk.com/page/submit_issue&lt;/A&gt; for more info.
splunkd.log:09-26-2017 08:51:46.621 +0000 ERROR JsonLineBreaker - JSON StreamId:11681658046189288813 had parsing error:String value too long - data_source="/home/ubuntu/logs/json-bowman-&amp;lt;myserver&amp;gt;1-bowman-worker_default-1.log", data_host="bowman-&amp;lt;myserver&amp;gt;1", data_sourcetype="boeinglogjson"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Example logrotate.d conf..&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/&amp;lt;log file path and name&amp;gt;/
{
  size 250M
  missingok
  rotate 3
  compress
  delaycompress
  notifempty
  create 664 ubuntu ubuntu
  su ubuntu ubuntu
  sharedscripts
  postrotate
  service bowman-worker_booking-1 restart
  endscript
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Sep 2017 21:34:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-aren-t-my-logs-being-forwarded-for-indexing-by-my-forwarders/m-p/369362#M13590</guid>
      <dc:creator>markconlin</dc:creator>
      <dc:date>2017-09-28T21:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why aren't my logs being forwarded for indexing by my forwarders?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-aren-t-my-logs-being-forwarded-for-indexing-by-my-forwarders/m-p/369363#M13591</link>
      <description>&lt;P&gt;Hi @markconlin,&lt;/P&gt;

&lt;P&gt;If you have same header (First 256 bytes) in all files which splunkforwarder is trying to read then please change inputs.conf on your forwarder something like this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///home/ubuntu/logs/json-bowman-&amp;lt;myserver&amp;gt;1*.log]
 disabled = 0
crcSalt = &amp;lt;SOURCE&amp;gt;
 sourcetype = boeinglogjson
 index = prod-boeing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Additionally props.conf which you have defined on splunk universal forwarder will not work because splunk universal forwarder will not do any parsing those parsing will be done by either heavy forwarder (if you are using it) or indexer. So apply that props.conf configuration on heavy forwarder or indexer whichever comes first in your environment.&lt;/P&gt;

&lt;P&gt;I hope this helps.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Harshil&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 03:42:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-aren-t-my-logs-being-forwarded-for-indexing-by-my-forwarders/m-p/369363#M13591</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-09-29T03:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why aren't my logs being forwarded for indexing by my forwarders?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-aren-t-my-logs-being-forwarded-for-indexing-by-my-forwarders/m-p/369364#M13592</link>
      <description>&lt;P&gt;@harsmarvania57 I have concerns with crcSalt and log rotate, because of this comment in the Splunk documentation:&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Be cautious about using this attribute with rolling log files; it could lead to the log file being re-indexed &lt;BR /&gt;
   after it has rolled.&lt;/EM&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 13:19:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-aren-t-my-logs-being-forwarded-for-indexing-by-my-forwarders/m-p/369364#M13592</guid>
      <dc:creator>markconlin</dc:creator>
      <dc:date>2017-09-29T13:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why aren't my logs being forwarded for indexing by my forwarders?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-aren-t-my-logs-being-forwarded-for-indexing-by-my-forwarders/m-p/369365#M13593</link>
      <description>&lt;P&gt;In this case you need to increase &lt;CODE&gt;initCrcLength&lt;/CODE&gt; so that splunk forwarder will indentify that these are different file. It looks like in current scenario first 256 bytes of all your log files are same.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 13:28:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-aren-t-my-logs-being-forwarded-for-indexing-by-my-forwarders/m-p/369365#M13593</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-09-29T13:28:55Z</dc:date>
    </item>
  </channel>
</rss>

