Filebeat not able to send logs to Elastic

Hi,
I am trying to send data to elastic search using filebeat. I started my elastic search and then filebeat. I am getting the bellow message

OS: Ubuntu 16.04
Filebeat version: filebeat-7.0.0
ElasticSearch version: elasticsearch-7.0.0


	log/log.go:144	Non-zero metrics in the last 30s	{"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":800,"time":{"ms":1}},"total":{"ticks":1520,"time":{"ms":81},"value":1520},"user":{"ticks":720,"time":{"ms":80}}},"handles":{"limit":{"hard":1048576,"soft":1024},"open":10},"info":{"ephemeral_id":"61171869-31b5-4be4-8207-d533d07df65e","uptime":{"ms":510033}},"memstats":{"gc_next":29731616,"memory_alloc":14944280,"memory_total":45481528}},"filebeat":{"harvester":{"open_files":4,"running":14}},"libbeat":{"config":{"module":{"running":0},"reloads":3},"pipeline":{"clients":1,"events":{"active":4117}}},"registrar":{"states":{"current":6}},"system":{"load":{"1":0.94,"15":1.16,"5":1.28,"norm":{"1":0.0783,"15":0.0967,"5":0.1067}}}}}}

Filebeat.yml


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

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

filebeat.inputs:
- type: log
  enabled: true

  # Paths that should be crawled and fetched. Glob based paths.
  paths:
    - /var/log/*.log
  


#============================= 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: false

#================================ General =====================================



#============================== 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.


# The cloud.auth setting overwrites the `output.elasticsearch.username` and
# `output.elasticsearch.password` settings. The format is `:`.
#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: ["localhost:9200"]

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

#----------------------------- Logstash output --------------------------------
#output.logstash:
  # The Logstash hosts
  #hosts: ["localhost:5044"]

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

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

# Sets log level. The default log level is info.
# Available log levels are: error, warning, info, debug
#logging.level: debug

# 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: ["*"]

#============================== Xpack 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.
#xpack.monitoring.enabled: false

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

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

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

Do you have a more complete log? There are events in the local queue, but the output did not yet process or ACK any. Any IO errors?

Try running filebeat with debug logs enabled by running filebeat with -d '*'.

This is what I get when I run using debug mode ./filebeat -e -d publish

filebeat.log

Sorry, I can't open the link.

You can access now.
I have given internal users to access it earlier. Sorry for it.

checking the logs the license check fails:

... invalid license found, requires a basic or a valid trial license and received Open source ...

Which Elasticsearch version have you installed? You need at least Elasticsearch with Basic enabled for the Filebeat version you are running. Alternatively download and install the OSS Filebeat version.

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