Below is filebeat console ouput.
For FileB.log filebeat took almost one minute. Filebeat started harvesting file at 10:09:10.418Z and error logs populated to console at 10:10:13.460Z
filebeat console output for FileB.log
[root@tef3 filebeat-7.0.1-linux-x86_64]# 2020-07-13T10:09:09.365Z INFO instance/beat.go:571 Home path: [/var/ccelk/filebeat-7.0.1-linux-x86_64] Config path: [/var/ccelk/filebeat-7.0.1-linux-x86_64] Data path: [/var/ccelk/filebeat-7.0.1-linux-x86_64/data] Logs path: [/var/ccelk/filebeat-7.0.1-linux-x86_64/logs]
2020-07-13T10:09:09.828Z INFO instance/beat.go:579 Beat ID: 937868cc-5c1e-430c-a606-ca27eb6310f5
2020-07-13T10:09:09.828Z INFO [index-management.ilm] ilm/ilm.go:129 Policy name: filebeat-7.0.1
2020-07-13T10:09:09.831Z INFO [seccomp] seccomp/seccomp.go:93 Syscall filter could not be installed because the kernel does not support seccomp
2020-07-13T10:09:09.832Z INFO [beat] instance/beat.go:827 Beat info {"system_info": {"beat": {"path": {"config": "/var/ccelk/filebeat-7.0.1-linux-x86_64", "data": "/var/ccelk/filebeat-7.0.1-linux-x86_64/data", "home": "/var/ccelk/filebeat-7.0.1-linux-x86_64", "logs": "/var/ccelk/filebeat-7.0.1-linux-x86_64/logs"}, "type": "filebeat", "uuid": "937868cc-5c1e-430c-a606-ca27eb6310f5"}}}
2020-07-13T10:09:09.832Z INFO [beat] instance/beat.go:836 Build info {"system_info": {"build": {"commit": "cbffb4dcc8d1d2b0ef2078cb7d7546092ee86e57", "libbeat": "7.0.1", "time": "2019-04-29T12:09:21.000Z", "version": "7.0.1"}}}
2020-07-13T10:09:09.832Z INFO [beat] instance/beat.go:839 Go runtime info {"system_info": {"go": {"os":"linux","arch":"amd64","max_procs":8,"version":"go1.11.5"}}}
2020-07-13T10:09:09.833Z INFO [beat] instance/beat.go:843 Host info {"system_info": {"host": {"architecture":"x86_64","boot_time":"2019-12-04T12:22:27Z","containerized":true,"name":"tef3.localdomain","ip":["127.0.0.1/8","::1/128","15.112.155.23/21","fe80::250:56ff:fe86:d33a/64","192.168.122.1/24"],"kernel_version":"2.6.32-696.el6.x86_64","mac":["00:50:56:86:d3:3a","52:54:00:e0:bb:5a","52:54:00:e0:bb:5a"],"os":{"family":"redhat","platform":"redhat","name":"Red","version":"6.9 (Santiago)","major":6,"minor":9,"patch":0,"codename":"Santiago"},"timezone":"UTC","timezone_offset_sec":0,"id":"3a3653c3f20c73adeb4a3d630000031c"}}}
2020-07-13T10:09:09.834Z INFO [beat] instance/beat.go:872 Process info {"system_info": {"process": {"capabilities": {"inheritable":null,"permitted":["chown","dac_override","dac_read_search","fowner","fsetid","kill","setgid","setuid","setpcap","linux_immutable","net_bind_service","net_broadcast","net_admin","net_raw","ipc_lock","ipc_owner","sys_module","sys_rawio","sys_chroot","sys_ptrace","sys_pacct","sys_admin","sys_boot","sys_nice","sys_resource","sys_time","sys_tty_config","mknod","lease","audit_write","audit_control","setfcap","mac_override","mac_admin","syslog","wake_alarm","block_suspend","audit_read","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63"],"effective":["chown","dac_override","dac_read_search","fowner","fsetid","kill","setgid","setuid","setpcap","linux_immutable","net_bind_service","net_broadcast","net_admin","net_raw","ipc_lock","ipc_owner","sys_module","sys_rawio","sys_chroot","sys_ptrace","sys_pacct","sys_admin","sys_boot","sys_nice","sys_resource","sys_time","sys_tty_config","mknod","lease","audit_write","audit_control","setfcap","mac_override","mac_admin","syslog","wake_alarm","block_suspend","audit_read","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63"],"bounding":["chown","dac_override","dac_read_search","fowner","fsetid","kill","setgid","setuid","setpcap","linux_immutable","net_bind_service","net_broadcast","net_admin","net_raw","ipc_lock","ipc_owner","sys_module","sys_rawio","sys_chroot","sys_ptrace","sys_pacct","sys_admin","sys_boot","sys_nice","sys_resource","sys_time","sys_tty_config","mknod","lease","audit_write","audit_control","setfcap","mac_override","mac_admin","syslog","wake_alarm","block_suspend","audit_read","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63"],"ambient":null}, "cwd": "/var/ccelk/filebeat-7.0.1-linux-x86_64", "exe": "/var/ccelk/filebeat-7.0.1-linux-x86_64/filebeat", "name": "filebeat", "pid": 11756, "ppid": 11287, "seccomp": {"mode":""}, "start_time": "2020-07-13T10:09:08.500Z"}}}
2020-07-13T10:09:09.834Z INFO instance/beat.go:280 Setup Beat: filebeat; Version: 7.0.1
2020-07-13T10:09:09.891Z INFO [publisher] pipeline/module.go:97 Beat name: tef3.localdomain
2020-07-13T10:09:09.892Z INFO [monitoring] log/log.go:117 Starting metrics logging every 30s
2020-07-13T10:09:09.892Z INFO instance/beat.go:391 filebeat start running.
2020-07-13T10:09:09.892Z INFO registrar/migrate.go:104 No registry home found. Create: /var/ccelk/filebeat-7.0.1-linux-x86_64/data/registry/filebeat
2020-07-13T10:09:09.893Z INFO registrar/migrate.go:112 Initialize registry meta file
2020-07-13T10:09:10.103Z INFO registrar/registrar.go:108 No registry file found under: /var/ccelk/filebeat-7.0.1-linux-x86_64/data/registry/filebeat/data.json. Creating a new registry file.
2020-07-13T10:09:10.416Z INFO registrar/registrar.go:145 Loading registrar data from /var/ccelk/filebeat-7.0.1-linux-x86_64/data/registry/filebeat/data.json
2020-07-13T10:09:10.416Z INFO registrar/registrar.go:152 States Loaded from registrar: 0
2020-07-13T10:09:10.416Z WARN beater/filebeat.go:357 Filebeat is unable to load the Ingest Node pipelines for the configured modules because the Elasticsearch output is not configured/enabled. If you have already loaded the Ingest Node pipelines or are using Logstash pipelines, you can ignore this warning.
2020-07-13T10:09:10.416Z INFO crawler/crawler.go:72 Loading Inputs: 1
2020-07-13T10:09:10.417Z INFO log/input.go:138 Configured paths: [/home/anand/cucumbertests/delete/testno.log]
2020-07-13T10:09:10.417Z INFO input/input.go:114 Starting input of type: log; ID: 16296832146253287836
2020-07-13T10:09:10.418Z INFO crawler/crawler.go:106 Loading and starting Inputs completed. Enabled inputs: 1
2020-07-13T10:09:10.418Z INFO cfgfile/reload.go:150 Config reloader started
2020-07-13T10:09:10.418Z INFO cfgfile/reload.go:205 Loading of config files completed.
2020-07-13T10:09:10.418Z INFO log/harvester.go:254 Harvester started for file: /home/anand/cucumbertests/delete/testno.log
2020-07-13T10:09:12.832Z INFO add_cloud_metadata/add_cloud_metadata.go:346 add_cloud_metadata: hosting provider type not detected.
2020-07-13T10:09:39.896Z INFO [monitoring] log/log.go:144 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":280,"time":{"ms":284}},"total":{"ticks":460,"time":{"ms":471},"value":460},"user":{"ticks":180,"time":{"ms":187}}},"handles":{"limit":{"hard":4096,"soft":1024},"open":8},"info":{"ephemeral_id":"b225d3c0-41e7-4e5e-9ef6-8f4cfcb79440","uptime":{"ms":30553}},"memstats":{"gc_next":4194304,"memory_alloc":2051712,"memory_total":6809296,"rss":27127808}},"filebeat":{"events":{"active":5,"added":91,"done":86},"harvester":{"open_files":1,"running":1,"started":1}},"libbeat":{"config":{"module":{"running":0},"reloads":1},"output":{"type":"console"},"pipeline":{"clients":1,"events":{"active":1,"filtered":90,"total":91}}},"registrar":{"states":{"current":1,"update":87},"writes":{"success":87,"total":88}},"system":{"cpu":{"cores":8},"load":{"1":1.61,"15":0.88,"5":1.02,"norm":{"1":0.2013,"15":0.11,"5":0.1275}}}}}}
2020-07-13T10:10:09.895Z INFO [monitoring] log/log.go:144 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":480,"time":{"ms":198}},"total":{"ticks":750,"time":{"ms":288},"value":750},"user":{"ticks":270,"time":{"ms":90}}},"handles":{"limit":{"hard":4096,"soft":1024},"open":8},"info":{"ephemeral_id":"b225d3c0-41e7-4e5e-9ef6-8f4cfcb79440","uptime":{"ms":60551}},"memstats":{"gc_next":4194304,"memory_alloc":2722272,"memory_total":7479856,"rss":45056}},"filebeat":{"events":{"added":92,"done":92},"harvester":{"open_files":1,"running":1}},"libbeat":{"config":{"module":{"running":0}},"pipeline":{"clients":1,"events":{"active":1,"filtered":92,"total":92}}},"registrar":{"states":{"current":1,"update":92},"writes":{"success":92,"total":92}},"system":{"load":{"1":2.02,"15":0.93,"5":1.18,"norm":{"1":0.2525,"15":0.1163,"5":0.1475}}}}}}
{
"@timestamp": "2020-07-13T10:10:13.460Z",
"@metadata": {
"beat": "filebeat",
"type": "_doc",
"version": "7.0.1"
},
"agent": {
"version": "7.0.1",
"type": "filebeat",
"ephemeral_id": "b225d3c0-41e7-4e5e-9ef6-8f4cfcb79440",
"hostname": "tef3.localdomain",
"id": "937868cc-5c1e-430c-a606-ca27eb6310f5"
},
"log": {
"offset": 49266,
"file": {
"path": "/home/anand/cucumbertests/delete/testno.log"
}
},
"message": "2020-07-02 10:09:27,670 ERROR [fr.marben.diameter] (THREAD-TRANSPORT-IN) <> Exception java.io.IOException: Connection reset by peer(Connection reset by peer) caught, thrown by socketChannel.read in checkClosed method",
"type": "mylog",
"input": {
"type": "log"
},
"ecs": {
"version": "1.0.0"
},
"host": {
"name": "tef3.localdomain",
"containerized": true,
"hostname": "tef3.localdomain",
"architecture": "x86_64",
"os": {
"codename": "Santiago",
"platform": "redhat",
"version": "6.9 (Santiago)",
"family": "redhat",
"name": "Red",
"kernel": "2.6.32-696.el6.x86_64"
},
"id": "3a3653c3f20c73adeb4a3d630000031c"
}
}
{
"@timestamp": "2020-07-13T10:10:13.460Z",
"@metadata": {
"beat": "filebeat",
"type": "_doc",
"version": "7.0.1"
},
"log": {
"offset": 49484,
"file": {
"path": "/home/anand/cucumbertests/delete/testno.log"
}
},
"message": "2020-07-02 10:09:27,674 ERROR [com.hp.opencall.coam.ntf.producerImpl.AlarmNotificationImpl] (THREAD-PEER(DELO2SIM3)) <> AlarmNotification attributes are: ",
"input": {
"type": "log"
},
"type": "mylog",
"host": {
"os": {
"family": "redhat",
"name": "Red",
"kernel": "2.6.32-696.el6.x86_64",
"codename": "Santiago",
"platform": "redhat",
"version": "6.9 (Santiago)"
},
"id": "3a3653c3f20c73adeb4a3d630000031c",
"containerized": true,
"hostname": "tef3.localdomain",
"name": "tef3.localdomain",
"architecture": "x86_64"
},
"agent": {
"version": "7.0.1",
"type": "filebeat",
"ephemeral_id": "b225d3c0-41e7-4e5e-9ef6-8f4cfcb79440",
"hostname": "tef3.localdomain",
"id": "937868cc-5c1e-430c-a606-ca27eb6310f5"
},
"ecs": {
"version": "1.0.0"
}
}
{
"@timestamp": "2020-07-13T10:10:13.460Z",
"@metadata": {
"beat": "filebeat",
"type": "_doc",
"version": "7.0.1"
},
"log": {
"offset": 50679,
"file": {
"path": "/home/anand/cucumbertests/delete/testno.log"
}
},
"message": "2020-07-02 10:09:27,675 ERROR [com.hp.opencall.coam.ntf.producerImpl.AlarmNotificationImpl] (pool-5-thread-4) <> AlarmNotification attributes are: ",
"input": {
"type": "log"
},
"type": "mylog",
"ecs": {
"version": "1.0.0"
},
"host": {
"os": {
"kernel": "2.6.32-696.el6.x86_64",
"codename": "Santiago",
"platform": "redhat",
"version": "6.9 (Santiago)",
"family": "redhat",
"name": "Red"
},
"id": "3a3653c3f20c73adeb4a3d630000031c",
"name": "tef3.localdomain",
"containerized": true,
"hostname": "tef3.localdomain",
"architecture": "x86_64"
},
"agent": {
"id": "937868cc-5c1e-430c-a606-ca27eb6310f5",
"version": "7.0.1",
"type": "filebeat",
"ephemeral_id": "b225d3c0-41e7-4e5e-9ef6-8f4cfcb79440",
"hostname": "tef3.localdomain"
}
}