Configuring logs for specific ActionSetsΒΆ

Kanister uses structured logging to ensure that its logs can be easily categorized, indexed and searched by downstream log aggregation software.

Extra fields can be added to the logs related to a specific ActionSet by adding a label in the ActionSet with kanister.io prefix.

For example:

1
2
3
4
5
6
7
apiVersion: cr.kanister.io/v1alpha1
kind: ActionSet
metadata:
  namespace: kanister
  name: myActionSet
  labels:
      kanister.io/myFieldName: myFieldValue

All logs concerning this ActionSet execution will have myFieldName field with myFieldValue value.