# Run Logs Insights queries

Query up to 50 log groups, start from templates, save queries on your phone. AWS bills per GB scanned.

Logs Insights is part of [CloudConsole Pro](https://cloudconsole.dev/help/free-and-pro). Open it from the Logs screen or from a log group.

Screenshot: Logs Insights query over two log groups with a chart of results

## Run a query

1. Choose up to 50 log groups.
2. Pick a time range.
3. Type a query or start from **Templates**, for example `fields @timestamp, @message | sort @timestamp desc`.
4. Tap **Run query**. You can **Stop** it while it runs; tap a result row to see the full log record.

## Saved queries

Tap the bookmark button and **Save query** to keep it *on this phone*. Queries saved in CloudWatch by your team are listed too, under *Saved in CloudWatch*.

## What it costs

AWS bills Logs Insights by the amount of log data scanned (about $0.005 per GB in many regions; check AWS's CloudWatch pricing for yours). That goes on your AWS bill, not ours. To keep it down, pick fewer log groups and shorter time ranges.

## Permissions

`logs:StartQuery`, `logs:GetQueryResults`, `logs:StopQuery`, `logs:GetLogRecord` and, for saved queries, `logs:DescribeQueryDefinitions`.

**Still stuck?**

Email [support@cloudconsole.dev](mailto:support@cloudconsole.dev) with what you tried and any message the app showed. Don’t send access keys or secrets. We reply within two working days.

## Related

- [Read and search CloudWatch Logs](https://cloudconsole.dev/help/logs) – Using the app
- [Free and Pro: what's included](https://cloudconsole.dev/help/free-and-pro) – Subscriptions & billing
- [Recommended read-only permissions](https://cloudconsole.dev/help/recommended-permissions) – Permissions & errors
- [Costs, forecast and what Cost Explorer charges](https://cloudconsole.dev/help/costs) – Using the app

[All help topics →](https://cloudconsole.dev/help/)

---

Source: https://cloudconsole.dev/help/logs-insights

CloudConsole is an independent iPhone and Android app for Amazon Web Services by Cloudconcur Ltd. It is not affiliated with Amazon Web Services.
