Hi,

I'm having issues with the Windows collector when monitoring a particular 
.txt log file. Everything is set up and working fine with another log file, 
but with this one it's highly unreliable and I frequently see errors 
similar to this:

2015-11-02T09:30:19.782+0000 ERROR [gelfTcpTransport-1-1] 
gelfclient.transport.GelfTcpTransport - Exception caught
java.io.IOException: An existing connection was forcibly closed by the 
remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method) ~[?:1.7.0_79]
at sun.nio.ch.SocketDispatcher.read(Unknown Source) ~[?:1.7.0_79]
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source) ~[?:1.7.0_79]
at sun.nio.ch.IOUtil.read(Unknown Source) ~[?:1.7.0_79]
at sun.nio.ch.SocketChannelImpl.read(Unknown Source) ~[?:1.7.0_79]
at 
io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:447)
 
~[graylog-collector.jar:?]
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:881) 
~[graylog-collector.jar:?]
at 
io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:242)
 
~[graylog-collector.jar:?]
at 
io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)
 
[graylog-collector.jar:?]
at 
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) 
[graylog-collector.jar:?]
at 
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
 
[graylog-collector.jar:?]
at 
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) 
[graylog-collector.jar:?]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) 
[graylog-collector.jar:?]
at 
io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111)
 
[graylog-collector.jar:?]
at 
io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
 
[graylog-collector.jar:?]
at java.lang.Thread.run(Unknown Source) [?:1.7.0_79]
2015-11-02T09:30:19.876+0000 ERROR [gelfTcpTransport-1-1] 
gelfclient.encoder.GelfMessageJsonEncoder - JSON encoding error
java.io.IOException: An existing connection was forcibly closed by the 
remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method) ~[?:1.7.0_79]
at sun.nio.ch.SocketDispatcher.read(Unknown Source) ~[?:1.7.0_79]
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source) ~[?:1.7.0_79]
at sun.nio.ch.IOUtil.read(Unknown Source) ~[?:1.7.0_79]
at sun.nio.ch.SocketChannelImpl.read(Unknown Source) ~[?:1.7.0_79]
at 
io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:447)
 
~[graylog-collector.jar:?]
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:881) 
~[graylog-collector.jar:?]
at 
io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:242)
 
~[graylog-collector.jar:?]
at 
io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)
 
[graylog-collector.jar:?]
at 
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) 
[graylog-collector.jar:?]
at 
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
 
[graylog-collector.jar:?]
at 
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) 
[graylog-collector.jar:?]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) 
[graylog-collector.jar:?]
at 
io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111)
 
[graylog-collector.jar:?]
at 
io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
 
[graylog-collector.jar:?]
at java.lang.Thread.run(Unknown Source) [?:1.7.0_79]
2015-11-02T09:30:19.876+0000 INFO  [gelfTcpTransport-1-1] 
gelfclient.transport.GelfTcpTransport - Channel disconnected!

>From that point on I then get further 'channel disconnected' errors until I 
restart the service.

My collector config is:

server-url = "http://x.x.x.x:12900/";

inputs {
  feed-uploader-logs {
    type = "file"
    charset = "Cp1252"
    path-glob-root = "F:\\xxxx\\xxxx"
    path-glob-pattern = "*.Log.txt"
  }
}

outputs {
  graylog-server{
    type = "gelf"
    host = "x.x.x.x"
    port = 12201
  }
}

I've tried the charset parameter with the above setting and also left as 
default but it makes no difference. I've also tried increasing the buffer 
and maximum message size of the GELF TCP input.

Any ideas?

Thanks!


-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/a6a2a848-5c37-464d-99ef-1fba0c09f625%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to