[ 
https://issues.apache.org/jira/browse/FLUME-2246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14590069#comment-14590069
 ] 

ddatsh commented on FLUME-2246:
-------------------------------

version1.6.0

{code:title=example.conf|theme=FadeToGrey|linenumbers=true|language=properties|firstline=0001|collapse=true}
a1.sources = r1
a1.sinks = k1
a1.channels = c1
 
# Describe/configure the source
a1.sources.r1.type = netcat
a1.sources.r1.bind = 0.0.0.0
a1.sources.r1.port = 4444
# Describe the sink
a1.sinks.k1.type = logger
a1.sinks.k1.maxBytesToLog=1024

# Use a channel which buffers events in memory
a1.channels.c1.type = memory
a1.channels.c1.capacity = 1000
a1.channels.c1.transactionCapacity = 100
a1.channels.c1.maxBytesToLog = 100
 
# Bind the source and sink to the channel
a1.sources.r1.channels = c1
a1.sinks.k1.channel = c1
{code}

and telnet to 4444
paste 1234567890abcdefghijklmn, enter
console only
 (SinkRunner-PollingRunner-DefaultSinkProcessor) [INFO - 
org.apache.flume.sink.LoggerSink.process(LoggerSink.java:94)] Event: { 
headers:{} body: 31 32 33 34 35 36 37 38 39 30 61 62 63 64 65 66 
1234567890abcdef }



> event body data size can make it configurable for logger sinker
> ---------------------------------------------------------------
>
>                 Key: FLUME-2246
>                 URL: https://issues.apache.org/jira/browse/FLUME-2246
>             Project: Flume
>          Issue Type: Improvement
>          Components: Sinks+Sources
>    Affects Versions: v1.4.0
>            Reporter: Gopinathan A
>            Assignee: Ashish Paliwal
>            Priority: Minor
>             Fix For: v1.6.0
>
>         Attachments: FLUME-2246-0.patch, FLUME-2246-1.patch, 
> FLUME-2246-2.patch
>
>
> Currently logger sinker will dump only 16 bytes of data into log file, better 
> to make it configurable.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to