<?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: How to drop full record in log file by searching a keyword in interceptor using flume in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-drop-full-record-in-log-file-by-searching-a-keyword/m-p/39673#M24884</link>
    <description>&lt;P&gt;guessing like this: (assuming you want search-replace to be applied first, regex second)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;agent.sources.localsource.interceptors = search-replace&amp;nbsp;regex&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;agent.sources.localsource.interceptors.search-repl&lt;SPAN&gt;ace.type = search_replace&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;agent.sources.localsource.interceptors.regex.type =&amp;nbsp;regex_filter&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Apr 2016 05:11:50 GMT</pubDate>
    <dc:creator>ben.hemphill</dc:creator>
    <dc:date>2016-04-13T05:11:50Z</dc:date>
    <item>
      <title>How to drop full record in log file by searching a keyword in interceptor using flume</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-drop-full-record-in-log-file-by-searching-a-keyword/m-p/39581#M24879</link>
      <description>&lt;P&gt;Hi, Guys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to drop full record by searching a key using interceptor in flume is that possible to drop full record in flume?&lt;/P&gt;&lt;P&gt;&amp;nbsp; For example in my log i have record like : (this record in pagenotfound.php) by searching &lt;STRONG&gt;pagenotfound.php&amp;nbsp; &lt;/STRONG&gt;this keyword i want to drop that full record is that possible ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please Help&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:13:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-drop-full-record-in-log-file-by-searching-a-keyword/m-p/39581#M24879</guid>
      <dc:creator>Tejaponnaluru</dc:creator>
      <dc:date>2022-09-16T10:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to drop full record in log file by searching a keyword in interceptor using flume</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-drop-full-record-in-log-file-by-searching-a-keyword/m-p/39618#M24880</link>
      <description>&lt;P&gt;Perhaps the Regex Filtering Interceptor is what you were looking for?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://flume.apache.org/FlumeUserGuide.html#regex-filtering-interceptor" target="_blank"&gt;https://flume.apache.org/FlumeUserGuide.html#regex-filtering-interceptor&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 06:41:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-drop-full-record-in-log-file-by-searching-a-keyword/m-p/39618#M24880</guid>
      <dc:creator>ben.hemphill</dc:creator>
      <dc:date>2016-04-12T06:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to drop full record in log file by searching a keyword in interceptor using flume</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-drop-full-record-in-log-file-by-searching-a-keyword/m-p/39619#M24881</link>
      <description>Hi Ben thanks for your answer. As You said i can use Regex Filtering Interceptor, But i already using Search and Replace Interceptor for one filter can i use both in one agent at same time</description>
      <pubDate>Tue, 12 Apr 2016 06:48:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-drop-full-record-in-log-file-by-searching-a-keyword/m-p/39619#M24881</guid>
      <dc:creator>Tejaponnaluru</dc:creator>
      <dc:date>2016-04-12T06:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to drop full record in log file by searching a keyword in interceptor using flume</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-drop-full-record-in-log-file-by-searching-a-keyword/m-p/39646#M24882</link>
      <description>&lt;P&gt;It would appear you can "chain" them by putting the interceptors that are desired in a list in the order you want them applied. I have never personally done it, so I can't say for sure. Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1]"Flume supports chaining of interceptors. This is made possible through by specifying the list of interceptor builder class names in the configuration. Interceptors are specified as a whitespace separated list in the source configuration. The order in which the interceptors are specified is the order in which they are invoked. The list of events returned by one interceptor is passed to the next interceptor in the chain."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1]&lt;A href="https://flume.apache.org/FlumeUserGuide.html#flume-interceptors" target="_blank"&gt;https://flume.apache.org/FlumeUserGuide.html#flume-interceptors&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 17:49:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-drop-full-record-in-log-file-by-searching-a-keyword/m-p/39646#M24882</guid>
      <dc:creator>ben.hemphill</dc:creator>
      <dc:date>2016-04-12T17:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to drop full record in log file by searching a keyword in interceptor using flume</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-drop-full-record-in-log-file-by-searching-a-keyword/m-p/39672#M24883</link>
      <description>&lt;P&gt;Hi Ben&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks a lot for replying, As you said i read that but i didn't get this thing&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is made possible through by specifying the list of interceptor builder class names in the configuration&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;as you said i want to define interceptors names like interceptor 1 and interceptor 2 this what you saying right.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 04:54:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-drop-full-record-in-log-file-by-searching-a-keyword/m-p/39672#M24883</guid>
      <dc:creator>Tejaponnaluru</dc:creator>
      <dc:date>2016-04-13T04:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to drop full record in log file by searching a keyword in interceptor using flume</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-drop-full-record-in-log-file-by-searching-a-keyword/m-p/39673#M24884</link>
      <description>&lt;P&gt;guessing like this: (assuming you want search-replace to be applied first, regex second)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;agent.sources.localsource.interceptors = search-replace&amp;nbsp;regex&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;agent.sources.localsource.interceptors.search-repl&lt;SPAN&gt;ace.type = search_replace&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;agent.sources.localsource.interceptors.regex.type =&amp;nbsp;regex_filter&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 05:11:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-drop-full-record-in-log-file-by-searching-a-keyword/m-p/39673#M24884</guid>
      <dc:creator>ben.hemphill</dc:creator>
      <dc:date>2016-04-13T05:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to drop full record in log file by searching a keyword in interceptor using flume</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-drop-full-record-in-log-file-by-searching-a-keyword/m-p/41171#M24885</link>
      <description>hi Ben&lt;BR /&gt;&lt;BR /&gt;I tried like this as you said&lt;BR /&gt;&lt;BR /&gt;agent.sources.localsource.interceptors = search-replace&lt;BR /&gt;agent.sources.localsource.interceptors.search-replace.type = search_replace&lt;BR /&gt;&lt;BR /&gt;# Remove leading alphanumeric characters in an event body.&lt;BR /&gt;agent.sources.localsource.interceptors.search-replace.searchPattern = ###|##&lt;BR /&gt;agent.sources.localsource.interceptors.search-replace.replaceString = |&lt;BR /&gt;&lt;BR /&gt;agent.sources.localsource.interceptors = regex-filter&lt;BR /&gt;agent.sources.localsource.interceptors.regex-filter.type = regex_filter&lt;BR /&gt;&lt;BR /&gt;# Remove full event body.&lt;BR /&gt;agent.sources.localsource.interceptors.regex-filter.searchPattern = "pagenotfound.php"&lt;BR /&gt;agent.sources.localsource.interceptors.regex-filter.excludeEvents = true&lt;BR /&gt;&lt;BR /&gt;But flume not writing events at all if i remove regex_filter interceptor then its writing events so you have any idea how to use it .&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;</description>
      <pubDate>Mon, 23 May 2016 07:01:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-drop-full-record-in-log-file-by-searching-a-keyword/m-p/41171#M24885</guid>
      <dc:creator>Tejaponnaluru</dc:creator>
      <dc:date>2016-05-23T07:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to drop full record in log file by searching a keyword in interceptor using flume</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-drop-full-record-in-log-file-by-searching-a-keyword/m-p/41227#M24886</link>
      <description>Hi, Ben&lt;BR /&gt;&lt;BR /&gt;Now interceptor working fine. I changed above code like this&lt;BR /&gt;&lt;BR /&gt;agent.sources.localsource.interceptors = search-replace regex-filter&lt;BR /&gt;agent.sources.localsource.interceptors.search-replace.type = search_replace&lt;BR /&gt;&lt;BR /&gt;# Remove leading alphanumeric characters in an event body.&lt;BR /&gt;agent.sources.localsource.interceptors.search-replace.searchPattern = ###|##&lt;BR /&gt;agent.sources.localsource.interceptors.search-replace.replaceString = |&lt;BR /&gt;&lt;BR /&gt;#agent.sources.localsource.interceptors = regex-filter&lt;BR /&gt;agent.sources.localsource.interceptors.regex-filter.type = regex_filter&lt;BR /&gt;&lt;BR /&gt;# Remove full event body.&lt;BR /&gt;agent.sources.localsource.interceptors.regex-filter.regex = .*PageInsource\:pagenotfound.php.*&lt;BR /&gt;agent.sources.localsource.interceptors.regex-filter.excludeEvents = true&lt;BR /&gt;Now its working pretty fine.</description>
      <pubDate>Tue, 24 May 2016 09:22:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-drop-full-record-in-log-file-by-searching-a-keyword/m-p/41227#M24886</guid>
      <dc:creator>Tejaponnaluru</dc:creator>
      <dc:date>2016-05-24T09:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to drop full record in log file by searching a keyword in interceptor using flume</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-drop-full-record-in-log-file-by-searching-a-keyword/m-p/41255#M24887</link>
      <description>&lt;P&gt;Glad to Hear it!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 19:41:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-drop-full-record-in-log-file-by-searching-a-keyword/m-p/41255#M24887</guid>
      <dc:creator>ben.hemphill</dc:creator>
      <dc:date>2016-05-24T19:41:23Z</dc:date>
    </item>
  </channel>
</rss>

