Metricbeat not sending information to Logstash

these are my files metricbeat.yml and test.config

metricbeat.yml fie

metricbeat.modules:
- module: system
  metricsets:
    - cpu
    - filesystem
    - memory
    - network
    - process
  enabled: true
  period: 10s
  processes: ['.*']
  cpu_ticks: false

setup.kibana:

output.logstash:
  hosts: ["localhost:5044"]

test.config file:

input {
  beats {
    port => 5044
	ssl => true
    ssl_certificate => "/etc/pki/tls/certs/logstash-forwarder.crt"
    ssl_key => "/etc/pki/tls/private/logstash-forwarder.key"
	"@metadata": { 
		"beat": "metricbeat", 
		"version": "6.2.2" 
		"type": "doc"
	}
}

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