Skip to content

Commit

Permalink
Merge pull request #359 from jstraw/jstraw-patch-1
Browse files Browse the repository at this point in the history
Automatically get changes in last day
  • Loading branch information
bastelfreak authored Apr 5, 2024
2 parents 77a244a + d74f209 commit 8359307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _docs/pql_queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ and saves reports on a per-day partition. By filtering for the current day we
avoid scans on other partitions.

```
puppet query 'events[certname]{corrective_change = true and report_receive_time > "2024-04-05T06:06:00.000Z" group by certname}'
puppet query "events[certname]{corrective_change = true and report_receive_time > \"$(date -u --date='1 day ago' +%Y-%m-%dT%H:%M:%S.000Z)\" group by certname}"
```

### Get all inactive nodes
Expand Down

0 comments on commit 8359307

Please sign in to comment.