<?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: Monitor log files with spaces in the file name in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351651#M64493</link>
    <description>&lt;P&gt;So you are not facing slowness issues on Linux server ? As mentioned by @Elsurion, you can try to set &lt;CODE&gt;CHARSET&lt;/CODE&gt; or if you want to read binary file anyway then you can set &lt;CODE&gt;NO_BINARY_CHECK = true&lt;/CODE&gt; in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;NO_BINARY_CHECK = [true|false]
* When set to true, Splunk processes binary files.
* Can only be used on the basis of [&amp;lt;sourcetype&amp;gt;], or [source::&amp;lt;source&amp;gt;],
  not [host::&amp;lt;host&amp;gt;].
* Defaults to false (binary files are ignored).
* This setting applies at input time, when data is first read by Splunk.
  The setting is used on a Splunk system that has configured inputs
  acquiring the data.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 21 Dec 2017 08:14:38 GMT</pubDate>
    <dc:creator>harsmarvania57</dc:creator>
    <dc:date>2017-12-21T08:14:38Z</dc:date>
    <item>
      <title>Monitor log files with spaces in the file name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351639#M64481</link>
      <description>&lt;P&gt;hi, &lt;/P&gt;

&lt;P&gt;I am having issues with splunk universal forwarder monitoring log files with spaces in the name . The file is a regular text file and not binary , but the forwarder is considering the file as binary &lt;/P&gt;

&lt;P&gt;Example of log file name :&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;"NMDox_PRD.EP6XWBSDE26931 Started 2017-09-14.txt"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;12-20-2017 22:55:47.122 -0800 &lt;STRONG&gt;WARN  FileClassifierManager - The file '/esc_logs/OLD/NMDox_PRD.EP6XWBSDE26931 Started 2017-09-14.txt' is invalid. Reason: binary&lt;/STRONG&gt;&lt;BR /&gt;
12-20-2017 22:55:47.123 -0800 &lt;STRONG&gt;INFO  TailReader - Ignoring file '/esc_logs/NMDox_PRD.EP6XWBSDE26931 Started 2017-09-14.txt' due to: binary&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;BR /&gt;
[monitor:///eds_logs/]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
whitelist = .txt$&lt;BR /&gt;
index = esd_prod&lt;BR /&gt;
sourcetype = esd:trace&lt;BR /&gt;
host_regex = (EP\d\w+)&lt;BR /&gt;
crcSalt = &lt;/P&gt;

&lt;P&gt;Appreciate any guidance on this problem.&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:19:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351639#M64481</guid>
      <dc:creator>nmohammed</dc:creator>
      <dc:date>2020-09-29T17:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor log files with spaces in the file name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351640#M64482</link>
      <description>&lt;P&gt;Hi @nmohammed,&lt;/P&gt;

&lt;P&gt;This problem might occur when there will be garbage character in your txt file. Can you please check file type using command &lt;CODE&gt;file NMDox_PRD.EP6XWBSDE26931 Started 2017-09-14.txt&lt;/CODE&gt; and let us know the output.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 07:09:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351640#M64482</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-12-21T07:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor log files with spaces in the file name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351641#M64483</link>
      <description>&lt;P&gt;Hi nmohammed,&lt;/P&gt;

&lt;P&gt;Can u confirm the path in the monitor stanza?&lt;BR /&gt;
In the inputs.conf it shows eds_logs whereas in the error it shows esc_logs. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:19:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351641#M64483</guid>
      <dc:creator>deepashri_123</dc:creator>
      <dc:date>2020-09-29T17:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor log files with spaces in the file name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351642#M64484</link>
      <description>&lt;P&gt;Thanks @deepashri_123&lt;/P&gt;

&lt;P&gt;file &lt;STRONG&gt;NMDox_PRD.EP6XWBSDE26931\ Started\ 2017-09-14.txt&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;NMDox_PRD.EP6XWBSDE26931 Started 2017-09-14.txt: Little-endian UTF-16 Unicode English text, with very long lines, with CRLF line terminators&lt;/P&gt;

&lt;P&gt;and the path is "esc_logs" just confirmed from inputs.conf&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 07:24:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351642#M64484</guid>
      <dc:creator>nmohammed</dc:creator>
      <dc:date>2017-12-21T07:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor log files with spaces in the file name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351643#M64485</link>
      <description>&lt;P&gt;Hi @nmohammed,&lt;BR /&gt;
Please check if you are monitoring proper file path.&lt;BR /&gt;
And if your file is not rolling file then provide crcSalt= and if it rolling which i assume is your case then provide crcSalt = abcd(any random alphabets).&lt;BR /&gt;
Also try disabling and enabling input after changes and check if it works.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 07:27:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351643#M64485</guid>
      <dc:creator>nikita_p</dc:creator>
      <dc:date>2017-12-21T07:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor log files with spaces in the file name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351644#M64486</link>
      <description>&lt;P&gt;hey, can you give us sample log file name that you want to monitor and also the log files which you do not want to monitor!&lt;BR /&gt;
Also you can write make use of &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;blacklist = &amp;lt;regular expression&amp;gt;
* If set, files from this input are NOT monitored if their path matches the
  specified regex.
* Takes precedence over the deprecated _blacklist setting, which functions
  the same way.
* If a file matches the regexes in both the blacklist and whitelist settings,
  the file is NOT monitored. Blacklists take precedence over whitelists.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Dec 2017 07:29:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351644#M64486</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2017-12-21T07:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor log files with spaces in the file name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351645#M64487</link>
      <description>&lt;P&gt;NMDox_PRD.EP6XWBSDE26931 Started 2017-09-14.txt is the example of log file which I want to monitor.  All the files are of same type in the directory .. only the number in the log file name after &lt;STRONG&gt;BSDE&lt;/STRONG&gt; changes. &lt;/P&gt;

&lt;P&gt;Also the date stamp in the log file of course.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 07:33:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351645#M64487</guid>
      <dc:creator>nmohammed</dc:creator>
      <dc:date>2017-12-21T07:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor log files with spaces in the file name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351646#M64488</link>
      <description>&lt;P&gt;hi @harsmarvania57&lt;/P&gt;

&lt;P&gt;file NMDox_PRD.EP6XWBSDE26931\ Started\ 2017-09-14.txt&lt;/P&gt;

&lt;P&gt;NMDox_PRD.EP6XWBSDE26931 Started 2017-09-14.txt: Little-endian UTF-16 Unicode English text, with very long lines, with CRLF line terminators&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 07:35:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351646#M64488</guid>
      <dc:creator>nmohammed</dc:creator>
      <dc:date>2017-12-21T07:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor log files with spaces in the file name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351647#M64489</link>
      <description>&lt;P&gt;Looks like binary, can you please try to read log files using less command &lt;CODE&gt;less NMDox_PRD.EP6XWBSDE26931 Started 2017-09-14.txt&lt;/CODE&gt; ? If it's binary then it will ask you that file is in binary continue anyway ? After that give yes and try to find those special/garbage character in that file.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 07:39:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351647#M64489</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-12-21T07:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor log files with spaces in the file name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351648#M64490</link>
      <description>&lt;P&gt;Those log files are written by an .NET application running on Windows onto a CIFS share.  I have mounted the CIFS share on a linux server, I had issues of extreme slowness and lag monitoring logs directly from CIFS shares directly using a universal forwarder running on Windows server. &lt;/P&gt;

&lt;P&gt;Now there 100's of such logs files that need to be monitored and written continuously. &lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 07:44:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351648#M64490</guid>
      <dc:creator>nmohammed</dc:creator>
      <dc:date>2017-12-21T07:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor log files with spaces in the file name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351649#M64491</link>
      <description>&lt;P&gt;Try this!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;whitelist = NMDox\_PRD\.EP6XWBSDE\d{5}\sStarted\s\d{4}-d{2}-\d{2}.txt$
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Dec 2017 07:46:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351649#M64491</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2017-12-21T07:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor log files with spaces in the file name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351650#M64492</link>
      <description>&lt;P&gt;It starts binary, i've made a file with UTF-16 myself and it starts with 2 Bytes Binary...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;me@myserver ✓  08:59 $ file bla-utf16.log
bla-utf16.log: Little-endian UTF-16 Unicode text, with no line terminators
[~]
me@myserver ✓  08:59 $ cat bla-utf16.log
▒▒Das ist ein Test
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Have you tried to add CHARSET to your props.conf?&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.1/Data/Configurecharactersetencoding"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.1/Data/Configurecharactersetencoding&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 08:03:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351650#M64492</guid>
      <dc:creator>Elsurion</dc:creator>
      <dc:date>2017-12-21T08:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor log files with spaces in the file name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351651#M64493</link>
      <description>&lt;P&gt;So you are not facing slowness issues on Linux server ? As mentioned by @Elsurion, you can try to set &lt;CODE&gt;CHARSET&lt;/CODE&gt; or if you want to read binary file anyway then you can set &lt;CODE&gt;NO_BINARY_CHECK = true&lt;/CODE&gt; in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;NO_BINARY_CHECK = [true|false]
* When set to true, Splunk processes binary files.
* Can only be used on the basis of [&amp;lt;sourcetype&amp;gt;], or [source::&amp;lt;source&amp;gt;],
  not [host::&amp;lt;host&amp;gt;].
* Defaults to false (binary files are ignored).
* This setting applies at input time, when data is first read by Splunk.
  The setting is used on a Splunk system that has configured inputs
  acquiring the data.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Dec 2017 08:14:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351651#M64493</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-12-21T08:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor log files with spaces in the file name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351652#M64494</link>
      <description>&lt;P&gt;Why not run the UF on the windows server running the app, Maybe this would avoid mounting the share in the first place? (but maybe not)&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 09:01:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351652#M64494</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-12-21T09:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor log files with spaces in the file name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351653#M64495</link>
      <description>&lt;P&gt;Thanks., &lt;/P&gt;

&lt;P&gt;I have created props.conf on Universal Forwarder :&lt;/P&gt;

&lt;P&gt;[esd:trace]&lt;BR /&gt;
CHARSET = AUTO&lt;/P&gt;

&lt;P&gt;but when I search the data , it is shown in  binary format.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 09:03:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351653#M64495</guid>
      <dc:creator>nmohammed</dc:creator>
      <dc:date>2017-12-21T09:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor log files with spaces in the file name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351654#M64496</link>
      <description>&lt;P&gt;Thanks.,&lt;/P&gt;

&lt;P&gt;I have created props.conf on Universal Forwarder :&lt;/P&gt;

&lt;P&gt;[esd:trace]&lt;BR /&gt;
CHARSET = AUTO&lt;/P&gt;

&lt;P&gt;but when I search the data , it is shown in binary format.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 09:08:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351654#M64496</guid>
      <dc:creator>nmohammed</dc:creator>
      <dc:date>2017-12-21T09:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor log files with spaces in the file name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351655#M64497</link>
      <description>&lt;P&gt;Can you please try with &lt;CODE&gt;CHARSET = UTF-16LE&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 09:08:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351655#M64497</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-12-21T09:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor log files with spaces in the file name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351656#M64498</link>
      <description>&lt;P&gt;Thanks harsmarvania57 .., !! that fixed it. Able to see the data correctly now.&lt;/P&gt;

&lt;P&gt;and thank you everyone for contributing quickly to the solution.&lt;/P&gt;

&lt;P&gt;As suggested created props.conf on forwarder with the following  and restarted the forwarder to resolved the issue.&lt;/P&gt;

&lt;P&gt;[esc:trace]&lt;BR /&gt;
CHARSET = UTF-16LE&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 09:40:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-log-files-with-spaces-in-the-file-name/m-p/351656#M64498</guid>
      <dc:creator>nmohammed</dc:creator>
      <dc:date>2017-12-21T09:40:20Z</dc:date>
    </item>
  </channel>
</rss>

