Hi,
Thanks for following up, I' ve deleted the kibana indices
- I' ve stopped Kibana and beats
- deleted the kibana indices: curl -XDELETE http://192.168.2.220:9200/.kibana*
- starting Kibana again (verified everything is gone)
- started beats
But unfortunately the filebeat index is not loading anymore.
I've reverted the beats ubuntu machine, reinstalled filebeats, configured .yml, started it but no filebeat index appears in kibana.
Here is the filebeat.yml
###################### Filebeat Configuration Example #########################
#Removed for character limit
#=========================== Filebeat inputs =============================
filebeat.inputs:
# Each - is an input. Most options can be set at the input level, so
# you can use different inputs for various configurations.
# Below are the input specific configurations.
- type: log
# Change to true to enable this input configuration.
enabled: false
# Paths that should be crawled and fetched. Glob based paths.
paths:
- /var/log/*.log
#- c:\programdata\elasticsearch\logs\*
# Removed for char limit
### Multiline options
# Multiline can be used for log messages spanning multiple lines. This is common
# for Java Stack Traces or C-Line Continuation
# The regexp Pattern that has to be matched. The example pattern matches all lines starting with [
#multiline.pattern: ^\[
# Defines if the pattern set under pattern should be negated or not. Default is false.
#multiline.negate: false
# Match can be set to "after" or "before". It is used to define if lines should be append to a pattern
# that was (not) matched before or after or as long as a pattern is not matched based on negate.
# Note: After is the equivalent to previous and before is the equivalent to to next in Logstash
#multiline.match: after
#============================= Filebeat modules ===============================
filebeat.config.modules:
# Glob pattern for configuration loading
path: ${path.config}/modules.d/*.yml
# Set to true to enable config reloading
reload.enabled: false
# Period on which files under path should be checked for changes
#reload.period: 10s
#==================== Elasticsearch template setting ==========================
setup.template.settings:
index.number_of_shards: 1
#index.codec: best_compression
#_source.enabled: false
#================================ General =====================================
# The name of the shipper that publishes the network data. It can be used to group
# all the transactions sent by a single shipper in the web interface.
#name:
# The tags of the shipper are included in their own field with each
# transaction published.
#tags: ["service-X", "web-tier"]
# Optional fields that you can specify to add additional information to the
# output.
#fields:
# env: staging
#============================== Dashboards =====================================
#Removed for char limit in discussion
#============================== Kibana =====================================
# Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
# This requires a Kibana endpoint configuration.
setup.kibana:
# Kibana Host
# Scheme and port can be left out and will be set to the default (http and 5601)
# In case you specify and additional path, the scheme is required: http://localhost:5601/path
# IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
host: "http://192.168.2.220:5601"
# Kibana Space ID
# ID of the Kibana Space into which the dashboards should be loaded. By default,
# the Default Space will be used.
#space.id:
#============================= Elastic Cloud ==================================
# These settings simplify using Filebeat with the Elastic Cloud (https://cloud.elastic.co/).
# The cloud.id setting overwrites the `output.elasticsearch.hosts` and
# `setup.kibana.host` options.
# You can find the `cloud.id` in the Elastic Cloud web UI.
#cloud.id:
# The cloud.auth setting overwrites the `output.elasticsearch.username` and
# `output.elasticsearch.password` settings. The format is `<user>:<pass>`.
#cloud.auth:
#================================ Outputs =====================================
# Configure what output to use when sending the data collected by the beat.
#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["http://192.168.2.220:9200"]
# Protocol - either `http` (default) or `https`.
#protocol: "https"
# Authentication credentials - either API key or username/password.
#api_key: "id:api_key"
#username: "elastic"
#password: "changeme"
Nothing changed after this
Also here the output of indexes from dev console:
Here are some of the logs from filebeat
amdin@amdin-virtual-machine:~$ journalctl --unit=filebeat -f
-- Logs begin at Wed 2020-03-25 12:38:30 EET. --
May 13 11:05:21 amdin-virtual-machine filebeat[3405]: 2020-05-13T11:05:21.846+0300 INFO [monitoring] log/log.go:145 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":40},"total":{"ticks":280,"time":{"ms":16},"value":280},"user":{"ticks":240,"time":{"ms":16}}},"handles":{"limit":{"hard":4096,"soft":1024},"open":9},"info":{"ephemeral_id":"37ea3a38-a1b6-45ae-bf4b-3dbf20ed2eeb","uptime":{"ms":900039}},"memstats":{"gc_next":9688320,"memory_alloc":4852784,"memory_total":22531448},"runtime":{"goroutines":16}},"filebeat":{"harvester":{"open_files":0,"running":0}},"libbeat":{"config":{"module":{"running":0}},"pipeline":{"clients":0,"events":{"active":0}}},"registrar":{"states":{"current":0}},"system":{"load":{"1":0.05,"15":0.17,"5":0.07,"norm":{"1":0.05,"15":0.17,"5":0.07}}}}}}
Here is the status of kibana on ELK server:
ubuntu@elk:~$ sudo service kibana status
[sudo] password for ubuntu:
β kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2020-05-13 10:17:36 EEST; 54min ago
Main PID: 770 (node)
Tasks: 11 (limit: 19004)
Memory: 821.4M
CGroup: /system.slice/kibana.service
ββ770 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
May 13 11:10:08 elk kibana[770]: {"type":"response","@timestamp":"2020-05-13T08:10:08Z","tags":[],"pid":770,"method":"post","statusCode":200,"req":{"url":"/api/index_management/indices/reload","method":"post","headers":{"host":"192.168.2.220:5601","connection":"keep-ali>
lines 1-19/19 (END)
Here are the logs from kibana on server:
ubuntu@elk:~$ journalctl --unit=kibana -f
-- Logs begin at Tue 2020-05-05 11:26:52 EEST. --
May 13 11:11:38 elk kibana[770]: {"type":"response","@timestamp":"2020-05-13T08:11:38Z","tags":["access:console"],"pid":770,"method":"post","statusCode":200,"req":{"url":"/api/console/proxy?path=_aliases&method=GET","method":"post","headers":{"host":"192.168.2.220:5601","connection":"keep-alive","content-length":"0","accept":"text/plain, */*; q=0.01","kbn-version":"7.6.2","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36","origin":"http://192.168.2.220:5601","referer":"http://192.168.2.220:5601/app/kibana","accept-encoding":"gzip, deflate","accept-language":"en-US,en;q=0.9"},"remoteAddress":"192.168.2.52","userAgent":"192.168.2.52","referer":"http://192.168.2.220:5601/app/kibana"},"res":{"statusCode":200,"responseTime":14,"contentLength":9},"message":"POST /api/console/proxy?path=_aliases&method=GET 200 14ms - 9.0B"}
May 13 11:11:38 elk kibana[770]: {"type":"response","@timestamp":"2020-05-13T08:11:38Z","tags":["access:console"],"pid":770,"method":"post","statusCode":200,"req":{"url":"/api/console/proxy?path=_mapping&method=GET","method":"post","headers":{"host":"192.168.2.220:5601","connection":"keep-alive","content-length":"0","accept":"text/plain, */*; q=0.01","kbn-version":"7.6.2","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36","origin":"http://192.168.2.220:5601","referer":"http://192.168.2.220:5601/app/kibana","accept-encoding":"gzip, deflate","accept-language":"en-US,en;q=0.9"},"remoteAddress":"192.168.2.52","userAgent":"192.168.2.52","referer":"http://192.168.2.220:5601/app/kibana"},"res":{"statusCode":200,"responseTime":29,"contentLength":9},"message":"POST /api/console/proxy?path=_mapping&method=GET 200 29ms - 9.0B"}
May 13 11:11:38 elk kibana[770]: {"type":"response","@timestamp":"2020-05-13T08:11:38Z","tags":[],"pid":770,"method":"post","statusCode":200,"req":{"url":"/api/index_management/indices/reload","method":"post","headers":{"host":"192.168.2.220:5601","connection":"keep-alive","content-length":"17","kbn-version":"7.6.2","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36","content-type":"application/json","accept":"*/*","origin":"http://192.168.2.220:5601","referer":"http://192.168.2.220:5601/app/kibana","accept-encoding":"gzip, deflate","accept-language":"en-US,en;q=0.9"},"remoteAddress":"192.168.2.52","userAgent":"192.168.2.52","referer":"http://192.168.2.220:5601/app/kibana"},"res":{"statusCode":200,"responseTime":14,"contentLength":9},"message":"POST /api/index_management/indices/reload 200 14ms - 9.0B"}
May 13 11:11:38 elk kibana[770]: {"type":"response","@timestamp":"2020-05-13T08:11:38Z","tags":["access:console"],"pid":770,"method":"post","statusCode":200,"req":{"url":"/api/console/proxy?path=_template&method=GET","method":"post","headers":{"host":"192.168.2.220:5601","connection":"keep-alive","content-length":"0","accept":"text/plain, */*; q=0.01","kbn-version":"7.6.2","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36","origin":"http://192.168.2.220:5601","referer":"http://192.168.2.220:5601/app/kibana","accept-encoding":"gzip, deflate","accept-language":"en-US,en;q=0.9"},"remoteAddress":"192.168.2.52","userAgent":"192.168.2.52","referer":"http://192.168.2.220:5601/app/kibana"},"res":{"statusCode":200,"responseTime":31,"contentLength":9},"message":"POST /api/console/proxy?path=_template&method=GET 200 31ms - 9.0B"}
Here is the status of elasticsearch on server:
ubuntu@elk:~$ sudo service elasticsearch status
β elasticsearch.service - Elasticsearch
Loaded: loaded (/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/elasticsearch.service.d
ββoverride.conf
Active: active (running) since Wed 2020-05-13 10:17:55 EEST; 56min ago
Docs: http://www.elastic.co
Main PID: 763 (java)
Tasks: 110 (limit: 19004)
Memory: 8.8G
CGroup: /system.slice/elasticsearch.service
ββ 763 /usr/share/elasticsearch/jdk/bin/java -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitStackTraceInFastThrow -Dio.netty.noUn>
ββ1064 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/bin/controller
May 13 10:51:51 elk elasticsearch[763]: ]*)))?(InnoDB_queue_wait: (?<NUMBER:mysql.slowlog.innodb.queue_wait.sec:float>(?:(?:(?<![0-9.+-])(?>[+-]?(?:(?:[0-9]+(?:\.[0-9]+)?)|(?:\.[0-9]+))))))(?:([ #
May 13 10:51:51 elk elasticsearch[763]: ]*)))?(InnoDB_pages_distinct: (?<NUMBER:mysql.slowlog.innodb.pages_distinct:long>(?:(?:(?<![0-9.+-])(?>[+-]?(?:(?:[0-9]+(?:\.[0-9]+)?)|(?:\.[0-9]+))))))(?:([ #
May 13 10:51:51 elk elasticsearch[763]: ]*)))?(Log_slow_rate_type: (?<WORD:mysql.slowlog.log_slow_rate_type>\b\w+\b)(?:([ #
May 13 10:51:51 elk elasticsearch[763]: ]*)))?(Log_slow_rate_limit: (?<NUMBER:mysql.slowlog.log_slow_rate_limit:long>(?:(?:(?<![0-9.+-])(?>[+-]?(?:(?:[0-9]+(?:\.[0-9]+)?)|(?:\.[0-9]+))))))(?:([ #
May 13 10:51:51 elk elasticsearch[763]: ]*)))?(?:(# explain:.*
May 13 10:51:51 elk elasticsearch[763]: |#\s*
May 13 10:51:51 elk elasticsearch[763]: )*)?(use (?<WORD:mysql.slowlog.schema>\b\w+\b);
May 13 10:51:51 elk elasticsearch[763]: )?SET timestamp=(?<NUMBER:mysql.slowlog.timestamp:long>(?:(?:(?<![0-9.+-])(?>[+-]?(?:(?:[0-9]+(?:\.[0-9]+)?)|(?:\.[0-9]+))))));
May 13 10:51:51 elk elasticsearch[763]: (?<GREEDYMULTILINE:mysql.slowlog.query>(.|
May 13 10:51:51 elk elasticsearch[763]: )*)/
Please help in this I've been struggling since days.
Regards,