Filter plugin for appending various field in the record from UCS syslog
Перейти к файлу
vishwaskumar-x11 469ba8b0a6
Merge pull request #19 from vishwaskumar-x11/vishwaskumar/update-fluentplugin-for-domainName
adding condition to use fluent plugin without domain name
2023-12-07 00:22:48 +05:30
lib/fluent/plugin modularising the function 2023-12-04 08:49:13 +05:30
test Avoid using invalid tokens by refreshing tokens (#17) 2020-12-16 14:09:59 -08:00
.gitignore Scrub username from syslog 2018-05-01 15:26:17 -07:00
Changelog added plugin 2018-03-06 10:49:42 -08:00
Gemfile added plugin 2018-03-06 10:49:42 -08:00
LICENSE Initial commit 2018-03-06 10:38:51 -08:00
README.md add trademark notice 2020-12-21 12:30:54 +05:30
Rakefile added plugin 2018-03-06 10:49:42 -08:00
SECURITY.md Update security md file 2020-12-18 15:20:34 +05:30
VERSION added plugin 2018-03-06 10:49:42 -08:00
fluent-plugin-process-ucs-syslog.gemspec added plugin 2018-03-06 10:49:42 -08:00

README.md

Filter plugin for appending various field in the record from UCS syslog for Fluentd

Requirements

fluent-plugin-process-ucs-syslog fluentd ruby
>= 1.0.0 >= v0.14.0 >= 2.1
< 1.0.0 >= v0.12.0 >= 1.9

Configuration

<filter **>
    @type add_machine_id
    ucsHostNameKey SyslogSource
    coloregion SJC2
    domain mydomain
    username myusername
    passwordFile /etc/password/ucsPassword
</filter>

Will add new hash to record call "machineId" using the detected chassis and blade.

Will check syslog message for the following regex pattern:

sys\/chassis-\d\/blade-\d

If not found, the message will get passed on unchanged. If found, will log in to UCS using the 'SyslogSource' record from the source and using mydomain\myusername and password in password file in /etc/password/ucsPassword. The login token will be cached in /tmp/token. It will then query UCS for the service profile associated with the chassis and blade id. Along with the provided COLO Region, the machine ID will be generated.

Machine ID format:

Cisco_UCS:<coloregion>:<serviceProfile>

Will also add record called "stage" using the detected FSM tag.

[FSM:BEGIN] => begin
[FSM:END] => end
[FSM:STAGE:REMOTE-ERROR] => nil

Will also add record called "event: using detected known events.

Power-on => Boot
Soft shutdown => Soft Shutdown
Hard shutdown => Hard Shutdown
Power-cycle => Restart

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.