This doesn't forward anything in KIBANA atleast ...
TEST CASE 1 HOST ELK - CENTOS FILEBEAT MACHINE LOCAL CENTOS
No change in registry file size after restarting the filebeat again and again
/var/log/messages
Jul 23 06:31:47 lin-elk-devops systemd: Started logstash.
Jul 23 06:31:47 lin-elk-devops systemd: Starting logstash...
Jul 23 06:31:57 lin-elk-devops logstash: ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Jul 23 06:31:57 lin-elk-devops logstash: Sending Logstash's logs to /var/log/logstash which is now configured via log4j2.properties
Jul 23 06:31:58 lin-elk-devops systemd: logstash.service: main process exited, code=exited, status=1/FAILURE
Jul 23 06:31:58 lin-elk-devops systemd: Unit logstash.service entered failed state.
Jul 23 06:31:58 lin-elk-devops systemd: logstash.service failed.
When checking via journal ::
Jul 21 23:27:53 lin-elk-devops.ams.com systemd[1]: Started logstash.
Jul 21 23:27:53 lin-elk-devops.ams.com systemd[1]: Starting logstash...
Jul 21 23:28:04 lin-elk-devops.ams.com logstash[14286]: ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the c
Jul 21 23:28:05 lin-elk-devops.ams.com logstash[14286]: Sending Logstash's logs to /var/log/logstash which is now configured via log4j2.properties
Jul 21 23:28:05 lin-elk-devops.ams.com systemd[1]: logstash.service: main process exited, code=exited, status=1/FAILURE
Jul 21 23:28:05 lin-elk-devops.ams.com systemd[1]: Unit logstash.service entered failed state.
Jul 21 23:28:05 lin-elk-devops.ams.com systemd[1]: logstash.service failed.
Jul 21 23:28:05 lin-elk-devops.ams.com systemd[1]: logstash.service holdoff time over, scheduling restart
curl -XGET 'http://localhost:9200/logstash-*/_search?pretty'
{
"took" : 0,
"timed_out" : false,
"_shards" : {
"total" : 0,
"successful" : 0,
"failed" : 0
},
"hits" : {
"total" : 0,
"max_score" : 0.0,
"hits" : [ ]
}
}
sudo bin/logstash --path.settings=/etc/logstash/logstash.yml -f /etc/logstash/conf.d/test.conf tried to run manually to debug
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
WARNING: Could not find logstash.yml which is typically located in $LS_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults
Could not find log4j2 configuration at path //etc/logstash/logstash.yml/log4j2.properties. Using default config which logs to console
10:53:41.131 [[main]-pipeline-manager] INFO logstash.pipeline - Starting pipeline {"id"=>"main", "pipeline.workers"=>4, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>5, "pipeline.max_inflight"=>500}
10:53:41.875 [[main]-pipeline-manager] INFO logstash.inputs.beats - Beats inputs: Starting input listener {:address=>"0.0.0.0:5044"}
10:53:41.974 [[main]-pipeline-manager] INFO logstash.pipeline - Pipeline main started
10:53:42.121 [Api Webserver] INFO logstash.agent - Successfully started Logstash API endpoint {:port=>9600}