<?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: in splunkd.log a lot of warnings : DispatchCommand - could not read metadata file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/in-splunkd-log-a-lot-of-warnings-DispatchCommand-could-not-read/m-p/11284#M177072</link>
    <description>&lt;P&gt;I found a solution to my specific breed of the problem. After toying around with the Splunk_SA_CIM and SplunkAppForWebAnalytics, which both define the Web datamodel, my log quickly filled with these messages:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;08-14-2016 09:40:58.919 +0200 WARN  DispatchSearchMetadata - could not read metadata file: /opt/splunk/var/run/splunk/dispatch/scheduler__nobody__SplunkAppForWebAnalytics__RMD5cd22bc27c7bb1b18_at_1471146000_98/metadata.csv
08-14-2016 09:40:58.919 +0200 WARN  DispatchSearchMetadata - could not read metadata file: /opt/splunk/var/run/splunk/dispatch/scheduler__nobody__SplunkAppForWebAnalytics__RMD56b5a72de0a2a981e_at_1471146000_97/metadata.csv
08-14-2016 09:41:28.922 +0200 WARN  DispatchSearchMetadata - could not read metadata file: /opt/splunk/var/run/splunk/dispatch/scheduler__nobody__SplunkAppForWebAnalytics__RMD5cd22bc27c7bb1b18_at_1471146000_98/metadata.csv
08-14-2016 09:41:28.923 +0200 WARN  DispatchSearchMetadata - could not read metadata file: /opt/splunk/var/run/splunk/dispatch/scheduler__nobody__SplunkAppForWebAnalytics__RMD56b5a72de0a2a981e_at_1471146000_97/metadata.csv
08-14-2016 09:41:58.918 +0200 WARN  DispatchSearchMetadata - could not read metadata file: /opt/splunk/var/run/splunk/dispatch/scheduler__nobody__SplunkAppForWebAnalytics__RMD5cd22bc27c7bb1b18_at_1471146000_98/metadata.csv
08-14-2016 09:41:58.918 +0200 WARN  DispatchSearchMetadata - could not read metadata file: /opt/splunk/var/run/splunk/dispatch/scheduler__nobody__SplunkAppForWebAnalytics__RMD56b5a72de0a2a981e_at_1471146000_97/metadata.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The reason for this error message in my special case was, by often restarting the splunk service, it was unable to finish correctly writing out the dispatch data and just left corrupt (empty) files there instead.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ll scheduler__nobody__SplunkAppForWebAnalytics__RMD56b5a72de0a2a981e_at_1471146000_97/
total 36K
prw------- 1 root root    0 Aug 14 05:40 alive.token|
-rw------- 1 root root    0 Aug 14 05:40 args.txt
-rw------- 1 root root    0 Aug 14 05:53 audited
-rw------- 1 root root  28K Aug 14 05:40 info.csv
-rw------- 1 root root    0 Aug 14 05:40 metadata.csv
-rw------- 1 root root    0 Aug 14 05:40 peers.csv
-rw------- 1 root root    0 Aug 14 05:40 pipeline_sets
-rw------- 1 root root    0 Aug 14 05:40 request.csv
-rw------- 1 root root    0 Aug 14 05:40 search.log
-rw------- 1 root root 6.8K Aug 14 05:40 status.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After removing the corrupt directories, the error messages went away with them.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 10:38:03 GMT</pubDate>
    <dc:creator>fleXible</dc:creator>
    <dc:date>2020-09-29T10:38:03Z</dc:date>
    <item>
      <title>in splunkd.log a lot of warnings : DispatchCommand - could not read metadata file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/in-splunkd-log-a-lot-of-warnings-DispatchCommand-could-not-read/m-p/11281#M177069</link>
      <description>&lt;P&gt;In my splunkd.log (v4.1) I have a lot of warnings like these :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;04-13-2010 00:05:19.676 WARN  DispatchCommand - could not read metadata file: /opt/splunk/var/run/splunk/dispatch/1271116501.1/metadata.csv
04-13-2010 00:05:19.677 WARN  DispatchCommand - could not read metadata file: /opt/splunk/var/run/splunk/dispatch/1271116742.1/metadata.csv
04-13-2010 00:13:50.395 WARN  DispatchCommand - could not read metadata file: /opt/splunk/var/run/splunk/dispatch/1271117581.1/metadata.csv
04-13-2010 00:13:50.395 WARN  DispatchCommand - could not read metadata file: /opt/splunk/var/run/splunk/dispatch/1271117162.1/metadata.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What could be the reason for these warnings?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2010 07:18:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/in-splunkd-log-a-lot-of-warnings-DispatchCommand-could-not-read/m-p/11281#M177069</guid>
      <dc:creator>imrago</dc:creator>
      <dc:date>2010-04-13T07:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: in splunkd.log a lot of warnings : DispatchCommand - could not read metadata file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/in-splunkd-log-a-lot-of-warnings-DispatchCommand-could-not-read/m-p/11282#M177070</link>
      <description>&lt;P&gt;Finally I have found the underlaying problem. From the cron the searches in splunk where executed as root user, and the owner of those files in  /opt/splunk/var/run/splunk/dispatch/.... was root, which in turn caused the error messages in previous post.&lt;/P&gt;

&lt;P&gt;Changed in cron root to splunk and the errors disappeared.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2010 13:40:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/in-splunkd-log-a-lot-of-warnings-DispatchCommand-could-not-read/m-p/11282#M177070</guid>
      <dc:creator>imrago</dc:creator>
      <dc:date>2010-04-15T13:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: in splunkd.log a lot of warnings : DispatchCommand - could not read metadata file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/in-splunkd-log-a-lot-of-warnings-DispatchCommand-could-not-read/m-p/11283#M177071</link>
      <description>&lt;P&gt;This is one explanation, another is that there is a known bug in 4.1.2 &amp;amp; 4.1.3 where Splunk tries to access a results file before it is actually created.  It's not really anything to be concerned about, unless you're actually noticing a problem with loading search results or accessing saved results objects.&lt;/P&gt;

&lt;P&gt;It will be resolved in an upcoming release&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2010 22:49:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/in-splunkd-log-a-lot-of-warnings-DispatchCommand-could-not-read/m-p/11283#M177071</guid>
      <dc:creator>Mick</dc:creator>
      <dc:date>2010-06-22T22:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: in splunkd.log a lot of warnings : DispatchCommand - could not read metadata file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/in-splunkd-log-a-lot-of-warnings-DispatchCommand-could-not-read/m-p/11284#M177072</link>
      <description>&lt;P&gt;I found a solution to my specific breed of the problem. After toying around with the Splunk_SA_CIM and SplunkAppForWebAnalytics, which both define the Web datamodel, my log quickly filled with these messages:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;08-14-2016 09:40:58.919 +0200 WARN  DispatchSearchMetadata - could not read metadata file: /opt/splunk/var/run/splunk/dispatch/scheduler__nobody__SplunkAppForWebAnalytics__RMD5cd22bc27c7bb1b18_at_1471146000_98/metadata.csv
08-14-2016 09:40:58.919 +0200 WARN  DispatchSearchMetadata - could not read metadata file: /opt/splunk/var/run/splunk/dispatch/scheduler__nobody__SplunkAppForWebAnalytics__RMD56b5a72de0a2a981e_at_1471146000_97/metadata.csv
08-14-2016 09:41:28.922 +0200 WARN  DispatchSearchMetadata - could not read metadata file: /opt/splunk/var/run/splunk/dispatch/scheduler__nobody__SplunkAppForWebAnalytics__RMD5cd22bc27c7bb1b18_at_1471146000_98/metadata.csv
08-14-2016 09:41:28.923 +0200 WARN  DispatchSearchMetadata - could not read metadata file: /opt/splunk/var/run/splunk/dispatch/scheduler__nobody__SplunkAppForWebAnalytics__RMD56b5a72de0a2a981e_at_1471146000_97/metadata.csv
08-14-2016 09:41:58.918 +0200 WARN  DispatchSearchMetadata - could not read metadata file: /opt/splunk/var/run/splunk/dispatch/scheduler__nobody__SplunkAppForWebAnalytics__RMD5cd22bc27c7bb1b18_at_1471146000_98/metadata.csv
08-14-2016 09:41:58.918 +0200 WARN  DispatchSearchMetadata - could not read metadata file: /opt/splunk/var/run/splunk/dispatch/scheduler__nobody__SplunkAppForWebAnalytics__RMD56b5a72de0a2a981e_at_1471146000_97/metadata.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The reason for this error message in my special case was, by often restarting the splunk service, it was unable to finish correctly writing out the dispatch data and just left corrupt (empty) files there instead.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ll scheduler__nobody__SplunkAppForWebAnalytics__RMD56b5a72de0a2a981e_at_1471146000_97/
total 36K
prw------- 1 root root    0 Aug 14 05:40 alive.token|
-rw------- 1 root root    0 Aug 14 05:40 args.txt
-rw------- 1 root root    0 Aug 14 05:53 audited
-rw------- 1 root root  28K Aug 14 05:40 info.csv
-rw------- 1 root root    0 Aug 14 05:40 metadata.csv
-rw------- 1 root root    0 Aug 14 05:40 peers.csv
-rw------- 1 root root    0 Aug 14 05:40 pipeline_sets
-rw------- 1 root root    0 Aug 14 05:40 request.csv
-rw------- 1 root root    0 Aug 14 05:40 search.log
-rw------- 1 root root 6.8K Aug 14 05:40 status.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After removing the corrupt directories, the error messages went away with them.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:38:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/in-splunkd-log-a-lot-of-warnings-DispatchCommand-could-not-read/m-p/11284#M177072</guid>
      <dc:creator>fleXible</dc:creator>
      <dc:date>2020-09-29T10:38:03Z</dc:date>
    </item>
  </channel>
</rss>

