<?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: Interceptor not working in flume in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Interceptor-not-working-in-flume/m-p/39669#M24718</link>
    <description>Hi, Thanks for Your reply&lt;BR /&gt;&lt;BR /&gt;It's working fine i got it Before but forgot to update my answer. As You said need to remove single quotes and slashes then it's working fine.&lt;BR /&gt;I used directly means, Instead of this ^\s*\#+|\#+$ I used direct ## to replace with pipe line symbol.</description>
    <pubDate>Wed, 13 Apr 2016 04:08:43 GMT</pubDate>
    <dc:creator>Tejaponnaluru</dc:creator>
    <dc:date>2016-04-13T04:08:43Z</dc:date>
    <item>
      <title>Interceptor not working in flume</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Interceptor-not-working-in-flume/m-p/39504#M24716</link>
      <description>&lt;P&gt;Im trying to movie log files from server X to hdfs. while moving i want to filter or replace some data, so for that i'm using search&amp;amp;replace interceptor. But it not working Please Help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here My config file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Local Agent:&lt;/P&gt;&lt;P&gt;agent.sources = localsource&lt;BR /&gt;agent.channels = memoryChannel&lt;BR /&gt;agent.sinks = avro_Sink&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;agent.sources.localsource.type = spooldir&lt;BR /&gt;#agent.sources.localsource.shell = /bin/bash -c&lt;BR /&gt;agent.sources.localsource.spoolDir = /home/dwh/teja/Flumedata/&lt;BR /&gt;agent.sources.localsource.fileHeader = true&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# The channel can be defined as follows.&lt;BR /&gt;agent.sources.localsource.channels = memoryChannel&lt;/P&gt;&lt;P&gt;# Each sink's type must be defined&lt;BR /&gt;agent.sinks.avro_Sink.type = avro&lt;BR /&gt;agent.sinks.avro_Sink.hostname=192.168.4.444&lt;BR /&gt;agent.sinks.avro_Sink.port= 8021&lt;BR /&gt;agent.sinks.avro_Sink.avro.batchSize = 100&lt;BR /&gt;agent.sinks.avro_Sink.avro.rollCount = 0&lt;BR /&gt;agent.sinks.avro_Sink.avro.rollSize = 65000000&lt;BR /&gt;agent.sinks.avro_Sink.avro.rollInterval = 0&lt;/P&gt;&lt;P&gt;agent.sources.localsource.interceptors = search-replace&lt;BR /&gt;agent.sources.localsource.interceptors.search-replace.type = search_replace&lt;/P&gt;&lt;P&gt;# Remove leading alphanumeric characters in an event body.&lt;BR /&gt;&lt;STRONG&gt;agent.sources.localsource.interceptors.search-replace.searchPattern = '/^\s*\#+|\#+$/'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;agent.sources.localsource.interceptors.search-replace.replaceString = '|'&lt;/STRONG&gt;&lt;BR /&gt;#Specify the channel the sink should use&lt;BR /&gt;agent.sinks.avro_Sink.channel = memoryChannel&lt;/P&gt;&lt;P&gt;# Each channel's type is defined.&lt;BR /&gt;agent.channels.memoryChannel.type = memory&lt;BR /&gt;agent.channels.memoryChannel.capacity = 10000&lt;BR /&gt;agent.channels.memoryChannel.transactionCapacity = 1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here My Hdfs Agent:&lt;/P&gt;&lt;P&gt;tier1.sources = source1&lt;BR /&gt;tier1.channels = channel1&lt;BR /&gt;tier1.sinks = sink1&lt;/P&gt;&lt;P&gt;# For each source, channel, and sink, set&lt;BR /&gt;# standard properties.&lt;BR /&gt;tier1.sources.source1.type = avro&lt;BR /&gt;tier1.sources.source1.bind = 192.168.4.51&lt;BR /&gt;tier1.sources.source1.port=8021&lt;BR /&gt;tier1.sources.source1.channels = channel1&lt;BR /&gt;tier1.channels.channel1.type = memory&lt;BR /&gt;tier1.sinks.sink1.type = hdfs&lt;BR /&gt;tier1.sinks.sink1.channel = channel1&lt;BR /&gt;tier1.sinks.sink1.hdfs.path = hdfs://192.168.4.51:8020/user/hadoop/flumelogs/&lt;BR /&gt;tier1.sinks.sink1.hdfs.fileType = DataStream&lt;BR /&gt;tier1.sinks.sink1.hdfs.writeFormat= Text&lt;BR /&gt;tier1.sinks.sink1.hdfs.batchSize = 100&lt;BR /&gt;tier1.sinks.sink1.hdfs.rollCount = 0&lt;BR /&gt;tier1.sinks.sink1.hdfs.rollSize = 65000000&lt;BR /&gt;tier1.sinks.sink1.hdfs.rollInterval = 0&lt;BR /&gt;tier1.channels.channel1.capacity = 10000&lt;BR /&gt;tier1.channels.channel1.transactioncapacity=1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please say any thing need to add&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:12:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Interceptor-not-working-in-flume/m-p/39504#M24716</guid>
      <dc:creator>Tejaponnaluru</dc:creator>
      <dc:date>2022-09-16T10:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Interceptor not working in flume</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Interceptor-not-working-in-flume/m-p/39640#M24717</link>
      <description>&lt;P&gt;Is this the pattern that you are trying to match on:&amp;nbsp;^\s*\#+|\#+$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try it without quoting or the forward slashes, like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;agent.sources.localsource.interceptors.search-replace.searchPattern = ^\s*\#+|\#+$
agent.sources.localsource.interceptors.search-replace.replaceString = |&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-pd&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 16:14:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Interceptor-not-working-in-flume/m-p/39640#M24717</guid>
      <dc:creator>pdvorak</dc:creator>
      <dc:date>2016-04-12T16:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Interceptor not working in flume</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Interceptor-not-working-in-flume/m-p/39669#M24718</link>
      <description>Hi, Thanks for Your reply&lt;BR /&gt;&lt;BR /&gt;It's working fine i got it Before but forgot to update my answer. As You said need to remove single quotes and slashes then it's working fine.&lt;BR /&gt;I used directly means, Instead of this ^\s*\#+|\#+$ I used direct ## to replace with pipe line symbol.</description>
      <pubDate>Wed, 13 Apr 2016 04:08:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Interceptor-not-working-in-flume/m-p/39669#M24718</guid>
      <dc:creator>Tejaponnaluru</dc:creator>
      <dc:date>2016-04-13T04:08:43Z</dc:date>
    </item>
  </channel>
</rss>

