- Open alfred
- Click on “features”
- Click on “Web Search”
- Click on “Add Custom Search”
- In “Search URL”, enter:
https://app.datadoghq.eu/logs?query=status%3Aerror %40err._id%3A{query}
- In “Title”, enter:
Datadog error search {query}
- In “Keyword”, enter:
err
(or whatever fits you better)
- Click “Save”
- You can now test that it works:
- open alfred with
command
+ space
- type
err
then a space
- paste your error id
- type enter
- 🎉
- By default, you’ll have the last 15 minutes of logs. If you want to change the temporal search window, change the “Search URL” to the following value:
- past 15 days:
https://app.datadoghq.eu/logs?query=status%3Aerror %40err._id%3A{query} &from_ts=1720550554832&to_ts=1721846554832&live=true
- past 1 month:
https://app.datadoghq.eu/logs?query=status%3Aerror %40err._id%3A{query} &from_ts=1719254718678&to_ts=1721846718678&live=true
- It works thanks to
live=true
which maintain relative time specifications