{"id":22367329,"url":"https://github.com/oscp/openshift-eventforwarder","last_synced_at":"2025-07-30T17:32:47.532Z","repository":{"id":64305811,"uuid":"86333336","full_name":"oscp/openshift-eventforwarder","owner":"oscp","description":"Forwards the events of OpenShift to an external logging platform","archived":false,"fork":false,"pushed_at":"2018-06-26T14:10:19.000Z","size":18,"stargazers_count":11,"open_issues_count":0,"forks_count":7,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-06-20T12:03:12.269Z","etag":null,"topics":["golang","http-streaming","openshift","openshift-origin","syslog"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oscp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-27T12:35:28.000Z","updated_at":"2024-06-20T12:03:12.270Z","dependencies_parsed_at":"2023-01-15T10:30:45.491Z","dependency_job_id":null,"html_url":"https://github.com/oscp/openshift-eventforwarder","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscp%2Fopenshift-eventforwarder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscp%2Fopenshift-eventforwarder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscp%2Fopenshift-eventforwarder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscp%2Fopenshift-eventforwarder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oscp","download_url":"https://codeload.github.com/oscp/openshift-eventforwarder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228164488,"owners_count":17879085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","http-streaming","openshift","openshift-origin","syslog"],"created_at":"2024-12-04T18:17:07.519Z","updated_at":"2024-12-04T18:17:08.053Z","avatar_url":"https://github.com/oscp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# General idea\nWe at [@SchweizerischeBundesbahnen](https://github.com/SchweizerischeBundesbahnen) need to host all the OpenShift events outside our OSE-cluster as it would flood our etcd datastore if we keep the events of all projects for more than one day.\nSo this tools just attaches to the kubernetes API and logs all the events to console where they are grabbed and sent to our central logging environment.\n\n# Syslog forwarding\nThe standard mode for this applicaiton is to write to standard out.  If you wish to send to Syslog instead, you can define SYSLOG_SERVER as an environment variable, and we will forward the logs the the syslog server instead of sending the events to the console/standard out.  If you wish to send to both a syslog server as well as standard out, you can define the DEBUG environment variable and it will send to both standard out and the defined syslog server.\n\n# Installation\n```bash\n# Create a project \u0026 a service-account\noc project logging\noc create serviceaccount ose-eventforwarder\n\n# Add a new role to your cluster-policy:\noc create -f deploy/clusterPolicy-forward.yaml\n\n# Add the role to the service-account\noc adm policy add-cluster-role-to-user ose:eventforwarder system:serviceaccount:logging:ose-eventforwarder\n\n# Deploy the new pod\noc create configmap forward-config \\\n    --from-literal=syslog.server=\\\u003csyslogserver\\\u003e:\\\u003csyslogport\\\u003e \\\n    --from-literal=syslog.tag=\\\u003csyslog tag\\\u003e\noc create -f deploy/deploymentConfig.yaml\n```\n\nJust create a 'oc new-app' from building the dockerfile or get it from here [Dockerhub](https://hub.docker.com/r/oscp/openshift-eventforwarder/).\n\n## Parameters\n**Param**|**Description**|**Example**\n:-----:|:-----:|:-----:\nOPENSHIFT\\_API\\_URL|Your OpenShift API Url|https://master01.ch:8443\nOPENSHIFT\\_TOKEN|The token of the service-account| \nSYSLOG\\_SERVER|The address and port of the target syslog server|syslogserver.corp.net:514\nSYSLOG\\_PROTO|Select tcp or udp for protocol. Defaults to udp if not defined| tcp\nSYSLOG\\_TAG|Tag to send to syslog identifying the source. Defaults to OSE if not defined| OSE\\_CORP\nDEBUG|Set to send to both standardout and syslog server. Defaults to FALSE | FALSE or TRUE\nIGNORE\\_SSL|Enable or disable SSL/TLS for the master api|Defaults to FALSE","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foscp%2Fopenshift-eventforwarder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foscp%2Fopenshift-eventforwarder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foscp%2Fopenshift-eventforwarder/lists"}