Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9196525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:52:09+00:00 2026-06-17T21:52:09+00:00

Are there any resources available to help me out in writing a custom handler

  • 0

Are there any resources available to help me out in writing a custom handler for a HTTPSource for Flume-ng. I read the documentation and there is a sample handler for Json but I am wondering if anybody has had the need to write a handler for creating Flume events from a XML message body.
The HttpSource is now available in Flume-ng 1.3.1 but we need handlers to interpret our data.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:52:10+00:00Added an answer on June 17, 2026 at 9:52 pm

    Did you look at JSONHandler source? The only difference for XMLHandler would be usage of some XML deserializer instead of Gson.

    You just need to convert something like:

    <dataList>
      <data>
         ...
      </data>
      <data>
         ...
      </data>      
    </dataList>
    

    into List<SimpleEvent> (or introduce your own HTTPEvent, as Flume developers did with JSONEvent, if you need to handle different encodings). These events’ bodies will contain your <data>..</data> chunks as byte representation of String.

    I don’t recommend to implement any additional business logic of parsing these events in Flume, because business rules tends to change often and Flume as infrastructure software should be stable.

    Finally, you pack your code into jar, place this jar into Flume’s lib directory (/usr/lib/flume-ng/lib in case of Cloudera’s rpm distribution), specify in flume.conf “handler” property of HTTPSource as “com.vicky.flume.source.http.XMLHandler” (or something like that), restart the agent and that’s all.

    Hope this helps. Will be glad to answer your questions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any help, resources, example or a tutorial available for putting fragments inside
I was wondering if there was any resources available online that explains what happens
Are there any resources or guidance out there on how to make iPhone friendly
Are there any good resources out there detailing Perlin noise generation? I understand that
Is there any documentation available on how to write plugins for the xcode? I
Are there any resources or documentation for developing Rails plugins? I'm using other plugins
Are there any libraries or resources available for parsing/reading an archived eventlogs?
Are there any resources on how do I use the not() syntax in a
Has anybody written a plugin for outlook web access? Are there any resources to
Are there any online resources which show the basic steps to access the Microsoft

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.