Filebeat Harvester not starting

Hello,

We have installed Filebeat on docker container connecting to logstah on linux server. It was working fine till a week back. AWS machine got restarted and post that, logstash is not harvesting new files. Harvesters are not starting only. pls let me know the issue?

docker-compose.yml

version: "3.2"

services: 
  filebeat: 
    command: "filebeat -e -d * -strict.perms=false"
    container_name: filebeat
    image: "docker.elastic.co/beats/filebeat:${ELASTIC_VERSION:-7.8.0}"
    user: root
    volumes: 
      - type: bind
        source: ./filebeat.yml
        target: /usr/share/filebeat/filebeat.yml 
      - type: bind
        source: /var/run/docker.sock
        target: /var/run/docker.sock
        #read_only: true
        #Container Metrics
      - type: bind
        source: /var/lib/docker/containers/
        target: /var/lib/docker/containers/
        #read_only: true
      - type: bind
        source: /opt/hc/services/jmx/data/
        target: /opt/hc/services/jmx/data/
        #read_only: true
      - type: bind
        source: /usr/share/filebeat/bin/data/
        target: /usr/share/filebeat/bin/data/
        #read_only: true
      - type: bind
        source: /var/log/filebeat
        target: /var/log/filebeat
    logging:
      driver: "json-file"
      options:
        max-size: "10m"
        max-file: "10"
   
volumes: 
  filebeat: ~

filebeat.yml

##################### Filebeat Configuration Example #########################

# This file is an example configuration file highlighting only the most common
# options. The filebeat.reference.yml file from the same directory contains all the
# supported options with more comments. You can use it as a reference.
#
# You can find the full configuration reference here:
# https://www.elastic.co/guide/en/beats/filebeat/index.html

# For more available modules and options, please see the filebeat.reference.yml sample
# configuration file.

#=========================== Filebeat inputs =============================

filebeat.inputs:

# CORE: Used for loading JMX data
- type: log
  enabled: true
  paths:
    - "/opt/hc/services/jmx/data/*.json"
  json.keys_under_root: true
  json.add_error_key: true
  fields:
    index: hc-jmxcore
    hc_type: jmxcore


# 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: true

  # Paths that should be crawled and fetched. Glob based paths.
#  paths:
#    - /var/log/*.log
    #- c:\programdata\elasticsearch\logs\*

  # Exclude lines. A list of regular expressions to match. It drops the lines that are
  # matching any regular expression from the list.
  #exclude_lines: ['^DBG']

  # Include lines. A list of regular expressions to match. It exports the lines that are
  # matching any regular expression from the list.
  #include_lines: ['^ERR', '^WARN']

  # Exclude files. A list of regular expressions to match. Filebeat drops the files that
  # are matching any regular expression from the list. By default, no files are dropped.
  #exclude_files: ['.gz$']

  # Optional additional fields. These fields can be freely picked
  # to add additional information to the crawled log files for filtering
  #fields:
  #  level: debug
  #  review: 1

  ### 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: true

  # 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: true

#================================ 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
filebeat.registry.path: registry
filebeat.registry.file_permissions: 0600
filebeat.registry.flush: 60s

#============================== Dashboards =====================================
# These settings control loading the sample dashboards to the Kibana index. Loading
# the dashboards is disabled by default and can be enabled either by setting the
# options here or by using the `setup` command.
#setup.dashboards.enabled: true

# The URL from where to download the dashboards archive. By default this URL
# has a value which is computed based on the Beat name and version. For released
# versions, this URL points to the dashboard archive on the artifacts.elastic.co
# website.
#setup.dashboards.url:

#============================== 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: "localhost: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.
output.console:
  pretty: true

#-------------------------- Elasticsearch output ------------------------------
#output.elasticsearch:
  # Array of hosts to connect to.
  #hosts: ["32]

  # Optional protocol and basic auth credentials.
  #protocol: "https"
  #username: "elastic"
  #password: "changeme"

#----------------------------- Logstash output --------------------------------
#output.logstash:
  # The Logstash hosts
  #hosts: ["10.206.2.97:5000"]

  # Optional SSL. By default is off.
  # List of root certificates for HTTPS server verifications
  #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]

  # Certificate for SSL client authentication
  #ssl.certificate: "/etc/pki/client/cert.pem"

  # Client Certificate Key
  #ssl.key: "/etc/pki/client/cert.key"


#================================ Processors =====================================

# Configure processors to enhance or manipulate events generated by the beat.

processors:
  - add_host_metadata: ~
  - add_cloud_metadata: ~
  - add_docker_metadata: ~
  - add_kubernetes_metadata: ~

#================================ Logging =====================================

# Sets log level. The default log level is info.
# Available log levels are: error, warning, info, debug
logging.level: debug
logging.to_files: true
logging.files:
  path: /var/log/filebeat
  name: filebeatout.log
  keepfiles: 7
  permissions: 0644

# At debug level, you can selectively enable logging only for some components.
# To enable all selectors use ["*"]. Examples of other selectors are "beat",
# "publish", "service".
#logging.selectors: ["*"]

#============================== X-Pack Monitoring ===============================
# filebeat can export internal metrics to a central Elasticsearch monitoring
# cluster.  This requires xpack monitoring to be enabled in Elasticsearch.  The
# reporting is disabled by default.

# Set to true to enable the monitoring reporter.
#monitoring.enabled: true

# Sets the UUID of the Elasticsearch cluster under which monitoring data for this
# Filebeat instance will appear in the Stack Monitoring UI. If output.elasticsearch
# is enabled, the UUID is derived from the Elasticsearch cluster referenced by output.elasticsearch.
#monitoring.cluster_uuid:

# Uncomment to send the metrics to Elasticsearch. Most settings from the
# Elasticsearch output are accepted here as well.
# Note that the settings should point to your Elasticsearch *monitoring* cluster.
# Any setting that is not set is automatically inherited from the Elasticsearch
# output configuration, so if you have the Elasticsearch output configured such
# that it is pointing to your Elasticsearch monitoring cluster, you can simply
# uncomment the following line.
#monitoring.elasticsearch:

#================================= Migration ==================================

# This allows to enable 6.7 migration aliases
#migration.6_to_7.enabled: true

outlog:

docker-compose up
Starting filebeat ... done
Attaching to filebeat
filebeat    | 2022-04-21T09:54:59.130Z  INFO    instance/beat.go:647    Home path: [/usr/share/filebeat] Config path: [/usr/share/filebeat] Data path: [/usr/share/filebeat/data] Logs path: [/usr/share/filebeat/logs]
filebeat    | 2022-04-21T09:54:59.130Z  DEBUG   [beat]  instance/beat.go:699    Beat metadata path: /usr/share/filebeat/data/meta.json
filebeat    | 2022-04-21T09:54:59.130Z  INFO    instance/beat.go:655    Beat ID: 86e89d93-8ccd-42cb-aefa-2e93ff31a33c
filebeat    | 2022-04-21T09:54:59.132Z  DEBUG   [docker]        docker/client.go:48     Docker client will negotiate the API version on the first request.
filebeat    | 2022-04-21T09:54:59.132Z  DEBUG   [add_cloud_metadata]    add_cloud_metadata/providers.go:126     add_cloud_metadata: starting to fetch metadata, timeout=3s
filebeat    | 2022-04-21T09:54:59.133Z  DEBUG   [add_docker_metadata]   add_docker_metadata/add_docker_metadata.go:87   add_docker_metadata: docker environment not detected: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info: dial unix /var/run/docker.sock: connect: permission denied
filebeat    | 2022-04-21T09:54:59.134Z  DEBUG   [add_cloud_metadata]    add_cloud_metadata/providers.go:162     add_cloud_metadata: received disposition for gcp after 2.03846ms. result=[provider:gcp, error=failed with http status code 404, metadata={}]
filebeat    | 2022-04-21T09:54:59.134Z  DEBUG   [add_cloud_metadata]    add_cloud_metadata/providers.go:162     add_cloud_metadata: received disposition for aws after 2.148849ms. result=[provider:aws, error=<nil>, metadata={"account":{"id":"517778363869"},"availability_zone":"eu-central-1a","image":{"id":"ami-08b6d44b4f6f7b279"},"instance":{"id":"i-07dc6a2d5d45b258b"},"machine":{"type":"m5.xlarge"},"provider":"aws","region":"eu-central-1"}]
filebeat    | 2022-04-21T09:54:59.134Z  DEBUG   [add_cloud_metadata]    add_cloud_metadata/providers.go:129     add_cloud_metadata: fetchMetadata ran for 2.196417ms
filebeat    | 2022-04-21T09:54:59.134Z  INFO    [add_cloud_metadata]    add_cloud_metadata/add_cloud_metadata.go:93     add_cloud_metadata: hosting provider type detected as aws, metadata={"account":{"id":"517778363869"},"availability_zone":"eu-central-1a","image":{"id":"ami-08b6d44b4f6f7b279"},"instance":{"id":"i-07dc6a2d5d45b258b"},"machine":{"type":"m5.xlarge"},"provider":"aws","region":"eu-central-1"}
filebeat    | 2022-04-21T09:54:59.134Z  DEBUG   [processors]    processors/processor.go:101     Generated new processors: add_host_metadata=[netinfo.enabled=[true], cache.ttl=[5m0s]], add_cloud_metadata={"account":{"id":"517778363869"},"availability_zone":"eu-central-1a","image":{"id":"ami-08b6d44b4f6f7b279"},"instance":{"id":"i-07dc6a2d5d45b258b"},"machine":{"type":"m5.xlarge"},"provider":"aws","region":"eu-central-1"}, add_docker_metadata=[match_fields=[] match_pids=[process.pid, process.ppid]], add_kubernetes_metadata
filebeat    | 2022-04-21T09:54:59.134Z  DEBUG   [seccomp]       seccomp/seccomp.go:117  Loading syscall filter  {"seccomp_filter": {"no_new_privs":true,"flag":"tsync","policy":{"default_action":"errno","syscalls":[{"names":["accept","accept4","access","arch_prctl","bind","brk","chmod","chown","clock_gettime","clone","close","connect","dup","dup2","epoll_create","epoll_create1","epoll_ctl","epoll_pwait","epoll_wait","exit","exit_group","fchdir","fchmod","fchown","fcntl","fdatasync","flock","fstat","fstatfs","fsync","ftruncate","futex","getcwd","getdents","getdents64","geteuid","getgid","getpeername","getpid","getppid","getrandom","getrlimit","getrusage","getsockname","getsockopt","gettid","gettimeofday","getuid","inotify_add_watch","inotify_init1","inotify_rm_watch","ioctl","kill","listen","lseek","lstat","madvise","mincore","mkdirat","mmap","mprotect","munmap","nanosleep","newfstatat","open","openat","pipe","pipe2","poll","ppoll","pread64","pselect6","pwrite64","read","readlink","readlinkat","recvfrom","recvmmsg","recvmsg","rename","renameat","rt_sigaction","rt_sigprocmask","rt_sigreturn","sched_getaffinity","sched_yield","sendfile","sendmmsg","sendmsg","sendto","set_robust_list","setitimer","setsockopt","shutdown","sigaltstack","socket","splice","stat","statfs","sysinfo","tgkill","time","tkill","uname","unlink","unlinkat","wait4","waitid","write","writev"],"action":"allow"}]}}}
filebeat    | 2022-04-21T09:54:59.134Z  INFO    [seccomp]       seccomp/seccomp.go:124  Syscall filter successfully installed
filebeat    | 2022-04-21T09:54:59.134Z  INFO    [beat]  instance/beat.go:983    Beat info       {"system_info": {"beat": {"path": {"config": "/usr/share/filebeat", "data": "/usr/share/filebeat/data", "home": "/usr/share/filebeat", "logs": "/usr/share/filebeat/logs"}, "type": "filebeat", "uuid": "86e89d93-8ccd-42cb-aefa-2e93ff31a33c"}}}
filebeat    | 2022-04-21T09:54:59.134Z  INFO    [beat]  instance/beat.go:992    Build info      {"system_info": {"build": {"commit": "f79387d32717d79f689d94fda1ec80b2cf285d30", "libbeat": "7.8.0", "time": "2020-06-14T18:15:37.000Z", "version": "7.8.0"}}}
filebeat    | 2022-04-21T09:54:59.134Z  INFO    [beat]  instance/beat.go:995    Go runtime info {"system_info": {"go": {"os":"linux","arch":"amd64","max_procs":4,"version":"go1.13.10"}}}
filebeat    | 2022-04-21T09:54:59.135Z  DEBUG   [kubernetes]    add_kubernetes_metadata/kubernetes.go:138       Could not create kubernetes client using in_cluster config: unable to build kube config due to error: invalid configuration: no configuration has been provided    {"libbeat.processor": "add_kubernetes_metadata"}
filebeat    | 2022-04-21T09:54:59.135Z  INFO    [beat]  instance/beat.go:999    Host info       {"system_info": {"host": {"architecture":"x86_64","boot_time":"2022-04-15T15:30:40Z","containerized":true,"name":"ef48132d858d","ip":["127.0.0.1/8","::1/128","172.18.0.2/16","fe80::42:acff:fe12:2/64"],"kernel_version":"3.10.0-1160.31.1.el7.x86_64","mac":["02:42:ac:12:00:02"],"os":{"family":"redhat","platform":"centos","name":"CentOS Linux","version":"7 (Core)","major":7,"minor":8,"patch":2003,"codename":"Core"},"timezone":"UTC","timezone_offset_sec":0,"id":"83a8f1f835d84a9a9bf5417cecaf0c8e"}}}
filebeat    | 2022-04-21T09:54:59.136Z  INFO    [beat]  instance/beat.go:1028   Process info    {"system_info": {"process": {"capabilities": {"inheritable":["chown","dac_override","fowner","fsetid","kill","setgid","setuid","setpcap","net_bind_service","net_raw","sys_chroot","mknod","audit_write","setfcap"],"permitted":["chown","dac_override","fowner","fsetid","kill","setgid","setuid","setpcap","net_bind_service","net_raw","sys_chroot","mknod","audit_write","setfcap"],"effective":["chown","dac_override","fowner","fsetid","kill","setgid","setuid","setpcap","net_bind_service","net_raw","sys_chroot","mknod","audit_write","setfcap"],"bounding":["chown","dac_override","fowner","fsetid","kill","setgid","setuid","setpcap","net_bind_service","net_raw","sys_chroot","mknod","audit_write","setfcap"],"ambient":null}, "cwd": "/usr/share/filebeat", "exe": "/usr/share/filebeat/filebeat", "name": "filebeat", "pid": 1, "ppid": 0, "seccomp": {"mode":"filter","no_new_privs":false}, "start_time": "2022-04-21T09:54:58.770Z"}}}
filebeat    | 2022-04-21T09:54:59.136Z  INFO    instance/beat.go:310    Setup Beat: filebeat; Version: 7.8.0
filebeat    | 2022-04-21T09:54:59.136Z  DEBUG   [beat]  instance/beat.go:336    Initializing output plugins
filebeat    | 2022-04-21T09:54:59.136Z  DEBUG   [publisher]     pipeline/consumer.go:137        start pipeline event consumer
filebeat    | 2022-04-21T09:54:59.136Z  INFO    [publisher]     pipeline/module.go:113  Beat name: ef48132d858d
filebeat    | 2022-04-21T09:54:59.137Z  WARN    beater/filebeat.go:156  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.
filebeat    | 2022-04-21T09:54:59.137Z  INFO    [monitoring]    log/log.go:118  Starting metrics logging every 30s
filebeat    | 2022-04-21T09:54:59.138Z  INFO    instance/beat.go:463    filebeat start running.
filebeat    | 2022-04-21T09:54:59.138Z  DEBUG   [test]  registrar/migrate.go:159        isFile(/usr/share/filebeat/data/registry) -> false
filebeat    | 2022-04-21T09:54:59.138Z  DEBUG   [test]  registrar/migrate.go:159        isFile() -> false
filebeat    | 2022-04-21T09:54:59.138Z  DEBUG   [test]  registrar/migrate.go:152        isDir(/usr/share/filebeat/data/registry/filebeat) -> true
filebeat    | 2022-04-21T09:54:59.138Z  DEBUG   [test]  registrar/migrate.go:159        isFile(/usr/share/filebeat/data/registry/filebeat/meta.json) -> true
filebeat    | 2022-04-21T09:54:59.138Z  DEBUG   [registrar]     registrar/migrate.go:51 Registry type '0' found
filebeat    | 2022-04-21T09:54:59.138Z  DEBUG   [registrar]     registrar/registrar.go:125      Registry file set to: /usr/share/filebeat/data/registry/filebeat/data.json
filebeat    | 2022-04-21T09:54:59.138Z  WARN    beater/filebeat.go:339  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.
filebeat    | 2022-04-21T09:54:59.138Z  INFO    registrar/registrar.go:145      Loading registrar data from /usr/share/filebeat/data/registry/filebeat/data.json
filebeat    | 2022-04-21T09:54:59.138Z  INFO    registrar/registrar.go:152      States Loaded from registrar: 0
filebeat    | 2022-04-21T09:54:59.138Z  INFO    [crawler]       beater/crawler.go:71    Loading Inputs: 5
filebeat    | 2022-04-21T09:54:59.138Z  DEBUG   [input] log/config.go:204       recursive glob enabled
filebeat    | 2022-04-21T09:54:59.138Z  DEBUG   [input] log/input.go:164        exclude_files: []. Number of states: 0
filebeat    | 2022-04-21T09:54:59.138Z  DEBUG   [input] log/input.go:185        input with previous states loaded: 0
filebeat    | 2022-04-21T09:54:59.139Z  INFO    log/input.go:152        Configured paths: [/opt/hc/services/jmx/data/*.json]
filebeat    | 2022-04-21T09:54:59.139Z  INFO    [crawler]       beater/crawler.go:141   Starting input (ID: %d)13957986938022330823
filebeat    | 2022-04-21T09:54:59.139Z  INFO    [crawler]       beater/crawler.go:108   Loading and starting Inputs completed. Enabled inputs: 1
filebeat    | 2022-04-21T09:54:59.139Z  DEBUG   [registrar]     registrar/registrar.go:278      Starting Registrar
filebeat    | 2022-04-21T09:54:59.139Z  DEBUG   [input] log/input.go:191        Start next scan
filebeat    | 2022-04-21T09:54:59.139Z  DEBUG   [input] log/input.go:212        input states cleaned up. Before: 0, After: 0, Pending: 0
filebeat    | 2022-04-21T09:54:59.139Z  INFO    cfgfile/reload.go:164   Config reloader started
filebeat    | 2022-04-21T09:55:09.139Z  DEBUG   [input] input/input.go:141      Run input
filebeat    | 2022-04-21T09:55:09.139Z  DEBUG   [cfgfile]       cfgfile/reload.go:194   Scan for new config files
filebeat    | 2022-04-21T09:55:09.139Z  DEBUG   [input] log/input.go:191        Start next scan
filebeat    | 2022-04-21T09:55:09.139Z  DEBUG   [input] log/input.go:212        input states cleaned up. Before: 0, After: 0, Pending: 0
filebeat    | 2022-04-21T09:55:09.139Z  DEBUG   [cfgfile]       cfgfile/reload.go:213   Number of module configs found: 0
filebeat    | 2022-04-21T09:55:09.139Z  DEBUG   [reload]        cfgfile/list.go:62      Starting reload procedure, current runners: 0
filebeat    | 2022-04-21T09:55:09.139Z  DEBUG   [reload]        cfgfile/list.go:80      Start list: 0, Stop list: 0
filebeat    | 2022-04-21T09:55:19.139Z  DEBUG   [input] input/input.go:141      Run input
filebeat    | 2022-04-21T09:55:19.139Z  DEBUG   [input] log/input.go:191        Start next scan
filebeat    | 2022-04-21T09:55:19.139Z  DEBUG   [input] log/input.go:212        input states cleaned up. Before: 0, After: 0, Pending: 0
filebeat    | 2022-04-21T09:55:19.140Z  DEBUG   [cfgfile]       cfgfile/reload.go:194   Scan for new config files
filebeat    | 2022-04-21T09:55:29.140Z  INFO    [monitoring]    log/log.go:145  Non-zero metrics in the last 30s        {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":40,"time":{"ms":44}},"total":{"ticks":120,"time":{"ms":126},"value":120},"user":{"ticks":80,"time":{"ms":82}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":8},"info":{"ephemeral_id":"2d71290f-31b9-4c98-b0fd-7af3745681e5","uptime":{"ms":30034}},"memstats":{"gc_next":9502000,"memory_alloc":6557776,"memory_total":18411608,"rss":39145472},"runtime":{"goroutines":22}},"filebeat":{"harvester":{"open_files":0,"running":0}},"libbeat":{"config":{"module":{"running":0},"reloads":1,"scans":2},"output":{"type":"console"},"pipeline":{"clients":1,"events":{"active":0}}},"registrar":{"states":{"current":0}},"system":{"cpu":{"cores":4},"load":{"1":0.41,"15":0.23,"5":0.26,"norm":{"1":0.1025,"15":0.0575,"5":0.065}}}}}}
filebeat    | 2022-04-21T09:55:29.140Z  DEBUG   [input] input/input.go:141      Run input
filebeat    | 2022-04-21T09:55:29.140Z  DEBUG   [input] log/input.go:191        Start next scan
filebeat    | 2022-04-21T09:55:29.140Z  DEBUG   [input] log/input.go:212        input states cleaned up. Before: 0, After: 0, Pending: 0
filebeat    | 2022-04-21T09:55:29.140Z  DEBUG   [cfgfile]       cfgfile/reload.go:194   Scan for new config files
filebeat    | 2022-04-21T09:55:39.140Z  DEBUG   [input] input/input.go:141      Run input
filebeat    | 2022-04-21T09:55:39.140Z  DEBUG   [input] log/input.go:191        Start next scan
filebeat    | 2022-04-21T09:55:39.140Z  DEBUG   [input] log/input.go:212        input states cleaned up. Before: 0, After: 0, Pending: 0
filebeat    | 2022-04-21T09:55:39.140Z  DEBUG   [cfgfile]       cfgfile/reload.go:194   Scan for new config files
filebeat    | 2022-04-21T09:55:49.140Z  DEBUG   [input] input/input.go:141      Run input
filebeat    | 2022-04-21T09:55:49.140Z  DEBUG   [input] log/input.go:191        Start next scan
filebeat    | 2022-04-21T09:55:49.140Z  DEBUG   [cfgfile]       cfgfile/reload.go:194   Scan for new config files
filebeat    | 2022-04-21T09:55:49.141Z  DEBUG   [input] log/input.go:212        input states cleaned up. Before: 0, After: 0, Pending: 0
filebeat    | 2022-04-21T09:55:59.139Z  INFO    [monitoring]    log/log.go:145  Non-zero metrics in the last 30s        {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":40,"time":{"ms":4}},"total":{"ticks":120,"time":{"ms":7},"value":120},"user":{"ticks":80,"time":{"ms":3}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":8},"info":{"ephemeral_id":"2d71290f-31b9-4c98-b0fd-7af3745681e5","uptime":{"ms":60032}},"memstats":{"gc_next":9502000,"memory_alloc":6889512,"memory_total":18743344},"runtime":{"goroutines":22}},"filebeat":{"harvester":{"open_files":0,"running":0}},"libbeat":{"config":{"module":{"running":0},"scans":3},"pipeline":{"clients":1,"events":{"active":0}}},"registrar":{"states":{"current":0}},"system":{"load":{"1":0.25,"15":0.22,"5":0.24,"norm":{"1":0.0625,"15":0.055,"5":0.06}}}}}}
filebeat    | 2022-04-21T09:55:59.141Z  DEBUG   [input] input/input.go:141      Run input
filebeat    | 2022-04-21T09:55:59.141Z  DEBUG   [input] log/input.go:191        Start next scan
filebeat    | 2022-04-21T09:55:59.141Z  DEBUG   [input] log/input.go:212        input states cleaned up. Before: 0, After: 0, Pending: 0
filebeat    | 2022-04-21T09:55:59.141Z  DEBUG   [cfgfile]       cfgfile/reload.go:194   Scan for new config files
filebeat    | 2022-04-21T09:56:09.141Z  DEBUG   [input] input/input.go:141      Run input
filebeat    | 2022-04-21T09:56:09.141Z  DEBUG   [input] log/input.go:191        Start next scan
filebeat    | 2022-04-21T09:56:09.141Z  DEBUG   [input] log/input.go:212        input states cleaned up. Before: 0, After: 0, Pending: 0
filebeat    | 2022-04-21T09:56:09.141Z  DEBUG   [cfgfile]       cfgfile/reload.go:194   Scan for new config files
filebeat    | 2022-04-21T09:56:19.141Z  DEBUG   [input] input/input.go:141      Run input
filebeat    | 2022-04-21T09:56:19.141Z  DEBUG   [input] log/input.go:191        Start next scan
filebeat    | 2022-04-21T09:56:19.141Z  DEBUG   [input] log/input.go:212        input states cleaned up. Before: 0, After: 0, Pending: 0
filebeat    | 2022-04-21T09:56:19.141Z  DEBUG   [cfgfile]       cfgfile/reload.go:194   Scan for new config files
filebeat    | 2022-04-21T09:56:29.140Z  INFO    [monitoring]    log/log.go:145  Non-zero metrics in the last 30s        {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":50,"time":{"ms":5}},"total":{"ticks":130,"time":{"ms":7},"value":130},"user":{"ticks":80,"time":{"ms":2}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":8},"info":{"ephemeral_id":"2d71290f-31b9-4c98-b0fd-7af3745681e5","uptime":{"ms":90034}},"memstats":{"gc_next":9502000,"memory_alloc":7218040,"memory_total":19071872},"runtime":{"goroutines":22}},"filebeat":{"harvester":{"open_files":0,"running":0}},"libbeat":{"config":{"module":{"running":0},"scans":3},"pipeline":{"clients":1,"events":{"active":0}}},"registrar":{"states":{"current":0}},"system":{"load":{"1":0.15,"15":0.22,"5":0.22,"norm":{"1":0.0375,"15":0.055,"5":0.055}}}}}}
filebeat    | 2022-04-21T09:56:29.141Z  DEBUG   [input] input/input.go:141      Run input
filebeat    | 2022-04-21T09:56:29.141Z  DEBUG   [input] log/input.go:191        Start next scan
filebeat    | 2022-04-21T09:56:29.142Z  DEBUG   [input] log/input.go:212        input states cleaned up. Before: 0, After: 0, Pending: 0
filebeat    | 2022-04-21T09:56:29.142Z  DEBUG   [cfgfile]       cfgfile/reload.go:194   Scan for new config files
filebeat    | 2022-04-21T09:56:39.142Z  DEBUG   [input] input/input.go:141      Run input
filebeat    | 2022-04-21T09:56:39.142Z  DEBUG   [input] log/input.go:191        Start next scan
filebeat    | 2022-04-21T09:56:39.142Z  DEBUG   [input] log/input.go:212        input states cleaned up. Before: 0, After: 0, Pending: 0
filebeat    | 2022-04-21T09:56:39.142Z  DEBUG   [cfgfile]       cfgfile/reload.go:194   Scan for new config files
filebeat    | 2022-04-21T09:56:49.142Z  DEBUG   [input] input/input.go:141      Run input
filebeat    | 2022-04-21T09:56:49.142Z  DEBUG   [input] log/input.go:191        Start next scan
filebeat    | 2022-04-21T09:56:49.142Z  DEBUG   [input] log/input.go:212        input states cleaned up. Before: 0, After: 0, Pending: 0
filebeat    | 2022-04-21T09:56:49.142Z  DEBUG   [cfgfile]       cfgfile/reload.go:194   Scan for new config files
filebeat    | 2022-04-21T09:56:59.140Z  INFO    [monitoring]    log/log.go:145  Non-zero metrics in the last 30s        {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":50,"time":{"ms":7}},"total":{"ticks":140,"time":{"ms":13},"value":140},"user":{"ticks":90,"time":{"ms":6}}},"handles":{"limit":{"hard":1048576,"soft":1048576},"open":8},"info":{"ephemeral_id":"2d71290f-31b9-4c98-b0fd-7af3745681e5","uptime":{"ms":120032}},"memstats":{"gc_next":11576864,"memory_alloc":5796192,"memory_total":19401424},"runtime":{"goroutines":22}},"filebeat":{"harvester":{"open_files":0,"running":0}},"libbeat":{"config":{"module":{"running":0},"scans":3},"pipeline":{"clients":1,"events":{"active":0}}},"registrar":{"states":{"current":0}},"system":{"load":{"1":0.09,"15":0.21,"5":0.19,"norm":{"1":0.0225,"15":0.0525,"5":0.0475}}}}}}
filebeat    | 2022-04-21T09:56:59.142Z  DEBUG   [input] input/input.go:141      Run input
filebeat    | 2022-04-21T09:56:59.142Z  DEBUG   [input] log/input.go:191        Start next scan
filebeat    | 2022-04-21T09:56:59.142Z  DEBUG   [input] log/input.go:212        input states cleaned up. Before: 0, After: 0, Pending: 0
filebeat    | 2022-04-21T09:56:59.143Z  DEBUG   [cfgfile]       cfgfile/reload.go:194   Scan for new config files



Thanks

Hi @Bhanu_Praveen,

Based on the logs Filebeat is not finding any fine under /opt/hc/services/jmx/data/*.json to harvest.

Could you double check the mount is working from within the container?

Also the logs show that no states were loaded from the registy:

filebeat    | 2022-04-21T09:54:59.138Z  INFO    registrar/registrar.go:152      States Loaded from registrar: 0

That also makes me believe there is something odd going on with those mounts.

Hi,

Permission denied when I am accessing the mount location from within the container. Pls let me know any solution? I tried few but no luck.

Then it's a problem with your docker setup, not with Filebeat.

One thing I noticed on your Filebeat command is that -strict.perms=false has got only one dash (-), our documentation uses two dashes: --strict.perms=false.

Also check the folder permissions on the host and make sure Docker can access them/it's possible to mount them inside a container.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.