wajika
(wajika)
July 22, 2019, 6:16am
1
I want to transfer the data to different networks
How should I set the url of logstash/filebeat?
filebeat conf
output.redis:
hosts: ["redis.xxx.net:7887 "]
key: data
db: 0
timeout: 30
Failed to connect to redis(tcp://redis.xxx.net:7887): dial tcp 1.1.1.1:7887: i/o timeout
logstash conf
output {
kafka {
bootstrap_servers => "kafka.xxx.net:8998 "
topic_id => "data"
codec => json
compression_type => "gzip"
}
}
No data received on kafka
pierhugues
(Pier-Hugues Pellerin)
July 25, 2019, 6:34pm
2
Hello @wajika ,
I am not sure I understand what you are trying to achieve here, I am looking at your diagram, I see Kafka -> Filebeat or Logstash -> nginx -> Redis?
Can you clarify a bit more your problem or use case?
wajika
(wajika)
July 29, 2019, 10:47am
3
Thanks for your reply. my English is not good.
My problem has been solved. but I found a small problem.
The logstash tcp input mode cannot process multiple rows of data.
For example, the collection of nginx logs, which are not line-by-line transfers.
wajika
(wajika)
July 29, 2019, 10:51am
4
Yeah, that's what I wanted (Kafka -> Filebeat or Logstash -> nginx -> Redis?), but now I'm doing it in a different way
admlko
July 29, 2019, 11:27am
5
If you are receiving multiline messages, you have to change the codec for the input. Default is 'line' (https://www.elastic.co/guide/en/logstash/7.2/plugins-codecs-line.html ), which uses '\n' as a delimiter.
Check out other codecs: https://www.elastic.co/guide/en/logstash/7.2/codec-plugins.html
wajika
(wajika)
July 31, 2019, 8:43am
6
No, the problem is this.
filebeat tcp output >> logstash tcp input .not line-by-line transfers.
admlko
July 31, 2019, 9:43am
7
What?
You cannot just change the architecture and not describe the issue and expect to get good answers
system
(system)
Closed
August 28, 2019, 9:43am
8
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.