@ubuntu:~$ logstash -V
logstash 6.2.3
@ubuntu:~$ groups logstash
logstash : logstash adm
@ubuntu:~$ cat /etc/logstash/conf.d/01-rsyslog.conf
input {
tcp {
port => 12345
codec => json
}
}
output {
stdout { codec => rubydebug }
}
sudo /usr/share/logstash/bin/logstash --debug --path.settings /etc/logstash -f /etc/logstash/conf.d/01-rsyslog.conf
@ubuntu:~$ sudo netstat -paunt | grep 12345
tcp6 0 0 :::12345 :::* LISTEN 9065/java
@ubuntu:~$ telnet 192.168.1.107 12345
Trying 192.168.1.107...
Connected to 192.168.1.107.
Escape character is '^]'.
test 1
test 2
@ubuntu:~$ sudo systemctl start logstash.service
@ubuntu:~$ sudo systemctl status logstash.service
● logstash.service - logstash
Loaded: loaded (/etc/systemd/system/logstash.service; enabled; vendor preset: enabled)
Active: active (running) since sam. 2018-04-14 23:52:43 CEST; 7s ago
Main PID: 9498 (java)
Tasks: 14
Memory: 262.7M
CPU: 7.807s
CGroup: /system.slice/logstash.service
└─9498 /usr/bin/java -Xms256m -Xmx1g -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+D
avril 14 23:52:43 ubuntu systemd[1]: Started logstash.
@ubuntu:~$ sudo netstat -paunt | grep 12345
@ubuntu:~$
@ubuntu:~$ telnet 192.168.1.107 12345
Trying 192.168.1.107...
telnet: Unable to connect to remote host: Connection refused
can some one help me i don't know why the logstash service don't read the config file
i think i have the same problem in this post but i add logstash to the adm group
i tried also like #magnusbaeck sayed the --verbose option but nothing work
the log file is empty
the service is running without error but simply it don't do nothing
Please guys i need help