Filter plugin for transforming syslog messages to hanarp message format for Fluentd
Перейти к файлу
Prashant Tyagi 8edd094ed8
Merge pull request #3 from jaawasth/jaawasth/updatesecuritymd
Update security md file
2020-12-23 14:39:54 +05:30
lib/fluent/plugin added back stage 2018-07-20 13:40:48 -07:00
test added unknown event test 2018-07-23 10:00:16 -07:00
.gitignore Initial commit 2018-03-06 10:51:57 -08:00
Changelog added plugin 2018-03-06 10:53:43 -08:00
Gemfile added plugin 2018-03-06 10:53:43 -08:00
LICENSE Initial commit 2018-03-06 10:52:00 -08:00
README.md add trademark notice 2020-12-21 12:28:48 +05:30
Rakefile added plugin 2018-03-06 10:53:43 -08:00
SECURITY.md Update security md file 2020-12-18 15:17:46 +05:30
VERSION added plugin 2018-03-06 10:53:43 -08:00
fluent-plugin-hanarp-message.gemspec added plugin 2018-03-06 10:53:43 -08:00

README.md

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.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.