Hi All,
Have any of you faced this problem? I have Python script that parses the log file and writes the write to line protocol data for InfluxDB. Script runs successfully from root or telegraf user and data is printed on stdout. How ever this data is not written to Influxdb, this is the error message.
telegraf[5183]: 2017-11-05T23:52:41Z E! Error in plugin [inputs.exec]: exec: exit status 1 for command ‘/opt/telegraf/report_exceptions.py’
[root@amz1vtigersplit1s2vos1.amz1.vocalocity.com.amz1 : telegraf]$ sudo -u telegraf ./report_exceptions.py
exceptionStats exception_name=“java.net.SocketException”,exception=“java.net.SocketException: Connection reset”,exception_trace=“at java.net.SocketInputStream.read(SocketInputStream.java:210) ~[?:1.8.0_121]>at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[?:1.8.0_121]>at org.apache.http.impl.io.AbstractSessionInputBuffer.read(AbstractSessionInputBuffer.java:204) ~[httpcore-4.2.1.jar:4.2.1]>at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:177) ~[httpcore-4.2.1.jar:4.2.1]>at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:201) ~[httpcore-4.2.1.jar:4.2.1]>at org.apache.http.impl.io.ChunkedInputStream.close(ChunkedInputStream.java:298) ~[httpcore-4.2.1.jar:4.2.1]>at org.apache.http.conn.BasicManagedEntity.streamClosed(BasicManagedEntity.java:157) ~[httpclient-4.2.1.jar:4.2.1]>at org.apache.http.conn.EofSensorInputStream.checkClose(EofSensorInputStream.java:237) ~[httpclient-4.2.1.jar:4.2.1]>at org.apache.http.conn.EofSensorInputStream.close(EofSensorInputStream.java:186) ~[httpclient-4.2.1.jar:4.2.1]>at java.io.BufferedInputStream.close(BufferedInputStream.java:483) ~[?:1.8.0_121]>at net.vocalocity.common.domain.media.fetcher.http.apache.HTTPResponse$HttpResponseInputStream.cleanup(HTTPResponse.java:169) ~[vocalocity-common”,exception_trace2="-6.0.132_3.jar:?]>at net.vocalocity.common.domain.media.fetcher.http.apache.HTTPResponse.cleanup(HTTPResponse.java:100) ~[vocalocity-common-6.0.132_3.jar:?]>at net.vocalocity.common.domain.media.store.HTTPCommonsSession.expire(HTTPCommonsSession.java:118) ~[vocalocity-common-6.0.132_3.jar:?]>at net.vocalocity.common.domain.media.store.HTTPCommonsMediaBuilder.expireSession(HTTPCommonsMediaBuilder.java:327) ~[vocalocity-common-6.0.132_3.jar:?]>at net.vocalocity.common.domain.media.store.AbstractMediaStore.expire(AbstractMediaStore.java:143) ~[vocalocity-common-6.0.132_3.jar:?]>at net.vocalocity.gateway.media.MediaManager.performRelease(MediaManager.java:493) ~[vocalocity-browser.jar:?]>at net.vocalocity.common.util.component.AbstractComponentResourceManager.release(AbstractComponentResourceManager.java:145) ~[vocalocity-common-6.0.132_3.jar:?]>at net.vocalocity.ccxml.CCXMLManager$MediaReleaseTask.run(CCXMLManager.java:963) ~[vocalocity-browser.jar:?]>at net.vocalocity.common.util.thread.BetterPooledExecutor$1.run(BetterPooledExecutor.java:1224) ~[vocalocity-common-6.0.132_3.jar:?]>at net.vocalocity.common.util.thread.BetterPooledExecutor$Worker.run(BetterPoole" 1509925823000000000