# Filebeat not able to send logs to Elastic

**URL:** <https://discuss.elastic.co/t/filebeat-not-able-to-send-logs-to-elastic/178627>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 26, 2019, 10:41am UTC](https://discuss.elastic.co/t/filebeat-not-able-to-send-logs-to-elastic/178627 "2019-04-26T10:41:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![parsu](https://avatars.discourse-cdn.com/v4/letter/p/58956e/32.png) [@parsu](https://discuss.elastic.co/u/parsu)\
**Post date:** [April 26, 2019, 10:41am UTC](https://discuss.elastic.co/t/filebeat-not-able-to-send-logs-to-elastic/178627/1 "2019-04-26T10:41:09Z")

</div>

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

```

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [April 26, 2019, 3:41pm UTC](https://discuss.elastic.co/t/filebeat-not-able-to-send-logs-to-elastic/178627/2 "2019-04-26T15:41:38Z")

</div>

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 '*'`.

---

<div class="post-metadata">

**Author:** ![parsu](https://avatars.discourse-cdn.com/v4/letter/p/58956e/32.png) [@parsu](https://discuss.elastic.co/u/parsu)\
**Post date:** [April 27, 2019, 3:16am UTC](https://discuss.elastic.co/t/filebeat-not-able-to-send-logs-to-elastic/178627/3 "2019-04-27T03:16:09Z")

</div>

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

[filebeat.log](https://drive.google.com/open?id=1XrcX2XpNSPMWeNgGJL6cTC_rSdmrLX3y)

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [April 29, 2019, 2:49pm UTC](https://discuss.elastic.co/t/filebeat-not-able-to-send-logs-to-elastic/178627/4 "2019-04-29T14:49:28Z")

</div>

Sorry, I can't open the link.

---

<div class="post-metadata">

**Author:** ![parsu](https://avatars.discourse-cdn.com/v4/letter/p/58956e/32.png) [@parsu](https://discuss.elastic.co/u/parsu)\
**Post date:** [April 29, 2019, 7:06pm UTC](https://discuss.elastic.co/t/filebeat-not-able-to-send-logs-to-elastic/178627/5 "2019-04-29T19:06:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [April 30, 2019, 10:52am UTC](https://discuss.elastic.co/t/filebeat-not-able-to-send-logs-to-elastic/178627/6 "2019-04-30T10:52:52Z")

</div>

checking the logs the license check fails:

```auto
... 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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 28, 2019, 10:53am UTC](https://discuss.elastic.co/t/filebeat-not-able-to-send-logs-to-elastic/178627/7 "2019-05-28T10:53:03Z")

</div>

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