How to run logstash config file on Amazon ec2 instance

I have used systemctl start logstash to get logstash up and running. I was wondering how I can run a logstash config file to ingest data into elastisearch on the ec2 instance?

You can configure static IP at EC2 instance and then you can use the same at .yml file of beats and logstash.

When I run:
systemctl start logstash

and then I run:
systemctl status logstash

I get the following message:
logstash.service - logstash
Loaded: loaded (/etc/systemd/system/logstash.service; disabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Mon 2018-02-26 19:29:10 UTC; 1s ago
Process: 2016 ExecStart=/usr/share/logstash/bin/logstash --path.settings /etc/logstash (code=exited, status=1/FAILURE)
Main PID: 2016 (code=exited, status=1/FAILURE)

Any help or idea of why this could be happening?

Please try this

$logstashhome/config/startup.options file? Please set LC_USER and LC_GROUP to existed account and group .

user and group id to be invoked as

LS_USER=elk-test
LS_GROUP=elk-test

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.