hey there,
I am really confused about the correct configuration of Filebeat v8.8.1 GCP module.
I need to enable the vpcflow module, so I configured the gcp.yml
file in this way:
- module: gcp
vpcflow:
enabled: true
var.project_id: clf-lab-ops
var.topic: test-vpc-flow
var.subscription_name: log-vpc-flow
and my filebeat.yml
config file is almost empy. I configured only the output section.
I am facing this error:
{"log.level":"error","@timestamp":"2023-10-02T16:15:25.000Z","log.origin":{"file.name":"instance/beat.go","file.line":1274},"message":"Exiting: no modules or inputs enabled and configuration reloading disabled. What files do you want me to watch?","service.name":"filebeat","ecs.version":"1.6.0"}
Exiting: no modules or inputs enabled and configuration reloading disabled. What files do you want me to watch?
If I try to specify into filebeat.yml file the following section:
filebeat.modules:
- module: gcp
vpcflow:
enabled: true
I got this error:
{"log.level":"warn","@timestamp":"2023-10-02T16:17:59.766Z","log.logger":"gcp.pubsub","log.origin":{"file.name":"gcppubsub/input.go","file.line":160},"message":"Restarting failed Pub/Sub input worker.","service.name":"filebeat","pubsub_project":"SET_PROJECT_NAME","pubsub_topic":"stackdriver-vpcflow","pubsub_subscription":{"Name":"filebeat-gcp-vpcflow","NumGoroutines":1,"MaxOutstandingMessages":1000,"Create":true},"error":{"message":"failed to subscribe to pub/sub topic: failed to check if subscription exists: rpc error: code = InvalidArgument desc = You have passed an invalid argument to the service (argument=SET_PROJECT_NAME)."},"ecs.version":"1.6.0"}
So I am really confused. What should I do? Where should I specify which module I would enable?