Skip to content

Commit 495c268

Browse files
sazkenyon
andauthored
PQL example to exclude empty hashes (#577)
* PQL example to exclude empty hashes * Update _docs/pql_queries.md --------- Co-authored-by: Kenyon Ralph <[email protected]>
1 parent 1a97016 commit 495c268

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

_docs/pql_queries.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,12 @@ Result:
395395
]
396396
```
397397

398+
### Get a structured fact but exclude empty hashes
399+
400+
```shell
401+
puppet query 'inventory[facts.users.root.ssh_public_keys]{facts.users.root.ssh_public_keys !~ "{}" order by certname }'
402+
```
403+
398404
### Get a sorted list of all recent event failures
399405

400406
This gives a list of recent event failures from the lastest reports and applies counts to them to show how many

0 commit comments

Comments
 (0)