# Metricbeat to Logstash on a remote server not working

**URL:** <https://discuss.elastic.co/t/metricbeat-to-logstash-on-a-remote-server-not-working/97904>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [August 22, 2017, 12:13pm UTC](https://discuss.elastic.co/t/metricbeat-to-logstash-on-a-remote-server-not-working/97904 "2017-08-22T12:13:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Syed\_Washfi\_Ahmad](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@Syed\_Washfi\_Ahmad](https://discuss.elastic.co/u/Syed_Washfi_Ahmad)\
**Post date:** [August 22, 2017, 12:13pm UTC](https://discuss.elastic.co/t/metricbeat-to-logstash-on-a-remote-server-not-working/97904/1 "2017-08-22T12:13:42Z")

</div>

I am new to elastic stack . I am trying to send metrics from one pc to another remote server using Metricbeat and logstash. Below are my configuration files,  
**_metricbeat.yml_** \*\*\*\*\*

```
 metricbeat.modules:

#------------------------------- System Module -------------------------------
- module: system
  metricsets:
    # CPU stats
    - cpu

    # System Load stats
    - load

    # Per CPU core stats
    #- core

    # IO stats
    #- diskio

    # Per filesystem stats
    - filesystem

    # File system summary stats
    - fsstat

    # Memory stats
    - memory

    # Network stats
    - network

    # Per process stats
    - process

    # Sockets (linux only)
    #- socket
  enabled: true
  period: 10s
  processes: ['.*']
  cpu_ticks : false

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

#================================ 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: ["127.0.0.1:5044"]

  # Optional SSL. By default is off.
  # List of root certificates for HTTPS server verifications
  ssl.certificate_authorities: ["/etc/pki/tls/certs/logstash-forwarder.crt"]

  # 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

```

**File** : **logstash.conf** \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

```
input {
      beats {
        port => 5044
        ssl => true
        ssl_certificate => "/etc/pki/tls/certs/logstash-forwarder.crt"
        ssl_key => "/etc/pki/tls/private/logstash-forwarder.key"
      }
    }

output {
      elasticsearch {
        hosts => ["localhost:9200"]
        sniffing => true
        manage_template => false
        index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
        document_type => "%{[@metadata][type]}"
      }
    }

```

I am running metricbeat service but can't get the index in Kibana (localhost:5601). What is the problem ?  
Thank you.

---

<div class="post-metadata">

**Author:** ![Oozza](https://avatars.discourse-cdn.com/v4/letter/o/76d3ee/32.png) [@Oozza](https://discuss.elastic.co/u/Oozza)\
**Post date:** [August 22, 2017, 12:29pm UTC](https://discuss.elastic.co/t/metricbeat-to-logstash-on-a-remote-server-not-working/97904/2 "2017-08-22T12:29:22Z")

</div>

In the metric beat configuration. `output.elasticsearch` is active and `output.logstash` is commented out.

---

<div class="post-metadata">

**Author:** ![Syed\_Washfi\_Ahmad](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@Syed\_Washfi\_Ahmad](https://discuss.elastic.co/u/Syed_Washfi_Ahmad)\
**Post date:** [August 22, 2017, 12:31pm UTC](https://discuss.elastic.co/t/metricbeat-to-logstash-on-a-remote-server-not-working/97904/3 "2017-08-22T12:31:47Z")

</div>

Thank you for your reply.

---

<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:** [September 19, 2017, 12:32pm UTC](https://discuss.elastic.co/t/metricbeat-to-logstash-on-a-remote-server-not-working/97904/4 "2017-09-19T12:32:00Z")

</div>

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