Detailed examples for specific outputs ๐︎
- Store Nginx Access Logs in Amazon CloudWatch with Logging Operator ยป
- Splunk operator with Logging operator ยป
- Sumo Logic with Logging operator and Fluentd ยป
- Transport Nginx Access Logs into Kafka with Logging operator ยป
- Store Nginx Access Logs in Grafana Loki with Logging operator ยป
Filter examples in Flows ๐︎
YAML files for simple logging flows with filter examples.
GeoIP filter ๐︎
apiVersion: logging.banzaicloud.io/v1beta1
kind: Flow
metadata:
name: geoip-sample
spec:
filters:
- tag_normaliser:
format: ${namespace_name}.${pod_name}.${container_name}
- parser:
remove_key_name_field: true
parse:
type: nginx
- geoip:
geoip_lookup_keys: remote
backend_library: geoip2_c
records:
- city: ${city.names.en["remote"]}
location_array: '''[${location.longitude["remote"]},${location.latitude["remote"]}]'''
country: ${country.iso_code["remote"]}
country_name: ${country.names.en["remote"]}
postal_code: ${postal.code["remote"]}
localOutputRefs:
- null-output-sample
match:
- select:
labels:
app: nginx
Parser and tag normalizer ๐︎
apiVersion: logging.banzaicloud.io/v1beta1
kind: Flow
metadata:
name: flow-sample
namespace: default
spec:
filters:
- parser:
remove_key_name_field: true
parse:
type: nginx
- tag_normaliser:
format: ${namespace_name}.${pod_name}.${container_name}
localOutputRefs:
- s3-output
match:
- select:
labels:
app: nginx
Dedot filter ๐︎
apiVersion: logging.banzaicloud.io/v1beta1
kind: Flow
metadata:
name: flow-sample
namespace: default
spec:
filters:
- parser:
remove_key_name_field: true
parse:
type: nginx
- tag_normaliser:
format: ${namespace_name}.${pod_name}.${container_name}
- dedot: {}
localOutputRefs:
- s3-output
match:
- select:
labels:
app: nginx