Skip to content

PakDLiu/fluent-plugin-hanarp-message

Repository files navigation

Filter plugin for transforming syslog messages to hanarp message format for Fluentd

Requirements

fluent-plugin-record-modifier fluentd ruby
>= 1.0.0 >= v0.14.0 >= 2.1
< 1.0.0 >= v0.12.0 >= 1.9

Configuration

<filter **>
    @type hanarp_message
    ucsHostNameKey SyslogSource
</filter>

Will transform UCS syslog messages to hanarp messages to send to Service Bus Queue. It will look in the record hash for "SyslogSource" key to get hostname. Message format:

{
    "timestamp": <timestamp>,
    "event": "<event>",
    "data": {
        "machineId": "Cisco_UCS:<coloRegion>:<serviceProfileName>",
        "hostname": "<hostname>",
        "chassis": "<chassisSlot>",
        "blade": "<bladeSlot>",
        "serviceProfile": "<serviceProfileName>",
        "stage": "<stage>",
        "message": "<syslogMessage>"
    }
}

Plugin currently only expects syslog messages with either [FSM:BEGIN] or [FSM:END] tags and Power-on, Soft shutdown, Hard shutdown, or Power-cycle in the message. Please use the grep plugin to filter those messages out.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages