Hello,
I've configured Filebeat on application host and ELK stack on another. Everything working good, but i have just beat.hostname and beat.name fileds in Logstash.
Is there a way to retrieve IP address of my application host?
Hello,
I've configured Filebeat on application host and ELK stack on another. Everything working good, but i have just beat.hostname and beat.name fileds in Logstash.
Is there a way to retrieve IP address of my application host?
Currently Filebeat doesn't export the IP address, but you can configure Filebeat to add an additional field that contains a static IP address that you configure in each configuration file. Please check fields option.
fields:
ip_address: 192.168.3.4
If this doesn't help you, feel free to open a new feature request here.
Hi Monica,
How do i access this custom variable ip_address on logstash end?
Thanks
You should be able to access in the same way as any other field with fields.ip_address
.
Hi ruflin,
I am new to filebeat and logstash, i tried the following and i get an exception on logstash end
logstash configuration:
input { beats { port => 5044 type =>trial samplevar => fields.portvariable } }
portvariable i am passing from filebeat. In anycase logstash throwing exception, saying invalid config. Please lmk what is wrong with the config
[fields][portvariable]
See logstash config docs + ongoing sub-chapters for logstash config file syntax: https://www.elastic.co/guide/en/logstash/current/configuration-file-structure.html
For manipulating events check out the docs filters section.
© 2020. All Rights Reserved - Elasticsearch
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.