Error: No matching indices found: No indices match pattern "filebeat-*"

No matching indices found: No indices match pattern "filebeat-*"

Less Info
OK
Error: No matching indices found: No indices match pattern "filebeat-*"
at http://localhost:5601/bundles/kibana.bundle.js?v=15976:231:26352
at processQueue (http://localhost:5601/bundles/commons.bundle.js?v=15976:39:9912)
at http://localhost:5601/bundles/commons.bundle.js?v=15976:39:10805
at Scope.$digest (http://localhost:5601/bundles/commons.bundle.js?v=15976:39:21741)
at Scope.$apply (http://localhost:5601/bundles/commons.bundle.js?v=15976:39:24520)
at done (http://localhost:5601/bundles/commons.bundle.js?v=15976:38:9495)
at completeRequest (http://localhost:5601/bundles/commons.bundle.js?v=15976:38:13952)
at XMLHttpRequest.xhr.onload (http://localhost:5601/bundles/commons.bundle.js?v=15976:38:14690)

#=========================== Filebeat prospectors =============================

filebeat.prospectors:

Each - is a prospector. Most options can be set at the prospector level, so

you can use different prospectors for various configurations.

Below are the prospector specific configurations.

  • type: log

    Change to true to enable this prospector configuration.

    enabled: true

    Paths that should be crawled and fetched. Glob based paths.

    paths:

    • /var/log/*.log
      #- c:\programdata\elasticsearch\logs*

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

Period on which files under path should be checked for changes

#reload.period: 10s

#==================== Elasticsearch template setting ==========================

setup.template.settings:
index.number_of_shards: 3
#index.codec: best_compression
#_source.enabled: false

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

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"

#----------------------------- Logstash output --------------------------------
output.logstash:

The Logstash hosts

hosts: ["localhost:5044"]

Hi,

Indices are created after you start sending logs using filebeat to outputs. Have started to forward logs to your outputs?

Yes
2017-10-13T09:38:10+02:00 INFO Harvester started for file: /mylog.log
2017-10-13T09:38:10+02:00 INFO Harvester started for file: mylog.log
2017-10-13T09:38:10+02:00 INFO Harvester started for file: mylog.log
2017-10-13T09:38:10+02:00 INFO Harvester started for file: mylog.log
2017-10-13T09:38:10+02:00 INFO Harvester started for file: mylog.log
2017-10-13T09:38:10+02:00 INFO Harvester started for file: mylog
2017-10-13T09:38:10+02:00 INFO Harvester started for file: mylog.log
2017-10-13T09:38:10+02:00 INFO Harvester started for file: mylog.log
2017-10-13T09:38:10+02:00 INFO Harvester started for file: mylog.log
2017-10-13T09:38:11+02:00 ERR Failed to connect: dial tcp localhost:5044: getsockopt: connection refused
2017-10-13T09:38:13+02:00 ERR Failed to connect: dial tcp localhost:5044: getsockopt: connection refused

Could you please share your whole filebeat log? Also, please format it using </>.

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

filebeat.prospectors:

Each - is a prospector. Most options can be set at the prospector level, so

you can use different prospectors for various configurations.

Below are the prospector specific configurations.

  • type: log

    Change to true to enable this prospector configuration.

    enabled: false

    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

    Mutiline 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

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

#============================== 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 CLI flag or the setup command.

#setup.dashboards.enabled: false

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"

#============================= 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 outputs to use when sending the data collected by the beat.

Multiple outputs may be used.

#-------------------------- 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"

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

Sets log level. The default log level is info.

Available log levels are: critical, 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: ["*"]
#filebeat.registry_file: registry
#registry_file: /var/lib/filebeat/
/>

i am getting this message as well

2017-10-13T14:40:41+02:00 INFO Non-zero metrics in the last 30s: beat.memstats.memory_alloc=7824 beat.memstats.memory_total=7824
2017-10-13T14:41:11+02:00 INFO Non-zero metrics in the last 30s: beat.memstats.memory_alloc=8032 beat.memstats.memory_total=8032
2017-10-13T14:41:41+02:00 INFO Non-zero metrics in the last 30s: beat.memstats.memory_alloc=8240 beat.memstats.memory_total=8240

Please properly format log output and config files using the </> button. Your post containing the config file is pretty unreadable.

Give the error message: getsockopt: connection refused, is Logstash even running?

logstash is running and listening on port 5044

filebeat.config.modules: 
  path: "${path.config}/modules.d/*.yml"
  reload.enabled: false
filebeat.prospectors: 
  - 
    enabled: true
    paths: 
      - /var/log/*.log
    type: log
output.logstash: 
  hosts: "localhost:5044"
setup.kibana: 
  hosts: "localhost:5601"
  template: 
    name: filebeat
    overwrite: false
    path: filebeat.template.json
my logstash file 
input {
 beats {
         port => 5400
   }    
}
  output {
    elasticsearch {
    hosts => "localhost:9200"
    index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
    document_type => "%{[@metadata][type]}"
}
}

hm... In your logstash config you are using port 5400 and in filebeat port 5044.

i rectified the port , i am getting this message

 INFO Non-zero metrics in the last 30s: beat.memstats.gc_next=4473924 beat.memstats.memory_alloc=3322928 beat.memstats.memory_total=3322928 libbeat.config.reloads=1 libbeat.output.type=logstash

any ideas how to resolve this issue?

Hi

Filebeat not indexing , getting message below - please help

2017-10-15T10:37:52+02:00 INFO Non-zero metrics in the last 30s: beat.memstats.memory_alloc=12800 beat.memstats.memory_total=12800
2017-10-15T10:38:22+02:00 INFO Non-zero metrics in the last 30s: beat.memstats.memory_alloc=12320 beat.memstats.memory_total=12320
2017-10-15T10:38:52+02:00 INFO Non-zero metrics in the last 30s: beat.memstats.memory_alloc=-37176 beat.memstats.memory_total=13008
2017-10-15T10:39:22+02:00 INFO Non-zero metrics in the last 30s: beat.memstats.memory_alloc=14136 beat.memstats.memory_total=14136
2017-10-15T10:39:52+02:00 INFO Non-zero metrics in the last 30s: beat.memstats.memory_alloc=13008 beat.memstats.memory_total=13008
2017-10-15T10:40:22+02:00 INFO Non-zero metrics in the last 30s: beat.memstats.memory_alloc=15008 beat.memstats.memory_total=15008
2017-10-15T10:40:52+02:00 INFO Non-zero metrics in the last 30s: beat.memstats.memory_alloc=-42232 beat.memstats.memory_total=9632
2017-10-15T10:41:22+02:00 INFO Non-zero metrics in the last 30s: beat.memstats.memory_alloc=16824 beat.memstats.memory_total=16824
2017-10-15T10:41:52+02:00 INFO Non-zero metrics in the last 30s: beat.memstats.memory_alloc=10528 beat.memstats.memory_total=10528
2017-10-15T10:42:22+02:00 INFO Non-zero metrics in the last 30s: beat.memstats.memory_alloc=12528 beat.memstats.memory_total=12528

These are just internal metrics being printed every 30 seconds. You have a more complete log output?

What kind of files do you index?

You have any modules enabled? Filebeat modules are designed to work with Elasticsearch Ingest Node, integration with Logstash is not yet easily available.

Thanks i managed to sort the issue.
logstash was not listening to the right portPreformatted text

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