Apache SkyWalking
The Apache SkyWalking output plugin lets you flush your records to an Apache SkyWalking OAP. The following instructions assume that you have an operational Apache SkyWalking OAP in place.
Configuration parameters
This plugin supports the following parameters:
host
Hostname of Apache SkyWalking OAP.
127.0.0.1
port
TCP port of the Apache SkyWalking OAP.
12800
auth_token
Authentication token if needed for Apache SkyWalking OAP.
none
svc_name
Service name that Fluent Bit belongs to.
sw-service
svc_inst_name
Service instance name of Fluent Bit.
fluent-bit
TLS / SSL
The Apache SkyWalking output plugin supports TLS/SSL. For more details about the properties available and general configuration, see TLS/SSL.
Get started
To start inserting records into an Apache SkyWalking service, you can run the plugin through the configuration file.
Configuration file
In your main configuration file append the following:
pipeline:
inputs:
- name: cpu
outputs:
- name: skywalking
svc_name: dummy-service
svc_inst_name: dummy-service-fluentbit
Output format
The format of the plugin output follows the data collect protocol.
For example, if the log is as follows:
{
"log": "This is the original log message"
}
This message is packed into the following protocol format and written to the OAP using the REST API.
[{
"timestamp": 123456789,
"service": "dummy-service",
"serviceInstance": "dummy-service-fluentbit",
"body": {
"json": {
"json": "{\"log\": \"This is the original log message\"}"
}
}
}]
Last updated
Was this helpful?