Greetings, guys!
Recently installed Elastic stack on CentOS and faced the problem that a cannot get data pattern in Kibana.
Basically I have kibana elastic logstash and filebeat that is installed locally.
netstat -plntu
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1117/nginx: master
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1003/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1087/master
tcp 0 0 127.0.0.1:5601 0.0.0.0:* LISTEN 667/node
tcp6 0 0 ::1:9200 :::* LISTEN 955/java
tcp6 0 0 127.0.0.1:9200 :::* LISTEN 955/java
tcp6 0 0 ::1:9300 :::* LISTEN 955/java
tcp6 0 0 127.0.0.1:9300 :::* LISTEN 955/java
tcp6 0 0 :::22 :::* LISTEN 1003/sshd
tcp6 0 0 ::1:25 :::* LISTEN 1087/master
tcp6 0 0 127.0.0.1:9600 :::* LISTEN 668/java
tcp6 0 0 :::5443 :::* LISTEN 668/java
udp 0 0 0.0.0.0:514 0.0.0.0:* 942/rsyslogd
udp6 0 0 :::514 :::* 942/rsyslogd
CURL output
curl 'localhost:9200/_cat/indices?v'
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open .kibana ugg_qU1KQeejsdheoemj5w 1 1 1 0 3.2kb 3.2kb
Looks like I cant get patterns and I dont know why, I have checked status of services and they all look just fine
Elastic
[root@qwsqws]# service elasticsearch status
β elasticsearch.service - ElasticsearchPreformatted text
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2017-07-07 16:44:54 MSK; 29min ago
Docs: http://www.elastic.co
Process: 945 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)
Main PID: 955 (java)
CGroup: /system.slice/elasticsearch.service
ββ955 /bin/java -Xms2g -Xmx2g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+DisableExpl...
Jul 07 16:44:54 s001is-wflogs.sibur.local systemd[1]: Starting Elasticsearch...
Jul 07 16:44:54 s001is-wflogs.sibur.local systemd[1]: Started Elasticsearch.
Logstash
[root@qwsqws]# service logstash Preformatted textstatus
Redirecting to /bin/systemctl status logstash.service
β logstash.service - logstash
Loaded: loaded (/etc/systemd/system/logstash.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2017-07-07 16:44:45 MSK; 29min ago
Main PID: 668 (java)
CGroup: /system.slice/logstash.service
ββ668 /usr/bin/java -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+Disa...
Jul 07 16:44:45 s001is-wflogs.sibur.local systemd[1]: Started logstash.
Jul 07 16:44:45 s001is-wflogs.sibur.local systemd[1]: Starting logstash...
Jul 07 16:45:40 s001is-wflogs.sibur.local logstash[668]: ERROR StatusLogger No log4j2 configuration file found. Using default configuration: loggin...onsole.
Jul 07 16:46:03 s001is-wflogs.sibur.local logstash[668]: Sending Logstash's logs to /var/log/logstash which is now configured via log4j2.properties
Jul 07 16:46:26 s001is-wflogs.sibur.local logstash[668]: log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.Request...Cache).
Jul 07 16:46:26 s001is-wflogs.sibur.local logstash[668]: log4j:WARN Please initialize the log4j system properly.
Jul 07 16:46:26 s001is-wflogs.sibur.local logstash[668]: log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Hint: Some lines were ellipsized, use -l to show in full.
Filebeat
[root@qwsqws ~]# service filebeat status
β filebeat.service - filebeat
Loaded: loaded (/usr/lib/systemd/system/filebeat.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2017-07-07 17:00:02 MSK; 14min ago
Docs: https://www.elastic.co/guide/en/beats/filebeat/current/index.html
Main PID: 1568 (filebeat)
CGroup: /system.slice/filebeat.service
ββ1568 /usr/share/filebeat/bin/filebeat -c /etc/filebeat/filebeat.yml -path.home /usr/share/filebeat -path.config /etc/filebeat -path.data /var...
Jul 07 17:00:02 s001is-wflogs.sibur.local systemd[1]: Started filebeat.
Jul 07 17:00:02 s001is-wflogs.sibur.local systemd[1]: Starting filebeat...
Can't find anything in the logs.
Sincerely.