nigel
01/09/2023, 10:34 AMvchepkov
01/09/2023, 1:38 PMCVQuesty
01/09/2023, 1:40 PMSlackbot
01/09/2023, 1:41 PMcsharpsteen
01/09/2023, 1:52 PMSlackbot
01/09/2023, 1:55 PMn3snah
01/09/2023, 1:56 PMbastelfreak
01/09/2023, 2:38 PMbastelfreak
01/09/2023, 2:42 PM/var/log/puppetlabs/*/*.log for errors while opening the consoleAlonso Muñoz
01/09/2023, 3:15 PMnigel
01/09/2023, 3:15 PMbastelfreak
01/09/2023, 3:15 PMnigel
01/09/2023, 3:15 PMDavid Sandilands
01/09/2023, 3:26 PMApril Murphy
01/09/2023, 3:47 PMJoel Wilson
01/09/2023, 9:51 PMJoel Wilson
01/09/2023, 9:51 PMJoel Wilson
01/09/2023, 9:52 PMnatemccurdy
01/09/2023, 9:52 PMevents API should get you most of the way: https://www.puppet.com/docs/puppetdb/7/api/query/v4/events.html#query-fieldsJoel Wilson
01/09/2023, 9:56 PMnatemccurdy
01/09/2023, 9:57 PMevents[certname] { status = "failed" and resource_type="Foo" and resource_title="bar" }
You'll want some way to time box that query... I'm sure there's a way to get that in there... haven't looked too deeply myself.bastelfreak
01/09/2023, 9:57 PMnatemccurdy
01/09/2023, 9:58 PMlatest_report? = true to search through only the latest reports.Joel Wilson
01/09/2023, 9:58 PMbastelfreak
01/09/2023, 9:58 PMbastelfreak
01/09/2023, 9:59 PMbastelfreak
01/09/2023, 9:59 PMJoel Wilson
01/09/2023, 9:59 PMevents [count(certname)] { resource_type = "Package" and resource_title = "<packagename>" and latest_report? = true and status = "failure" } count?natemccurdy
01/09/2023, 10:01 PMevents[count()] {<the query>} if you want just a count of results.
More examples are scattered throughout https://www.puppet.com/docs/puppetdb/7/api/query/v4/pql.html#countJoel Wilson
01/09/2023, 10:02 PM