-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Plugin for Google Cloud VMware Engine Syslog Collection #242
Comments
Hi @KonradSchieban, I started working on this today. Unfortunately, I had trouble configuring the GCVE environment that I have access to (failed to configure VPC peering to my project). I will try to get this resolved soon, however, if you can provide me with additional logs, I can start working on the plugin right away. Access to GCVE might delay development. |
The initial plugin can be found in branch Simply copy the plugin to your plugins directory and use this config:
You can replace
Once I have full access to GCVE, I will perform my own testing. |
Thanks, I will test it and get back to you on it today. |
@KonradSchieban thanks for reporting back to quickly. Some thoughts come to mind:
My thoughts on 1, we could do something like:
Let me know what you think. We can certainly leave them as is, but I think the @fields prefix can make it hard to reason about. |
I think your suggestion makes sense. If we can strip the @fields substring that'll make it easier to parse and search for. And if additional fields will be supported automatically as they are added that would be best. |
@jsirianni a suggestion: can we make the label log_type "Syslog", since the label plugin_id is already "gcve"? Like that it's easier to see in the labels that its Syslog coming from GCVE. |
@KonradSchieban I updated it to For example, Cassandra:
I also updated the plugin to handle "flattening" the json payload, it should look like this now:
Please note that these field names are not 100% final, I still need to run them past our QA / Product team to ensure we do not have any conflicts with other plugins. |
Looks pretty good! Thanks for the work! |
Google Cloud VMware Engine (GCVE) provides an interface to configure vCenter Syslog forwarding. GCVE adds additional metadata to the log entries of the following format:
{"record":"{"@timestamp":"2021-04-02T17:10:25.335748+00:00","@Version":"1","message":" Event [3873031] [1-1] [2021-04-02T17:10:10.873482Z] [vim.event.UserLogoutSessionEvent] [info] [root] [Datacenter] [3873031] [User [email protected] logged out (login time: Friday, 02 April, 2021 05:10:08 PM, number of API invocations: 5, user agent: pyvmomi Python/3.6.9 (Linux; 4.19.150+; x86_64))]","@fields.host":"xxxxxx","@fields.severity":"info","@fields.facility":"user","@fields.procid":"26060","@fields.privatecloud_id":"xxxxxxxxxxxx","@fields.privatecloud_name":"xxxxxxx","@fields.alias":"xxxxxxxxxxx","@fields.company_name":"xxxxxxxxx","@fields.region_id":"us-east4"}"}}
Looking for a plugin to format logs from received messages so they can be parsed and forwarded in JSON format to Cloud Logging (similar to the vmware_vcenter plugin, just specific to the GCVE syslog format).
The text was updated successfully, but these errors were encountered: