Skip to content

Commit

Permalink
Update query formatting in learn.md (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbruno10 authored Feb 10, 2025
1 parent 857f815 commit e83759f
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions docs/learn.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ aws_cloudtrail_log aws@0.1.0
You can count the records in the table:

```bash
> select
count(*)
from
aws_cloudtrail_log
select
count(*)
from
aws_cloudtrail_log
```
or find the oldest and newest records:

```bash
> select
select
min(tp_date), max(tp_date)
from
aws_cloudtrail_log"
Expand All @@ -120,9 +120,9 @@ from
This query finds the top 10 IPs:
```bash
> select
select
tp_source_ip, count(*) as count
from
from
aws_cloudtrail_log
group by
tp_source_ip order by count desc"
Expand All @@ -131,9 +131,8 @@ group by
This query lists Cloudtrail event types for a specified day:

```bash
tailpipe
select distinct
event_type
select distinct
event_type
from
aws_cloudtrail_log
where
Expand All @@ -150,4 +149,3 @@ We've demonstrated basic log collection and analysis with Tailpipe. Here's what
- [Discover more plugins on the Hub →](https://hub.tailpipe.io/plugins)
- [Discover pre-built benchmarks and dashboard for popular log formats →](https://hub.powerpipe.io/?engines=tailpipe)
- [Join #tailpipe on Slack →](https://turbot.com/community/join)

0 comments on commit e83759f

Please # to comment.