i'm new to ELK was trying to configure filebeat on multiple instances. i have different types of logs.
kafka logs
zookeeper logs
hdfs logs
yarn logs
.
.
.
on all these instances i was trying to configure file beat and from around 50 filebeats i was sending logs to single logstash. So i was wondering how can i differentiate all this logs. do it works with multple index names or filers on logstash or something else??
can i get official repo for logstash and filebeat.
I was trying to configure logstash on my instance
i was getting facing issue.
i dont know if i was doing anything wrong
I tried on both ubuntu & centos i was facing same issue with 5.0.1 but 2.4 works for me.I wan't to use latest version.
This repo i was trying to use.
[root@ip-****** ]# service logstash status** logstash: unrecognized service
I was doing these setps to configure logstash
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
Add the following in your /etc/yum.repos.d/ directory in a file with a .repo suffix, for example logstash.repo
[logstash-5.x]
name=Elastic repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
And your repository is ready for use. You can install it with:
It looks like you've defined to beats inputs, both trying to listen on the same port. Keep in mind that Logstash reads all files in /etc/logstash/conf.d. Perhaps you have a left-over backup file or similar?
My question was,
I know i can send 10 kafka logs using beats to single logstash, but my question was, if i have for example 10 kafka (beats) , 5 zookeepers(beats), 4 spark(beats) ......
can i send all different types to single logstash with different indexs ??
input {
beats {
type => "kafka"
port => "5044"
}
beats {
type => "zookeeper"
port => "5044"
}
can i send all different types to single logstash with different indexs ??
Yes, but you obviously can't have multiple beats listeners using the same port. Either use multiple ports or use a single listener and use some other method to distinguish between different kind of events.
if possible can you please provide me sample syntax !! can you please tell me some other ports than 5044, i will try those. [quote="magnusbaeck, post:12, topic:67399"]
Yes, but you obviously can't have multiple beats listeners using the same port. Either use multiple ports or use a single listener and use some other method to distinguish between different kind of events.
[/quote]
i was not sure where i was wrong, was creating index only for zookeeper logs but not for kafka logs.
can you please correct syntax if i was doing anything wrong
input {
beats {
type => "kafka"
port => "5044"
}
beats {
type => "zookeeper"
port => "5045"
}
This might not be what Logstash is complaining about. I can't spot what it otherwise could be though. Comment out blocks to narrow things down and consider running the config file through e.g. hexdump to make sure you don't have any invisible garbage characters.
I was trying something like this, but was not able to see any logs & index in kibana.
my main problem was trying to get different indexs for different files i have
please help me with this issue.
if [@metadata][beat] == "filebeat" {
elasticsearch {
hosts => "localhost:9200"
manage_template => false
# Use the Filebeat document_type value for the Elasticsearch index name.
index => "%{[@metadata][type]}-%{+YYYY.MM.dd}"
document_type => "log"
}
}
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.