diff --git a/public/__redirects b/public/__redirects index bd380a87e513631..fdef83e8ab83a4d 100644 --- a/public/__redirects +++ b/public/__redirects @@ -967,10 +967,16 @@ /logs/reference/logpush-api-configuration/ /logs/get-started/api-configuration/ 301 /logs/reference/logpush-api-configuration/filters/ /logs/reference/filters/ 301 # Non-slashed version is being used in the Cloudflare dashboard -/logs/reference/logpush-api-configuration/examples/example-logpush-curl/ /logs/tutorials/examples/example-logpush-curl/ 301 +/logs/reference/logpush-api-configuration/examples/example-logpush-curl/ /logs/logpush/examples/example-logpush-curl/ 301 /logs/log-explorer/ /log-explorer/log-search/ 301 /logs/reference/glossary/ /logs/glossary/ 301 /logs/about/ /logs/logpush/ 301 +/logs/tutorials/ /logs/logpush/ 301 +/logs/tutorials/parsing-json-log-data/ /logs/logpush/parsing-json-log-data/ 301 +/logs/tutorials/examples/ /logs/logpush/examples/ 301 +/logs/tutorials/examples/example-logpush-curl/ /logs/logpush/examples/example-logpush-curl/ 301 +/logs/tutorials/examples/example-logpush-python/ /logs/logpush/examples/example-logpush-python/ 301 + # magic-firewall /magic-firewall/reference/examples/ /magic-firewall/how-to/add-rules/ 301 diff --git a/src/content/docs/fundamentals/manage-domains/remove-domain.mdx b/src/content/docs/fundamentals/manage-domains/remove-domain.mdx index 76adc8d9b1de426..4128a7d90ec5139 100644 --- a/src/content/docs/fundamentals/manage-domains/remove-domain.mdx +++ b/src/content/docs/fundamentals/manage-domains/remove-domain.mdx @@ -36,7 +36,7 @@ Please also note that domains in the `Initializing (Setup)` or `Pending` statuse * [Cancel active add-on subscriptions](/billing/cancel-subscription/). -* [Delete all the Logpush jobs for that domain](/logs/tutorials/examples/example-logpush-curl/#optional---delete-a-job) +* [Delete all the Logpush jobs for that domain](/logs/logpush/examples/example-logpush-curl/#optional---delete-a-job) * If you use Cloudflare Registrar: diff --git a/src/content/docs/logs/get-started/api-configuration.mdx b/src/content/docs/logs/get-started/api-configuration.mdx index 8636180ee424d07..84b4c34b0320ba4 100644 --- a/src/content/docs/logs/get-started/api-configuration.mdx +++ b/src/content/docs/logs/get-started/api-configuration.mdx @@ -33,7 +33,7 @@ The `{dataset_id}` argument indicates the log category (such as `http_requests` | `POST` | Validate log options | [Documentation](/api/resources/logpush/subresources/validate/methods/origin/) | -For concrete examples, refer to the tutorials in [Logpush examples](/logs/tutorials/examples/). +For concrete examples, refer to the tutorials in [Logpush examples](/logs/logpush/examples/). ## Connecting diff --git a/src/content/docs/logs/logpull/enabling-log-retention.mdx b/src/content/docs/logs/logpull/enabling-log-retention.mdx index efe2b3ff005fcc1..1792a0b2c0897f4 100644 --- a/src/content/docs/logs/logpull/enabling-log-retention.mdx +++ b/src/content/docs/logs/logpull/enabling-log-retention.mdx @@ -18,7 +18,7 @@ There are two endpoints for managing log retention: :::note[Note] -In the Linux examples below we use the optional [jq](/logs/tutorials/parsing-json-log-data/) tool to help parse the response data. +In the Linux examples below we use the optional [jq](/logs/logpush/parsing-json-log-data/) tool to help parse the response data. To make a `POST` call, you must have zone-scoped `edit` permissions, such as Super Administrator, Administrator, or Log Share. Refer to [Make API calls](/fundamentals/api/how-to/make-api-calls/) for more information. diff --git a/src/content/docs/logs/tutorials/examples/example-logpush-curl.mdx b/src/content/docs/logs/logpush/examples/example-logpush-curl.mdx similarity index 100% rename from src/content/docs/logs/tutorials/examples/example-logpush-curl.mdx rename to src/content/docs/logs/logpush/examples/example-logpush-curl.mdx diff --git a/src/content/docs/logs/tutorials/examples/example-logpush-python.mdx b/src/content/docs/logs/logpush/examples/example-logpush-python.mdx similarity index 100% rename from src/content/docs/logs/tutorials/examples/example-logpush-python.mdx rename to src/content/docs/logs/logpush/examples/example-logpush-python.mdx diff --git a/src/content/docs/logs/tutorials/examples/index.mdx b/src/content/docs/logs/logpush/examples/index.mdx similarity index 93% rename from src/content/docs/logs/tutorials/examples/index.mdx rename to src/content/docs/logs/logpush/examples/index.mdx index 2ff8a20fe16ff2e..f3c5a21caf5f674 100644 --- a/src/content/docs/logs/tutorials/examples/index.mdx +++ b/src/content/docs/logs/logpush/examples/index.mdx @@ -2,7 +2,7 @@ pcx_content_type: navigation title: Logpush examples sidebar: - order: 90 + order: 22 group: hideIndex: true diff --git a/src/content/docs/logs/tutorials/parsing-json-log-data.mdx b/src/content/docs/logs/logpush/parsing-json-log-data.mdx similarity index 100% rename from src/content/docs/logs/tutorials/parsing-json-log-data.mdx rename to src/content/docs/logs/logpush/parsing-json-log-data.mdx diff --git a/src/content/docs/logs/reference/change-notices/2023-02-01-security-fields-updates.mdx b/src/content/docs/logs/reference/change-notices/2023-02-01-security-fields-updates.mdx index 6ba34dd0e3ee073..7843d81e65bb26c 100644 --- a/src/content/docs/logs/reference/change-notices/2023-02-01-security-fields-updates.mdx +++ b/src/content/docs/logs/reference/change-notices/2023-02-01-security-fields-updates.mdx @@ -147,7 +147,7 @@ After updating Logpush jobs, you may need to update external filters or reports ### Update Logpush job via API -Follow the instructions in [Update output\_options](/logs/tutorials/examples/example-logpush-curl/#optional---update-output_options) to update the fields in the Logpush job. +Follow the instructions in [Update output\_options](/logs/logpush/examples/example-logpush-curl/#optional---update-output_options) to update the fields in the Logpush job. ### Update Logpush job via Terraform diff --git a/src/content/docs/logs/tutorials/index.mdx b/src/content/docs/logs/tutorials/index.mdx deleted file mode 100644 index 21e6e28c651511a..000000000000000 --- a/src/content/docs/logs/tutorials/index.mdx +++ /dev/null @@ -1,19 +0,0 @@ ---- -pcx_content_type: navigation -title: Tutorials -sidebar: - order: 81 - group: - hideIndex: true - ---- - -Learn to manage and analyze your Cloudflare Logs with the following resources. For information about Cloudflare's analytics integrations, refer to [Analytics Integrations](/analytics/analytics-integrations/). - -## Logpull and Logpush - -* [Parsing Cloudflare Logs JSON data](/logs/tutorials/parsing-json-log-data/) - -## Logpush - -* [Examples of how to manage Logpush with cURL and Python](/logs/tutorials/examples/) diff --git a/src/content/docs/magic-firewall/how-to/use-logpush-with-ids.mdx b/src/content/docs/magic-firewall/how-to/use-logpush-with-ids.mdx index 1a28debc52c6c1b..c4a5e56369f4d54 100644 --- a/src/content/docs/magic-firewall/how-to/use-logpush-with-ids.mdx +++ b/src/content/docs/magic-firewall/how-to/use-logpush-with-ids.mdx @@ -8,7 +8,7 @@ You can use Logpush with Magic Firewall IDS to log detected risks: 1. Consult the [Logpush Destination docs](/logs/get-started/api-configuration#destination) to learn about what destinations Logpush supports. The documentation will also instruct you on how to correctly format the destination URL for Logpush. -2. Follow the [Manage Lopush with cURL](/logs/tutorials/examples/example-logpush-curl) tutorial to validate your Logpush destination and define a Logpush job. +2. Follow the [Manage Lopush with cURL](/logs/logpush/examples/example-logpush-curl/) tutorial to validate your Logpush destination and define a Logpush job. ## Notes on using Logpush with IDS