<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Flume without agents on application server logs in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-without-agents-on-application-server-logs/m-p/225191#M72663</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/14131/jeanette75007.html" nodeid="14131"&gt;@JT Ng&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Yes, That is possible with "Netcat TCP Source" by not installing the agent on application server. however you may need to tail the log and pass on to the listener from the server where you want to feed the logs.&lt;/P&gt;&lt;P&gt;which means start the log push process on the source server with (on the appliaction server)&lt;/P&gt;&lt;PRE&gt;tail  -f &amp;lt;application Log file&amp;gt;.log |nc &amp;lt;flume_agent_host&amp;gt; &amp;lt;configured_netcat_Sync_port&amp;gt;
&lt;/PRE&gt;&lt;P&gt;before you trigger this make sure that you initiated the fulme agent in the HDP cluster(or where the flume agent can be installed)&lt;/P&gt;&lt;PRE&gt;a1.sources = r1
a1.channels = c1
a1.sources.r1.type = netcat
a1.sources.r1.bind = 0.0.0.0
a1.sources.r1.port = 6666
a1.sources.r1.channels = c1 &lt;/PRE&gt;&lt;P&gt;&lt;A href="https://flume.apache.org/FlumeUserGuide.html#netcat-tcp-source"&gt;Ref&lt;/A&gt;&lt;/P&gt;&lt;P&gt;on the other side you can configure the HDFS Sync to pump this HDFS file system with the following command&lt;/P&gt;&lt;PRE&gt;a1.channels = c1
a1.sinks = k1
a1.sinks.k1.type = hdfs
a1.sinks.k1.channel = c1
a1.sinks.k1.hdfs.path = /flume/events/%y-%m-%d/%H%M/%S
a1.sinks.k1.hdfs.filePrefix = events-
a1.sinks.k1.hdfs.round = true
a1.sinks.k1.hdfs.roundValue = 10
a1.sinks.k1.hdfs.roundUnit = minute&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://flume.apache.org/FlumeUserGuide.html#hdfs-sink"&gt;Ref&lt;/A&gt;&lt;/P&gt;&lt;P&gt;NB : Make sure that you handle the tali and nc process while your server stops or completely shuts down your application, however you can manage the tail process with proper shell includes restartability as a service in the linux host.&lt;/P&gt;&lt;P&gt;Hope this helps !!&lt;/P&gt;</description>
    <pubDate>Fri, 15 Dec 2017 07:00:41 GMT</pubDate>
    <dc:creator>bkosaraju</dc:creator>
    <dc:date>2017-12-15T07:00:41Z</dc:date>
    <item>
      <title>Flume without agents on application server logs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-without-agents-on-application-server-logs/m-p/225190#M72662</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I want to ingest data logs from application server logs into HDFS using Flume version 1.5 . Do I need to install Flume agent (client) on these application servers? How can I pull these application logs without install Flume agent? However, these servers are not part of Hadoop cluster. Can you please help?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;JN&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 05:56:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-without-agents-on-application-server-logs/m-p/225190#M72662</guid>
      <dc:creator>jeanette75007</dc:creator>
      <dc:date>2017-12-15T05:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Flume without agents on application server logs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-without-agents-on-application-server-logs/m-p/225191#M72663</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/14131/jeanette75007.html" nodeid="14131"&gt;@JT Ng&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Yes, That is possible with "Netcat TCP Source" by not installing the agent on application server. however you may need to tail the log and pass on to the listener from the server where you want to feed the logs.&lt;/P&gt;&lt;P&gt;which means start the log push process on the source server with (on the appliaction server)&lt;/P&gt;&lt;PRE&gt;tail  -f &amp;lt;application Log file&amp;gt;.log |nc &amp;lt;flume_agent_host&amp;gt; &amp;lt;configured_netcat_Sync_port&amp;gt;
&lt;/PRE&gt;&lt;P&gt;before you trigger this make sure that you initiated the fulme agent in the HDP cluster(or where the flume agent can be installed)&lt;/P&gt;&lt;PRE&gt;a1.sources = r1
a1.channels = c1
a1.sources.r1.type = netcat
a1.sources.r1.bind = 0.0.0.0
a1.sources.r1.port = 6666
a1.sources.r1.channels = c1 &lt;/PRE&gt;&lt;P&gt;&lt;A href="https://flume.apache.org/FlumeUserGuide.html#netcat-tcp-source"&gt;Ref&lt;/A&gt;&lt;/P&gt;&lt;P&gt;on the other side you can configure the HDFS Sync to pump this HDFS file system with the following command&lt;/P&gt;&lt;PRE&gt;a1.channels = c1
a1.sinks = k1
a1.sinks.k1.type = hdfs
a1.sinks.k1.channel = c1
a1.sinks.k1.hdfs.path = /flume/events/%y-%m-%d/%H%M/%S
a1.sinks.k1.hdfs.filePrefix = events-
a1.sinks.k1.hdfs.round = true
a1.sinks.k1.hdfs.roundValue = 10
a1.sinks.k1.hdfs.roundUnit = minute&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://flume.apache.org/FlumeUserGuide.html#hdfs-sink"&gt;Ref&lt;/A&gt;&lt;/P&gt;&lt;P&gt;NB : Make sure that you handle the tali and nc process while your server stops or completely shuts down your application, however you can manage the tail process with proper shell includes restartability as a service in the linux host.&lt;/P&gt;&lt;P&gt;Hope this helps !!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 07:00:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-without-agents-on-application-server-logs/m-p/225191#M72663</guid>
      <dc:creator>bkosaraju</dc:creator>
      <dc:date>2017-12-15T07:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Flume without agents on application server logs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-without-agents-on-application-server-logs/m-p/225192#M72664</link>
      <description>&lt;P&gt;Thank you &lt;A href="https://community.hortonworks.com/users/15193/bkosaraju.html"&gt;bkosaraju&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Dec 2017 02:51:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-without-agents-on-application-server-logs/m-p/225192#M72664</guid>
      <dc:creator>jeanette75007</dc:creator>
      <dc:date>2017-12-16T02:51:13Z</dc:date>
    </item>
  </channel>
</rss>

