I am trying to send Metricbeat ----> Logstash-1 -------> Logstash-2 -------> Elasticsearch.
I tried both tcp and Lumberjack protocols. Successfully start both logstshes but not found data in elasticsearch.
``````````lOGSTASH configuration using Lumberjack:``````````````````````
LOGSTASH-1 OUTPUT
output {
lumberjack {
codec => json
hosts => [ "X.X.X.X" ]
port => 5044
ssl_certificate => "/etc/logstash/conf.d/ca.crt"
}
}
LOGSTASH-2 CONFIGURATION::
input {
beats {
codec => json
port => 5044
ssl => true
ssl_certificate => "/etc/logstash/conf.d/USLA-PAPP-ELK03.crt"
ssl_key => "/etc/logstash/conf.d/pkcs8.key"
}
}
output {
elasticsearch {
hosts => ["node3:9200"]
manage_template => "false"
index => "%{[@metadata][beat]}-%{[@metadata][version]}"
user => "elastic"
password => "xxxxxx"
}
}
I am not able to see the data in kibana. Please help me. I tried both jason and json_lines but no luck.
How do i test logstash-1 sending data to logstash-2 and then to elasticsearch?
Issues until i resolved while using Lumberjack;
- no vaild key error: assign cert and keys to logstash user permission
- use ca cert in logstash-1 output for ssl and http error.