<?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 How to resolve &amp;quot;ERROR ExecProcessor...No such file or directory&amp;quot; error from a python script through a universal forwarder? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-quot-ERROR-ExecProcessor-No-such-file-or/m-p/320059#M59778</link>
    <description>&lt;P&gt;Hi to all,&lt;BR /&gt;
I installed on monitored server, by universal forwarding, an app that uses python script to load data about cpu, disk,..&lt;BR /&gt;
The app contains a file table2event.py that start with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/usr/bin/python

import time
import logging
import urllib2 as u
import os
import subprocess
import sys

global log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In splunkd.log I see several errors like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ERROR ExecProcessor - message from "python /opt/splunkforwarder/etc/apps/ta-adapter/bin/table2event.py iostat.sh" /bin/sh: \r: No such file or directory 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I solve?&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Andrea&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2017 17:23:06 GMT</pubDate>
    <dc:creator>andreac81</dc:creator>
    <dc:date>2017-07-19T17:23:06Z</dc:date>
    <item>
      <title>How to resolve "ERROR ExecProcessor...No such file or directory" error from a python script through a universal forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-quot-ERROR-ExecProcessor-No-such-file-or/m-p/320059#M59778</link>
      <description>&lt;P&gt;Hi to all,&lt;BR /&gt;
I installed on monitored server, by universal forwarding, an app that uses python script to load data about cpu, disk,..&lt;BR /&gt;
The app contains a file table2event.py that start with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/usr/bin/python

import time
import logging
import urllib2 as u
import os
import subprocess
import sys

global log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In splunkd.log I see several errors like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ERROR ExecProcessor - message from "python /opt/splunkforwarder/etc/apps/ta-adapter/bin/table2event.py iostat.sh" /bin/sh: \r: No such file or directory 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I solve?&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Andrea&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 17:23:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-quot-ERROR-ExecProcessor-No-such-file-or/m-p/320059#M59778</guid>
      <dc:creator>andreac81</dc:creator>
      <dc:date>2017-07-19T17:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve "ERROR ExecProcessor...No such file or directory" error from a python script through a universal forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-quot-ERROR-ExecProcessor-No-such-file-or/m-p/320060#M59779</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;Did you check the file permission? Also, have you tested if the script is working locally on the universal forwarder? &lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2017 18:20:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-quot-ERROR-ExecProcessor-No-such-file-or/m-p/320060#M59779</guid>
      <dc:creator>MousumiChowdhur</dc:creator>
      <dc:date>2017-11-18T18:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve "ERROR ExecProcessor...No such file or directory" error from a python script through a universal forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-quot-ERROR-ExecProcessor-No-such-file-or/m-p/320061#M59780</link>
      <description>&lt;P&gt;Hi @andreac81,&lt;BR /&gt;
I think the problem is your line ending characters. Your file was created or edited on a Windows system and uses Windows/DOS-style line endings (CR+LF), whereas Linux systems like Ubuntu require Unix-style line endings (LF).&lt;/P&gt;

&lt;P&gt;There is a tool that can convert the two different styles for you called &lt;CODE&gt;dos2unix&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Can you please try this?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 19 Nov 2017 02:17:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-quot-ERROR-ExecProcessor-No-such-file-or/m-p/320061#M59780</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-19T02:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve "ERROR ExecProcessor...No such file or directory" error from a python script through a universal forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-quot-ERROR-ExecProcessor-No-such-file-or/m-p/320062#M59781</link>
      <description>&lt;P&gt;Hi @andreac81,&lt;/P&gt;

&lt;P&gt;Is your issue resolved?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 17:56:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-quot-ERROR-ExecProcessor-No-such-file-or/m-p/320062#M59781</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-22T17:56:10Z</dc:date>
    </item>
  </channel>
</rss>

