Filebeat
- coralogix
- April , 2017,04
Coralogix provides a seamless integration with Filebeat so you can send your logs from anywhere and parse them according to your needs.
Have Filebeat installed, for more information on how to install: https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-installation.html
Private Key – A unique ID which represents your company, this Id will be sent to your mail once you register to Coralogix.
Company Id – A unique number which represents your company. You can get your company id from the settings tab in the Coralogix dashbaord.
Application Name – The name of your main application, for example, a company named “SuperData” would probably insert the “SuperData” string parameter or if they want to debug their test environment they might insert the “SuperData– Test”.
SubSystem Name – Your application probably has multiple subsystems, for example: Backend servers, Middleware, Frontend servers etc. in order to help you examine the data you need, inserting the subsystem parameter is vital.
Open your Filebeat configuration file and configure it to use Logstash (Make sure you disable Elastic output). For more information about configuring filebeat to use logstash please refer to: https://www.elastic.co/guide/en/beats/filebeat/current/config-filebeat-logstash.html
Point your filebeat to output to Coralogix logstash server: logstashserver.coralogix.com:5044
In addition you should add Coralogix configuration from the General section.
Here is a basic example of filebeat.yml
#=========================== Filebeat prospectors =============================
filebeat.prospectors:
- input_type: log
paths:
- /path/to/log/*.log
fields:
PRIVATE_KEY: "111111-1111-1111-1111-1111111111"
COMPANY_ID: 123
APP_NAME: "My app"
SUB_SYSTEM: "Subsystem app"
#-------------------------- Elasticsearch output ------------------------------
#output.elasticsearch:
# Array of hosts to connect to.
# hosts: ["localhost:9200"]
#----------------------------- Logstash output --------------------------------
output.logstash:
# The Logstash hosts
hosts: ["logstashserver.coralogix.com:5044"]