# Log Rule

Log rules are used to automatically scan your app logs for strings of text, and if they match, perform a specific action. Log rules are app-specific and can be access from the Logs tab in the app page. The following describes how to configure an individual log rule:

* **Node.** Enter the exact node name of the log node that should be matched. The name must match exactly.
* **Level.** Enter the log level to match.
* **String to match.** Enter a regex (Java compatible) to use to match the log message. An important point is that some log messages are multi-line. To match the content of a multi-line message you must start your regex with the following: `(?s)^`  An additional tip is that you often need to match the text after the text you are searching for by ending your regex with `.*`
* **Action to take.** What action the system should take when a log message matches this rule. The available actions are:
  * **Ignore.** This log message will me flagged as ignored, and it will no longer count towards error, warning, etc. totals in the log message overview.
  * **Alert.** A log alert will be generated (changes the app status in the dashboard, sends out an alert to the app administrator).
  * **Use Solution.** The log message will be flagged as 'solution available', and this will be visible in the log message overview. This is helpful for app operators to know what they should do.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bluestorm.io/dashboards/app/log-rule.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
