# filebeat -c /opt/dctm/am/filebeat/filebeat.yml
Exiting: data path already locked by another beat. Please make sure that multiple beats are not sharing the same data path (path.data).
Can you share the contents of the log file created? It should populate several lines on first run even with a data lock file error.
You may also be able to get the log by adding -e to your invocation. Mine logs something like:
bill@bills-MBP metricbeat-8.16.1-darwin-aarch64 % ./metricbeat run -e
{"log.level":"info","@timestamp":"2024-12-17T19:49:50.181-0600","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.(*Beat).configure","file.name":"instance/beat.go","file.line":1058},"message":"Home path: [/Users/bill/Downloads/metricbeat-8.16.1-darwin-aarch64] Config path: [/Users/bill/Downloads/metricbeat-8.16.1-darwin-aarch64] Data path: [/Users/bill/Downloads/metricbeat-8.16.1-darwin-aarch64/data] Logs path: [/Users/bill/Downloads/metricbeat-8.16.1-darwin-aarch64/logs]","service.name":"metricbeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-12-17T19:49:50.181-0600","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.(*Beat).configure","file.name":"instance/beat.go","file.line":1066},"message":"Beat ID: 368def15-35c4-4d4e-834e-7e9879a6b653","service.name":"metricbeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-12-17T19:49:51.810-0600","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.(*Beat).launch","file.name":"instance/beat.go","file.line":667},"message":"metricbeat stopped.","service.name":"metricbeat","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2024-12-17T19:49:51.810-0600","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.handleError","file.name":"instance/beat.go","file.line":1590},"message":"Exiting: /Users/bill/Downloads/metricbeat-8.16.1-darwin-aarch64/data/metricbeat.lock: data path already locked by another beat. Please make sure that multiple beats are not sharing the same data path (path.data)","service.name":"metricbeat","ecs.version":"1.6.0"}
Exiting: /Users/bill/Downloads/metricbeat-8.16.1-darwin-aarch64/data/metricbeat.lock: data path already locked by another beat. Please make sure that multiple beats are not sharing the same data path (path.data)
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.