tcp module for fluentd not showing output

11 views
Skip to first unread message

Shubhra Garg

unread,
Mar 29, 2018, 7:21:57 AM3/29/18
to flu...@googlegroups.com
Hi All,

I am trying to send the integer values from nxlog to fluentd via tcp.

Could you please correct this conf file for fluentd.

Let me know how to debug this scenario?

nxlog conf file:

---------------------------------------------------------------------------
<Input in11>
    Module      im_file
    File        "/var/log/integers.log"
</Input>


<Output tcp11>
    Module      om_tcp
    Host        127.0.0.1
    Port        5170
</Output>


<Route test11>
    Path        in11 => tcp11
</Route>

-----------------------------------------------------------------------------

fluentd conf file:
<source>
  @type tcp
  tag tcp.events11
  format /^(?<field1>\d+)$/
  port 5170
  bind 127.0.0.1
  #read_from_head true
  delimiter \n
</source>


<match tcp.events11>
 type stdout
 </match>


Input file via nxlog:

cat "/var/log/integers.log"
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200


tail -f  /var/log/td-agent/td-agent.log
2018-03-29 11:12:44 +0000 shubh.events: {"field1":"30"}
2018-03-29 11:12:44 +0000 shubh.events: {"field1":"40"}
2018-03-29 11:12:44 +0000 shubh.events: {"field1":"50"}
2018-03-29 11:12:44 +0000 shubh.events: {"field1":"60"}
2018-03-29 11:12:44 +0000 shubh.events: {"field1":"70"}
2018-03-29 11:12:44 +0000 shubh.events: {"field1":"80"}
2018-03-29 11:12:44 +0000 [info]: plugin/in_tcp.rb:30:listen: listening tcp socket on 127.0.0.1:5170
2018-03-29 11:12:44 +0000 [trace]: plugin/socket_util.rb:68:initialize: accepted fluent socket object_id=70094486853740
2018-03-29 11:12:55 +0000 [trace]: plugin/socket_util.rb:91:on_close: closed fluent socket object_id=70094486853740
2018-03-29 11:12:56 +0000 [trace]: plugin/socket_util.rb:68:initialize: accepted fluent socket object_id=70094486848100
^C

--
Shubhra Garg :-)

Shubhra Garg

unread,
Mar 31, 2018, 6:34:32 AM3/31/18
to flu...@googlegroups.com
Why fluentd community doesn't respond. Why there is NO support for the issues?


--
Shubhra Garg :-)
Reply all
Reply to author
Forward
0 new messages