Filebeat
Configuration of log shipper 'Filebeat'
This section explains how you can configure 'Filebeat' like a log shipper.
In order for filebeat component to send the log details to the event gateway, users have to configure two elements.
Event Gateway Endpoint
Filebeat configuration
Step 1:
An example of Event Gateway Endpoint configuration is captured in the below configuration snippet
endpoints:
- name: fb1 # URL is implicit, http://ip:port/fb1
type: filebeat
stream: filebeat_1_logs
ssl: true
enabled: true
xpack_features: min
attrs:
site_code: dataccenter2
archive_name: filebeat_logs
port: 9200
An example of Linux-based Filebeat configuration is captured in the below configuration snippet.
Step 2: Update hosts details in /etc/filebeat/filebeat.yml file (using your favorite editor (e.g. vi )
Step 3: Restart the filebeat service (as shown in the below code snippet).
Note: In order to run the above commands, the user is expected to have 'sudo' privileges or run the command as a root to enable the required ports.
Last updated