Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Syslog-ng Configuration for Cloud Function Integration

Currently attempting to configure syslog-ng 7.0.19 to send data to a GCP Cloud Function.  If anyone has accomplished this before please let me know since there is scarce documentation on this integration.  The Cloud Function has been tested and works with test triggers and other scripts but not with syslog yet.  Can't use Pub/Sub function from Syslog 7.0.21+ yet since upgrade will be at future time.  Any tips greatly appreciated.

 

The current syslog destination config looks like this: 

# Google Cloud Function syslog destination (Google)
destination d_google {
httpl (url ("https://us-central1-project-removed.cloudfunctions.net/cloud_function_test_noauth")
user_agent("syslog-ng")
method("POST")
body("$(format-json --scope all-nv-pairs)")
flags (no-multi-line)
);
};

0 1 228
1 REPLY 1

I am afraid this forum is not the best place to post this question and I would strongly suggest to post it in StackOverflow following the appropriate guidelines.