Logstash service outputs only a few logs from input file

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.
input1

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.
input2
Why does this happen and how can I fix it? Please, help.

--path.data sensor39

What is sensor 39? A directory?
What is the input for logstash-config.conf? TCP?

path.data - The directory that Logstash and its plugins use for any persistent needs. LOGSTASH_HOME/data

The logstash service is run under "logstash" user, all directory which use must be accessible to that user: path.data, path.logs, path.config

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