leyleynewt
(leyleynewt)
January 14, 2022, 9:13am
1
This is the configuration in logstash-sample.conf:
input{
stdin{}
}
output{
elasticsearch{
hosts => ["localhost:9200"]
index => "my-index-name"
user => "elastic"
password => "changeme"
}
file{
path => "/etc/logstash/conf.d/logstash-sample-output"
}
stdout {
}
}
This is the configuration in the pipeline.conf file:
- pipeline.id: main
path.config: "/etc/logstash/conf.d/*.conf"
When I run this command:
/usr/share/logstash/bin/logstash -f logstash-sample.conf
This is the log:
The expected output which is the index name is (my-index-name)
should be reflected in Kibana Dashboard Index Management:
How to resolve this issue?
Tomo_M
(Tomohiro Mitani)
January 14, 2022, 9:30am
2
Hi,
The log says another logstash sharing the same "path.data" setting.
1 Like
leyleynewt
(leyleynewt)
January 14, 2022, 9:37am
3
Hello! This is our logstash.yml file:
leyleynewt
(leyleynewt)
January 14, 2022, 10:38am
5
Hello, I run this command to pass path.setting:
/usr/share/logstash/bin/logstash --path.settings /etc/logstash/ -f logstash-sample.conf
and this is the log:
leandrojmp
(Leandro Pereira)
January 14, 2022, 1:13pm
6
Your log is saying that you have another logstash running in your server, you need to check that and stopped the other instance.
1 Like
grumo35
(Grumo35)
January 14, 2022, 1:30pm
7
ps -aux | grep "logstash" Will show running instances.
You should make it as a systemd service or try a init / kill script that catch the PID.
1 Like
leyleynewt
(leyleynewt)
January 18, 2022, 2:16am
8
Hello @grumo35 , Thank you issue is resolved!!!
Steps:
Show running instances.
ps -aux | grep logstash
Kill running instances.
Kill -9 <PID>
Additional Information:
You could pass the path.settings in the CLI with this command:
/usr/share/logstash/bin/logstash --path.settings /etc/logstash/ -f logstash-sample.conf
1 Like
system
(system)
Closed
February 15, 2022, 2:16am
9
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.