Configuration
Configurations
collectorforkubernetes-elasticsearch.yaml
Deploying on OpenShift clusters
For OpenShift clusters you need to add privileged SCC to the service account.
Save content of the following file to collectorforkubernetes-scc.yaml file.
And apply it with oc apply -f collectorforkubernetes-scc.yaml.
kind: SecurityContextConstraints
apiVersion: security.openshift.io/v1
metadata:
name: collectorforkubernetes
allowHostDirVolumePlugin: true
allowHostIPC: true
allowHostNetwork: true
allowHostPID: true
allowHostPorts: true
allowPrivilegeEscalation: true
allowPrivilegedContainer: true
readOnlyRootFilesystem: false
allowedCapabilities:
- '*'
allowedUnsafeSysctls:
- '*'
fsGroup:
type: RunAsAny
runAsUser:
type: RunAsAny
seLinuxContext:
type: RunAsAny
supplementalGroups:
type: RunAsAny
seccompProfiles:
- '*'
users:
- system:serviceaccount:collectorforkubernetes:collectorforkubernetes
volumes:
List of Created Kubernetes Objects
Configuration file collectorforkubernetes-elasticsearch.yaml creates several Kubernetes Objects.
Namespacecollectorforkubernetes.ClusterRolecollectorforkuberneteswith limited capabilities toget,listandwatchdeployed objects. Collectord uses this information to enrich logs and stats with Kubernetes specific metadata.ServiceAccountcollectorforkubernetesis used to connect to Kubernetes API.ClusterRoleBindingcollectorforkubernetesto bind a service account to a cluster role.ConfigMapcollectorforkubernetes-elasticsearchdelivers configuration files for collectord.DaemonSetcollectorforkubernetes-elasticsearchallows to deploy collectord on each node.Deploymentcollectorforkubernetes-elasticsearchis a single collectord instance, that needs to forward data from the whole cluster once.
Read commentaries in collectorforkubernetes-elasticsearch.yaml file to get
more deep details on all configurations and source of the logs.
Links
- Installation
- Forwarding container logs, application logs, host logs and audit logs.
- Test our solution with the embedded 30-day evaluation license.
- Collectord Configuration
- Collectord configuration reference for Kubernetes and OpenShift clusters.
- Annotations
- Changing the type and format of messages forwarded from namespaces, workloads and pods.
- Forwarding application logs.
- Multi-line container logs.
- Field extraction for application and container logs (including timestamp extractions).
- Hiding sensitive data, stripping terminal escape codes and colors.
- Troubleshooting
- FAQ and the common questions
- License agreement
- Pricing
- Contact