This can happen for one of two reasons, depending on the version of Splunk you are running.
If you are running Splunk 4.3.3:
There is a core bug in Splunk 4.3.3 (reference SPL-52862) that causes scheduled search "sos_splunk_instances_info" to fail with an error of this kind:
Encountered an error while reading file '/opt/splunk/var/run/splunk/dispatchtmp/subsearch_1341344801.10_1341344802.1/prereport_0.csv.gz'.
This issue will be fixed in Splunk 4.3.4. SoS 2.2 will have a modified version of the "sos_splunk_instances_info" to overcome this problem until 4.3.4 comes out, but if you want to fix the lookup table manually in the meantime, follow these instructions:
Go to http[s]://[splunkweb hostname]:[splunkweb port]/en-US/app/sos/flashtimeline
Run the following search:
| serverinfo
| stats values(*) AS *
| append [entity namespace=None properties/server/license]
| eval title=_raw
| eval master_uri=if(title=="master_uri",entityContent,"")
| eval license_role=case(master_uri=="self","License master",like(master_uri,"http%"),"License slave, reporting to master_uri : \"".master_uri."\"",isnull(master_uri),"n/a")
| append [entity namespace=None properties/authentication/authentication]
| eval title=_raw
| eval auth_method=if(title=="authType",entityContent,"")
| eval auth_method=case(isnull(auth_method),"not available",auth_method=="Splunk","Splunk built-in",isnotnull(auth_method),auth_method)
| appendcols [entity namespace=None server/info]
| appendcols [entity namespace=None server/settings]
| search source=serverinfo OR license_role!="" OR auth_method!=""
| fields sos_server cpu_count host_fqdn total_phys_mem_gb version build os_name cpu_arch SPLUNK_HOME SPLUNK_DB license_role auth_method
| fields - _time _raw
| stats values(*) AS * by sos_server
| outputlookup createinapp=t splunk_instances_info
This should heal the $SPLUNK_HOME/etc/apps/sos/lookups/splunk_instances_info.csv lookup table. The problem will go away for good once you upgrade to SoS 2.2 or Splunk 4.3.4.
If you are running Splunk 4.2, 4.2.1 or 4.2.2:
This error can be caused by core Splunk bug SPL-40222 which causes lookup files dynamically created by scheduled searches to be always gzipped, even when it's explicitly specified otherwise.
The result is that in Splunk version 4.2, 4.2.1 and 4.2.2 the lookup file $SPLUNK_HOME/etc/apps/sos/lookups/splunk_instances_info.csv.gz is created when the app actually expects splunk_instances_info.csv .
The fix is to upgrade Splunk to 4.2.3 or higher.
If, however, you find yourself unable to upgrade, there is a simple work-around. In $SPLUNK_HOME/etc/apps/sos/local/transforms.conf (create this directory if it doesn't exist), add the following stanza :
[splunk_instances_info]
filename = splunk_instances_info.csv.gz
This should fix the problem without even needing a Splunk restart. Remember to back out this change once you upgrade to 4.2.3 or higher, though!
... View more