Hi @Mahesh Mallikarjunappa,
The Flume agent is typically listen to a logfile etc until it's aborted by an operator so that is where the"long-lived process" comes in.
For more info on Flume please visit - https://flume.apache.org/FlumeUserGuide.html
/Best regards, Mats