No log4j2 configuration file found while running agent

ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property ‘log4j2.debug’ to show Log4j2 inter
nal initialization logging.

Hello @Rishabh_Galkar

copy all the config files available at /etc/flume/conf to your flume_demo directory

[manix049@gw03 flume_demo]$ cp /etc/flume/conf/. /home/manix049/flume_demo/

[manix049@gw03 flume_demo]$ ls
example.conf flume-env.ps1 log4j.properties
flume.conf flume-env.sh.template
flume-conf.properties.template log4j2.xml

[manix049@gw03 flume_demo]$ flume-ng agent --name a1 --conf-file /home/manix049/flume_demo/example.conf --conf /home/manix049/flume_demo/

Hope this helps.

regards,
Manish