Menu
Grafana Cloud

Make exemptions in Adaptive logs

You may want to prevent certain logs from being dropped even if they are not being queried heavily. Adaptive Logs supports stream-based exemptions, which let you exclude certain logs from being dropped.

As an example, suppose you do not want to drop logs related to your login service. To prevent logs from your login service from being dropped, exclude the {service="login"} selector. See [log stream selector documentation](https://grafana.com/blog/2023/12/20/the-concise-guide-to-grafana-loki-everything-you-need-to-know-about-labels/ for more details on how to construct a stream selector statement.

To create a new exemption:

  1. In the Adaptive Logs interface, select the Configuration tab.
  2. Select the Stream selector tab.
  3. Click Add new Exemption.
  4. In the Add exemption window, provide a valid stream selector in the Stream selector textbox.
  5. Optionally provide business context in the Reason textbox.
  6. Click Save.

You can remove or update exemptions at any time.

It may take up to fifteen days for an exempted pattern to disappear from the Adaptive Logs user interface, but any attempts to apply recommendations to an exempted pattern has no effect and logs matching an exempted pattern are not dropped.