Last active
November 2, 2015 08:47
-
-
Save faxm0dem/8734fa29dc57eacc1ba2 to your computer and use it in GitHub Desktop.
syslog-ng facter integration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
syslog_ng::rewrite: | |
r_sdata_facter: | |
params: | |
- set: | |
- '"%{productname}"' | |
- value: '".SDATA.facter.productname"' | |
- set: | |
- '"%{osfamily}"' | |
- value: '".SDATA.facter.osfamily"' | |
- set: | |
- '"%{operatingsystem}"' | |
- value: '".SDATA.facter.operatingsystem"' | |
- set: | |
- '"%{operatingsystemmajrelease}"' | |
- value: '".SDATA.facter.operatingsystemmajrelease"' | |
- set: | |
- '"%{operatingsystemrelease}"' | |
- value: '".SDATA.facter.operatingsystemrelease"' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rewrite r_sdata_facter { | |
set( | |
"OpenStack Nova", | |
value( | |
".SDATA.facter.productname" | |
) | |
); | |
set( | |
"RedHat", | |
value( | |
".SDATA.facter.osfamily" | |
) | |
); | |
set( | |
"CentOS", | |
value( | |
".SDATA.facter.operatingsystem" | |
) | |
); | |
set( | |
"7", | |
value( | |
".SDATA.facter.operatingsystemmajrelease" | |
) | |
); | |
set( | |
"7.1.1503", | |
value( | |
".SDATA.facter.operatingsystemrelease" | |
) | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment