Fluentd
- 1.
- 2.Create a configuration file
fluent.conf,
add the following
Replace
log_file
pipeline_id
, and signalflex_api_key
accordingly<source>
@type tail
<parse>
@type none
</parse>
path ${your_log_file}
tag signalflex
</source>
<match signalflex>
@type http
endpoint http://localhost:8080/batch
<format>
@type single_value
</format>
headers {"pipeline":${pipeline_id}, "api_key":$signalflex_spi_key}
</match>
3. Start Fluentd daemon
$fluentd -c ./fluent/signalflex.conf -vv &
Last modified 2yr ago