Skip to content

Commit 3a57296

Browse files
committed
Add serve_error and log_custom_field actions
1 parent e64012b commit 3a57296

File tree

1 file changed

+42
-2
lines changed
  • src/content/docs/ruleset-engine/rules-language

1 file changed

+42
-2
lines changed

src/content/docs/ruleset-engine/rules-language/actions.mdx

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ The available actions depend on the [phase](/ruleset-engine/about/phases/) where
268268
</td>
269269
<td>No</td>
270270
</tr>
271-
<tr>
271+
<tr>
272272
<td>
273273
<strong>Set Cache Settings</strong><br />
274274
<br />
@@ -280,14 +280,54 @@ The available actions depend on the [phase](/ruleset-engine/about/phases/) where
280280
Cache Rules allows you to customize cache settings on Cloudflare.
281281
</p>
282282
<p>
283-
Only available for <a href="/rules/compression-rules/">Cache Rules</a>, in the <code>http_request_cache_settings</code> phase.
283+
Only available for <a href="/cache/how-to/cache-rules/">Cache Rules</a>, in the <code>http_request_cache_settings</code> phase.
284284
</p>
285285
<p>
286286
In the Cloudflare dashboard, this action is not listed in action selection dropdowns. To use this action, <a href="/cache/how-to/cache-rules/create-dashboard/">create a cache rule</a>.
287287
</p>
288288
</td>
289289
<td>No</td>
290290
</tr>
291+
<tr>
292+
<td>
293+
<strong>Serve Error</strong><br />
294+
<br />
295+
API value:<br />
296+
<code>serve_error</code>
297+
</td>
298+
<td>
299+
<p>
300+
Serves error content to the website visitor, according to the custom error rule configuration.
301+
</p>
302+
<p>
303+
Only available for <a href="/rules/custom-errors/#custom-error-rules">Custom Error Rules</a>, in the <code>http_custom_errors</code> phase.
304+
</p>
305+
<p>
306+
In the Cloudflare dashboard, this action is not listed in action selection dropdowns. To use this action, <a href="/rules/custom-errors/create-rules/#create-a-custom-error-rule-dashboard">create a custom error rule</a>.
307+
</p>
308+
</td>
309+
<td>Yes</td>
310+
</tr>
311+
<tr>
312+
<td>
313+
<strong>Log custom field</strong><br />
314+
<br />
315+
API value:<br />
316+
<code>log_custom_field</code>
317+
</td>
318+
<td>
319+
<p>
320+
Configures custom fields for Logpush jobs in a zone.
321+
</p>
322+
<p>
323+
Only available for <a href="/logs/logpush/logpush-job/custom-fields/">custom fields</a>, in the <code>http_log_custom_fields</code> phase.
324+
</p>
325+
<p>
326+
In the Cloudflare dashboard, this action is not listed in action selection dropdowns. To use this action, <a href="/logs/logpush/logpush-job/custom-fields/#enable-custom-fields-via-dashboard">configure custom log fields</a> for Logpush jobs.
327+
</p>
328+
</td>
329+
<td>Yes</td>
330+
</tr>
291331
</tbody>
292332
</table>
293333

0 commit comments

Comments
 (0)