Skip to content

Commit

Permalink
Formated the doc with correct set of example query
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthaI committed Jan 15, 2024
1 parent db8ef2b commit 4e5f5ff
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/tables/gcp_logging_log_entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,29 +189,30 @@ Explore the most recent activities in your system by checking the last entries i
select
log_name,
insert_id,
log_entry_operation_last,
operation ->> 'Last' as log_entry_operation_last,
receive_timestamp,
resource_type,
severity,
text_payload
from
gcp_logging_log_entry
where
log_entry_operation_last;
(operation ->> 'Last')::boolean;
```

```sql+sqlite
select
log_name,
insert_id,
operation ->> 'Last' as log_entry_operation_last,
json_extract(operation, '$.Last') as log_entry_operation_last,
receive_timestamp,
resource_type,
severity,
text_payload
from
gcp_logging_log_entry
where (operation ->> 'Last')::boolean;
where
json_extract(operation, '$.Last') = 'true';
```

### Filter log entries by log name
Expand Down

0 comments on commit 4e5f5ff

Please sign in to comment.