You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flume.apache.org by Ran Mozes <ra...@oracle.com> on 2014/06/12 11:47:05 UTC

Flume event truncation to 16 bytes

Hi,

I couldn’t find a helpful answer on the internet and I hope someone on this alias might be able to help:
I have a simple flume setup which uses netcat as a source and a custom sink do deliver the events using http post to a target.
The problem is that the events are being truncated to 16 bytes before they arrive the sink. I read that this is the default behaviour of netcat but wanted to know if there is a quick 
tweak for it.

The events look like this: Event: { headers:{} body: 4A 75 6E 20 39 2C 20 32 30 31 34 20 34 3A 30 37 Jun 9, 2014 4:07 }   
The conf file looks like this: 
 
# Name the components on this agent
a1.sources = r1
a1.sinks = k1
a1.channels = c1

# Describe/configure the source
a1.sources.r1.type = netcat
a1.sources.r1.bind = localhost
a1.sources.r1.port = 44444
a1.sources.r1.max-line-length = 512

# Describe the sink
a1.sinks.k1.type = customhttppostsink.MySink

# Use a channel which buffers events in memory
#a1.channels.c1.type = file
a1.channels.c1.type = memory
a1.channels.c1.capacity = 100000
a1.channels.c1.transactionCapacity = 10000

# Bind the source and sink to the channel
a1.sources.r1.channels = c1
a1.sinks.k1.channel = c1 

Any ideas are welcome! 

TIA,
Ran