hi!
Since now, I have started Logstash by running the command:
/usr/share/logstash/bin/logstash --path.settings /etc/logstash/ --path.data sensor39 -f /etc/logstash/conf.d/logstash-config.conf
and it successfully sent all of the logs and I could see them on the dashboard.
But now, I have configured the Logstash service unit file to this:
[Unit]
Description=logstash
[Service]
Type=simple
User=root
Group=root
EnvironmentFile=-/etc/default/logstash
ExecStart=/usr/share/logstash/bin/logstash --path.settings /etc/logstash --path.data sensor39 -f /etc/logstash/conf.d/logstash-config.conf
Restart=on-failure
RestartSec=60
WorkingDirectory=/usr/share/logstash
Nice=19
LimitNOFILE=16384
SyslogIdentifier=logstash
[Install]
WantedBy=multi-user.target
so that I can just start the Logstash service in order to send the logs. The problem is that only a few of the logs can be seen now on the dashboard.
Why does this happen and how can I fix it? Please, help.