Git Product home page Git Product logo

fluent-plugin-process-ucs-syslog's Introduction

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.

fluent-plugin-process-ucs-syslog's People

Contributors

caiyeon avatar jaawasth avatar lagalbra avatar microsoftopensource avatar msftgits avatar pakdliu avatar prtyag avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.