Widget Use Cases
You can use widgets to monitor various aspects of application health. To learn how to build a Screen to monitor your web application, see Use Screens and Widgets to Monitor Log Data.
This article lists some other ways you can use Widgets.
Count All Log Lines for the Past Day
- Create a Count widget.
- Set the duration to Last 1 Day.
- Optionally set the host and field value if you want to filter the log lines.
Monitor Error Logs
There are multiple ways to measure error logs.
Time Shifted Graph
Compare errors over a period.
- Create a Time Shifted widget.
- Set field to
level
. - Select Advanced filtering and enter the query
level:(warn OR error)
. - Set the duration to Last 1 Week.
Count
See the number of errors using a filter.
- Create a Count widget.
- Select Advanced filtering and enter the query
level:(warn OR error)
. - Set the Duration to Last 1 Week.
- To get a view of errors over time, you can create the widget again and choose a different duration.
Table
Use a table to see error levels.
Create a Table widget.
Under Data:
- Set Group by to
level
. - Set Field to
All Lines
.
- Set Group by to
Set Duration to
Last 1 Week
.Under Appearance:
- Set Left Column Label to
Level
. - Set Right Column Label to
Counts
.
- Set Left Column Label to
See Log Lines by App
Create a Table widget.
Under Data:
- Group by
app
. - Set Field to
host
. - Optionally set the field value.
- Group by
Set the Duration.
Under Appearance:
- Set Left Column Label to
App
. - Set Right Column Label to
Counts
.
- Set Left Column Label to
Authentication Attempts
Create a Count widget.
Under Data:
- Set Field to
host
. - Set Field value to the host you want to monitor.
- Click Advanced Monitoring and add
authentication
- Set Field to
Set the Duration to Last 1 Day.
Was this page helpful?