Jacob Burley
11/09/2023, 4:14 PMmysql:
address: SNIP
database: SNIP
username: SNIP
password: SNIP
redis:
address: 127.0.0.1:6379
server:
tls: false
logging:
json: false
debug: true
#tracing_enabled: true
#tracing_type: opentelemetry
pubsub:
project: my-project
result_topic: my-result-topic
status_topic: my-status-topic
osquery:
osquery_status_log_plugin: pubsub
osquery_result_log_plugin: pubsub
Fleet is running in a VM within GCP. ADC definitely works (gcloud pubsub topics publish my-result-topic --message "Hello world!") works from the host with the default ADC creds from the attached Service account, but I don't see anything in the fleet logs about pubsub. I'm not running Fleet Premium on this server if that makes a difference.Grant Bilstad
11/09/2023, 5:24 PMFLEET_PUBSUB_PROJECT = "pe-insights-private"
FLEET_PUBSUB_RESULT_TOPIC = "fleet-macos-data"
FLEET_OSQUERY_RESULT_LOG_PLUGIN = "pubsub"
Can check on mappings here https://fleetdm.com/docs/configuration/fleet-server-configuration
Looks like you might have wired up correctly from quick glance. Would you have have "Automations" turned on for the scheduled queries?Jacob Burley
11/09/2023, 6:28 PMGrant Bilstad
11/09/2023, 6:56 PMKathy Satterlee
11/09/2023, 7:10 PM/api/v1/osquery/logBenjamin Edwards
11/09/2023, 7:28 PMGCP PubSub writer configured
then if ADC credentials are incorrect and fleet was getting an error writing to pubsub topic, you'd get error logs in the server logsJacob Burley
11/09/2023, 7:37 PMJacob Burley
11/09/2023, 7:42 PMJacob Burley
11/09/2023, 7:49 PM