cloudflare-docs icon indicating copy to clipboard operation
cloudflare-docs copied to clipboard

[Logs] Document Splunk AWS add-on R2 credential limitation

Open rianvdm opened this issue 5 months ago • 6 comments

Summary

Adds a troubleshooting subsection to the Splunk Logpush destination page explaining why the Splunk Add-on for AWS cannot read from R2, and documents three supported ways to get Cloudflare logs into Splunk instead.

The add-on validates credentials against AWS STS before saving them, so R2 credentials are always rejected — a recurring support question. The new section covers:

  • Why account-level validation blocks R2, and which input-level workarounds do not help.
  • Sending logs to the Splunk HTTP Event Collector with Logpush (including a Cloudflare Tunnel path for on-premises Splunk).
  • Using Azure Blob Storage as a polled intermediary.
  • Pulling objects from R2 with the AWS CLI for existing R2 Logpush setups.

It also fixes a pre-existing heading-numbering bug on the page (the API section jumped from ### 1 to ### 3).

Documentation checklist

rianvdm avatar Jun 06 '26 13:06 rianvdm

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/logs/ @soheiokamoto, @angelampcosta, @rianvdm, @dcpena, @cloudflare/product-owners

github-actions[bot] avatar Jun 06 '26 13:06 github-actions[bot]

Review

⚠️ 5 warnings found in commit f15f740.

Warnings (5)
File Issue
logs/logpush/logpush-job/enable-destinations/splunk.mdx line 284 Directional words — This applies to all three approaches below. Fix: Replace with a direct reference by name or link.
logs/logpush/logpush-job/enable-destinations/splunk.mdx line 293 Escape angle brackets in MDX prose — Line adds unescaped > in prose: <Steps> Fix: Replace > with &gt; or wrap the text in backticks.
logs/logpush/logpush-job/enable-destinations/splunk.mdx line 305 Escape angle brackets in MDX prose — Line adds unescaped > in prose: </Steps> Fix: Replace > with &gt; or wrap the text in backticks.
logs/logpush/logpush-job/enable-destinations/splunk.mdx line 322 Escape angle brackets in MDX prose — Line adds unescaped < in prose: ENDPOINT="https://<ACCOUNT_ID>.r2.cloudflarestorage.com" Fix: Replace < with &lt; or wrap the text in backticks.
logs/logpush/logpush-job/enable-destinations/splunk.mdx line 323 Escape angle brackets in MDX prose — Line adds unescaped < in prose: aws s3 sync s3://<BUCKET_NAME>/ /opt/splunk/var/log/cloudflare/ --endpoint-url "$ENDPOINT" Fix: Replace < with &lt; or wrap the text in backticks.
Commands

Only codeowners can run commands. Post a comment with the command to trigger it.

Command Description
/review Runs a review now. Incremental if a prior review exists, full if not.
/full-review Re-reviews the entire PR diff from scratch, ignoring incremental history. Useful after a rebase, when you want a fresh review, or if the bot gets out of sync and reports issues that no longer exist.

Review complete. I posted two inline suggestions and applied labels documentation and product:logs.

Summary of findings:

  • HIGH — splunk.mdx:307: Step 5 in the Cloudflare Tunnel procedure incorrectly describes the WAF custom rule as a way to "restrict access." The linked rule is a skip rule that allows Logpush requests to bypass WAF. Posted an inline suggestion to rephrase it.
  • MEDIUM — splunk.mdx:273–281: The :::caution admonition contains 5 bullet items. The style guide recommends keeping admonitions to ~3 paragraphs or bullet items. Posted an inline suggestion to move the list into regular prose.

Other than the inline suggestions, the PR structure is correct: the heading-numbering fix is good, the Steps component is properly imported and used, and the new troubleshooting section follows the heading hierarchy (H2 → H3 → H4).

ask-bonk avatar Jun 06 '26 13:06 ask-bonk

Review complete for PR #31274.

  • Labels applied: documentation, product:logs
  • Posted 2 inline suggestions.

What the PR changes: Adds a troubleshooting subsection to the Splunk Logpush destination page explaining why the Splunk Add-on for AWS cannot read from R2 (AWS STS credential validation rejects R2 credentials). Documents three supported alternatives: direct HEC via Logpush (with a Cloudflare Tunnel path for on-premises Splunk), Azure Blob Storage as an intermediary, and pulling from R2 with the AWS CLI. Also fixes a pre-existing heading-numbering bug (API section jumped from ### 1 to ### 3).

Issues flagged:

  • HIGH — Step 5 in the tunnel procedure incorrectly describes the WAF custom rule as a way to "restrict access." The linked rule is a skip rule that allows Logpush requests to bypass WAF, so the phrasing is misleading. I posted a suggested fix.
  • MEDIUM — The :::caution admonition lists 5 bullet items. The style guide recommends keeping admonitions to ~3 paragraphs or bullet items. I posted a suggestion to move the list into regular prose.

Everything else looks good: the Steps component is properly imported and used, heading hierarchy is correct, and all links are root-relative with trailing slashes.

github run

ask-bonk avatar Jun 06 '26 13:06 ask-bonk

Preview URL: https://f15f7402.preview.developers.cloudflare.com Preview Branch URL: https://logs-splunk-r2-troubleshooting.preview.developers.cloudflare.com

Files with changes (up to 15)

Original Link Updated Link
https://developers.cloudflare.com/logs/logpush/logpush-job/enable-destinations/splunk/ https://logs-splunk-r2-troubleshooting.preview.developers.cloudflare.com/logs/logpush/logpush-job/enable-destinations/splunk/

github-actions[bot] avatar Jun 06 '26 13:06 github-actions[bot]

Hey there, we've marked this pull request as stale because there's no recent activity on it. This label helps us identify PRs that might need updates (or to be closed out by our team if no longer relevant).

github-actions[bot] avatar Jun 21 '26 04:06 github-actions[bot]