Thanks Bryan, for the feedback. I don't seem to be able to replicate the example in your blog. So, is the flow GenerateFlowFile -> TCPPUT --> LogAttribute and ListenTCPRecord -->LogAttribute? Both TCPPut and ListenTCPRecord are sending data to LogAttribute? Shouldn't ListenTCPRecord be receiving the data data? Also, I am not able to link ListenTCPRecord to any other processor.
In any case, I tried to send logs to ListenTCPRecord using netcat and have ListenTCPRecord send the processed data to LogAttribute, but ListenTCPRecord doesn't seem to be listening (I don't see any activity on the processor). I'd appreciate if you let me what I am doing wrong. thanks Clay On Wed, Oct 4, 2017 at 9:14 AM, Bryan Bende <[email protected]> wrote: > Hello, > > I wrote a post that shows an example of using ListenTCPRecord with a > GrokReader to receive multi-line log messages. There is a link to a > template of the flow at the very end. > > You could easily change the example so that PutTCP is sending a single > JSON document, or an array of JSON documents, and ListenTCPRecord is > using a JsonTreeReader. > > We don't have a protobuf record reader so that currently isn't an option. > > Let us know if you have any other questions. > > -Bryan > > [1] https://bryanbende.com/development/2017/10/04/apache- > nifi-processing-multiline-logs > > On Wed, Oct 4, 2017 at 8:39 AM, Clay Teahouse <[email protected]> > wrote: > > Hi All, > > > > Does anyone have an example of ListenTcpRecord processor in action, say > for > > example, with a json or protobuf reader? I am specifically wondering > about > > the record length/prefix. > > > > thanks > > Clay >
