<?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: All files are not indexing in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/All-files-are-not-indexing/m-p/48423#M9181</link>
    <description>&lt;P&gt;Hi msona,&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;I think the application name is wrong.&lt;BR /&gt;
Application name can only contain the following characters: a-zA-Z0-9_-&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Please check your splunkd.log (C:\Program Files\Splunk\var\log\splunk\splunkd.log)&lt;BR /&gt;If there are error messages such as bellow, please add the setting in configuration: "&lt;CODE&gt;crcSalt = &amp;lt;SOURCE&amp;gt;&lt;/CODE&gt;" In inputs.conf&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;CODE&gt;
02-28-2011 15:00:00.000 ERROR TailingProcessor - Ignoring path due to: File will not be read, seekptr checksum did not match (file=XXXXX).  Last time we saw this initcrc, filename was different.  You may wish to use 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" rel="nofollow"&gt;http://www.splunk.com/page/submit_issue&lt;/A&gt; for more info.
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;*Note: For more information, please see: &lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Monitorfilesanddirectories#Monitor_syntax_and_examples" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/latest/Admin/Monitorfilesanddirectories#Monitor_syntax_and_examples&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Feb 2011 14:51:27 GMT</pubDate>
    <dc:creator>Hajime</dc:creator>
    <dc:date>2011-02-28T14:51:27Z</dc:date>
    <item>
      <title>All files are not indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/All-files-are-not-indexing/m-p/48416#M9174</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;

&lt;P&gt;I have basic 4 types of files. 
under &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   C:\Program Files\Splunk\etc\apps\my logs\home_logs\KLZ\host1\

    abck_KLZ_CPU_110213.csv
    abck01_KLZ_Disk_110213.csv
    abck01_KLZ_Network_110213.csv
    abck01_KLZ_Swap_Rate_110213.csv
......

    C:\Program Files\Splunk\etc\apps\my logs\home_logs\KLZ\host2\

    defg_KLZ_CPU_110213.csv
    defg01_KLZ_Disk_110213.csv
    defg01_KLZ_Network_110213.csv
    defg01_KLZ_Swap_Rate_110213.csv
......
.....
.....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There are lots of host and its corrosponding files.
I wanted 4 types of sourcetype ie. &lt;CODE&gt;network, cpu, swap-rate&lt;/CODE&gt; and &lt;CODE&gt;disk&lt;/CODE&gt;.
and host name should be &lt;CODE&gt;host1,host2,....&lt;/CODE&gt;
for this my conf files are as below:
inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:C:\Program Files\Splunk\etc\apps\my logs\home_logs\..\..\*]
disabled = false
index = my_indx
host_segment = 8
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;CHARSET=SHIFT-JIS 

[source::...Disk...]
sourcetype = disk

[source::...CPU...]
sourcetype = cpu

[source::...Network...]
sourcetype = network

[source::...Swap_Rate...]
sourcetype = swap-rate
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The result using above confs.
Only 1 directory getting indexed. and for other directories only 1 file (same sourcetype) getting indexed. Other files are not indexed.&lt;/P&gt;

&lt;P&gt;Hope you understand my problem.
Your help will be appreciated.&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2011 15:37:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/All-files-are-not-indexing/m-p/48416#M9174</guid>
      <dc:creator>msona</dc:creator>
      <dc:date>2011-02-22T15:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: All files are not indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/All-files-are-not-indexing/m-p/48417#M9175</link>
      <description>&lt;P&gt;Hi msona,&lt;/P&gt;

&lt;P&gt;What do you think of this approach:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;inputs.conf
-----------
[monitor:C:\Program Files\Splunk\etc\apps\my logs\home_logs\...]
disabled = false
index = my_indx


props.conf
----------
[source::C:\Program Files\Splunk\etc\apps\my logs\home_logs\...]
TRANSFORMS-checkpath = sourcetype-transform, host-transform


transforms.conf
---------------
[sourcetype-transform]
SOURCE_KEY = MetaData:Source

#         defg _ KLZ _  CPU _110213.csv
REGEX= .*/[^_]+_[^_]+_([^_\d]+).*\.csv

# just for the case the regex doesn't match
#DEFAULT_VALUE = sourcetype::default-sourcetype

DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::$1



[host-transform]
SOURCE_KEY = MetaData:Source

#           defg _ KLZ _  CPU _110213.csv
REGEX= .*/([^_])+_[^_]+_[^_\d]+.*\.csv

# just for the case the regex doesn't match
#DEFAULT_VALUE = host::default-host

DEST_KEY = MetaData:Host
FORMAT = sourcetype::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;obs&lt;/STRONG&gt;: I did not test this configuration and maybe there are small errors in it.
But I want to show that you can examine the path (MetaData:Source) of your input to create or modify basic fields (source, sourcetype, host) at index time.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2011 23:50:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/All-files-are-not-indexing/m-p/48417#M9175</guid>
      <dc:creator>meno</dc:creator>
      <dc:date>2011-02-22T23:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: All files are not indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/All-files-are-not-indexing/m-p/48418#M9176</link>
      <description>&lt;P&gt;Hi meno,&lt;/P&gt;

&lt;P&gt;Thanks for the answer. &lt;BR /&gt;
I checked but its not working :(. Its taking default host and source type.&lt;BR /&gt;
I want the host as directory name and sourcetype as some part of file name.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2011 14:43:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/All-files-are-not-indexing/m-p/48418#M9176</guid>
      <dc:creator>msona</dc:creator>
      <dc:date>2011-02-23T14:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: All files are not indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/All-files-are-not-indexing/m-p/48419#M9177</link>
      <description>&lt;P&gt;for the host name I have added&lt;BR /&gt;
host_segment = 8 in the input.conf&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2011 14:52:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/All-files-are-not-indexing/m-p/48419#M9177</guid>
      <dc:creator>msona</dc:creator>
      <dc:date>2011-02-23T14:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: All files are not indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/All-files-are-not-indexing/m-p/48420#M9178</link>
      <description>&lt;P&gt;Can Anybody Help me Please ????&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2011 13:02:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/All-files-are-not-indexing/m-p/48420#M9178</guid>
      <dc:creator>msona</dc:creator>
      <dc:date>2011-02-25T13:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: All files are not indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/All-files-are-not-indexing/m-p/48421#M9179</link>
      <description>&lt;P&gt;Your posted config should work, except for the monitor.  If I understand what you're trying to accomplish, I would expect it to look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\Program Files\Splunk\etc\apps\my logs\home_logs\]
disabled = false
recursive = true
host_segment = 8
index = my_indx
crcSalt = &amp;lt;SOURCE&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;EDIT:  added crcSalt to resolve 'too small' error.&lt;/P&gt;

&lt;P&gt;This will index everything in the home_logs folder and all sub-folders.  Recursive is the default, but declaring it will help ensure there's not an override somewhere else.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2011 16:32:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/All-files-are-not-indexing/m-p/48421#M9179</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-26T16:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: All files are not indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/All-files-are-not-indexing/m-p/48422#M9180</link>
      <description>&lt;P&gt;I am getting the error while indexing:&lt;/P&gt;

&lt;P&gt;02-25-2011 19:41:58.030 ERROR TailingProcessor - Ignoring path due to: File will not be read, is too small to match seekptr checksum (file=C:\EDN\test01\kednwbs01_KLZ_Disk_110213.csv). Last time we saw this initcrc, filename was different. You may wish to use 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="_blank"&gt;http://www.splunk.com/page/submit_issue&lt;/A&gt; for more info.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:25:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/All-files-are-not-indexing/m-p/48422#M9180</guid>
      <dc:creator>msona</dc:creator>
      <dc:date>2020-09-28T09:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: All files are not indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/All-files-are-not-indexing/m-p/48423#M9181</link>
      <description>&lt;P&gt;Hi msona,&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;I think the application name is wrong.&lt;BR /&gt;
Application name can only contain the following characters: a-zA-Z0-9_-&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Please check your splunkd.log (C:\Program Files\Splunk\var\log\splunk\splunkd.log)&lt;BR /&gt;If there are error messages such as bellow, please add the setting in configuration: "&lt;CODE&gt;crcSalt = &amp;lt;SOURCE&amp;gt;&lt;/CODE&gt;" In inputs.conf&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;CODE&gt;
02-28-2011 15:00:00.000 ERROR TailingProcessor - Ignoring path due to: File will not be read, seekptr checksum did not match (file=XXXXX).  Last time we saw this initcrc, filename was different.  You may wish to use 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" rel="nofollow"&gt;http://www.splunk.com/page/submit_issue&lt;/A&gt; for more info.
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;*Note: For more information, please see: &lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Monitorfilesanddirectories#Monitor_syntax_and_examples" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/latest/Admin/Monitorfilesanddirectories#Monitor_syntax_and_examples&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2011 14:51:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/All-files-are-not-indexing/m-p/48423#M9181</guid>
      <dc:creator>Hajime</dc:creator>
      <dc:date>2011-02-28T14:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: All files are not indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/All-files-are-not-indexing/m-p/48424#M9182</link>
      <description>&lt;P&gt;I'll edit the answer to show how to add the CRC salt.  Use &lt;SOURCE&gt; as the value.&lt;/SOURCE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2011 15:49:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/All-files-are-not-indexing/m-p/48424#M9182</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-28T15:49:06Z</dc:date>
    </item>
  </channel>
</rss>

