Filebeat exiting

filebeat.service - LSB: Filebeat sends log files to Logstash or directly to Elasticsearch.
Loaded: loaded (/etc/init.d/filebeat; generated)
Active: active (exited) since Fri 2024-09-20 08:48:04 IST; 13s ago
Docs: man:systemd-sysv-generator(8)
Process: 1514285 ExecStart=/etc/init.d/filebeat start (code=exited, status=0/SUCCESS)
CPU: 3ms

Sep 20 08:48:04 webminsquid systemd[1]: Starting LSB: Filebeat sends log files to Logstash or directly to Elasticsearch....
Sep 20 08:48:04 webminsquid systemd[1]: Started LSB: Filebeat sends log files to Logstash or directly to Elasticsearch

Please try the following command
filebeat -e -d "*" -c {config file location}

with this you can do a debug test that will not send anything to logstash, elastic or opensearch and it will provide you with a preview of component executions.

-e, --e
Logs to stderr and disables syslog/file output.

-d, --d SELECTORS
Enables debugging for the specified selectors. For the selectors, you can specify a comma-separated list of components, or you can use -d "*" to enable debugging for all components. For example, -d "publisher" displays all the publisher-related messages.

-c, --c FILE
Specifies the configuration file to use for Filebeat. The file you specify here is relative to path.config. If the -c flag is not specified, the default config file, filebeat.yml, is used.