SkyWalking
The Apache SkyWalking output plugin, allows to flush your records to a Apache SkyWalking OAP. The following instructions assumes that you have a fully operational Apache SkyWalking OAP in place.

Configuration Parameters

parameter
description
default
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

Apache SkyWalking output plugin supports TTL/SSL, for more details about the properties available and general configuration, please refer to the TLS/SSL section.

Getting Started

In order 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 Input & Output sections:
1
[INPUT]
2
Name cpu
3
4
[OUTPUT]
5
Name skywalking
6
svc_name dummy-service
7
svc_inst_name dummy-service-fluentbit
Copied!

Output Format

The format of the plugin output follows the data collect protocol.
For example, if we get log as follows,
1
{
2
"log": "This is the original log message"
3
}
Copied!
This message is packed into the following protocol format and written to the OAP via the REST API.
1
[{
2
"timestamp": 123456789,
3
"service": "dummy-service",
4
"serviceInstance": "dummy-service-fluentbit",
5
"body": {
6
"json": {
7
"json": "{\"log\": \"This is the original log message\"}"
8
}
9
}
10
}]
Copied!