Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Apache Flume: Distributed Log Collection for Hadoop

You're reading from  Apache Flume: Distributed Log Collection for Hadoop

Product type Book
Published in Jul 2013
Publisher Packt
ISBN-13 9781782167914
Pages 108 pages
Edition 1st Edition
Languages

Summary


In this chapter we covered the following various interceptors shipped with Flume:

  • Timestamp: This is used to add a timestamp header, possibly overwriting an existing one.

  • Host: This is used to add the Flume agent host name or IP as a header in the event.

  • Static: This is used to add static String headers.

  • Regular expression filtering: This is used to include or exclude events based on a matched regular expression.

  • Regular expression extractor: This is used to create headers from matched regular expression headers. It is also useful for routing with channel selectors.

  • Custom: This is used to create any custom transformations you need that you can't find elsewhere.

We also covered tiering data flows using the Avro Source and Sink.

Next we introduced two Log4J Appenders, a single path and a load-balancing version, for direct integration with Java applications.

Finally, we gave an example of using interceptors in conjunction with a channel selector to provide routing decision logic.

In the next...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}