Fluent Bit
Fluent Bit integration with PacketAI
Input
The following section defines the fluent-bit input section. for more details see fluent-bit input here
Filters
We use filters to add some PacketAI metadata to easily process. It's important to have packetai.cluster_name
and packetai.app_name
. These 2 fields help us to quickly add logpatterns and more easy to manage opensearch indexes.
Output
The output section is used to send the logs/metrics to PacketAI.
Logs
For logs the below output configuration is being used. We need to configure the Host
, Header
, and Match
sections.
The Host varies depending on your packetai URL
. Please check with PacketAI team if you are not sure which URL to use.
Headers X-PAI-TOKEN
and X-PAI-IID
needs to get it from packetai URL. After login, you can navigate to Deploy PacketAI/Agent/logstash click on credentials It will show X-PAI-TOKEN
and X-PAI-IID
, copy these values and replace YOUR_PAI_TOKEN
and YOUR_PAI_IID
.
Metrics
Similarly for Metrics we need configure the Host
, Header
, and Match
sections.
The Host
varies depending on your packetai URL
. Please check with PacketAI team if you are not sure which URL to use.
Headers
X-PAI-TOKEN
and X-PAI-IID
needs to get it from packetai URL
. After login, you can navigate to Deploy PacketAI/Agent/logstash
click on credentials It will show X-PAI-TOKEN
and X-PAI-IID
, copy these values and replace YOUR_PAI_TOKEN
and YOUR_PAI_IID
.
Example configuration
Last updated
Was this helpful?