arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

SkyWalking

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

hashtag
Configuration Parameters

parameter
description
default

hashtag
TLS / SSL

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

hashtag
Getting Started

In order to start inserting records into an Apache SkyWalking service, you can run the plugin through the configuration file:

hashtag
Configuration File

In your main configuration file append the following Input & Output sections:

hashtag
Output Format

The format of the plugin output follows the .

For example, if we get log as follows,

This message is packed into the following protocol format and written to the OAP via the REST API.

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

TLS/SSLarrow-up-right
data collect protocolarrow-up-right

fluent-bit

[INPUT]
    Name cpu

[OUTPUT]
    Name skywalking
    svc_name dummy-service
    svc_inst_name dummy-service-fluentbit
{
   "log": "This is the original log message"
}
[{
  "timestamp": 123456789,
  "service": "dummy-service",
  "serviceInstance": "dummy-service-fluentbit",
  "body": {
    "json": {
      "json": "{\"log\": \"This is the original log message\"}"
    }
  } 
}]