This guide covers how to use the source, app, and level filters located at the top of the page in the LogDNA web app.
Before we begin, keep in mind that filters are applied in conjunction with search and time queries. Any specified search queries and timeframes are respected in addition to the filters themselves.
Source contains a list of your logging sources. A source can be a host, computer, virtual machine, or Heroku app. Source metadata such as IP address or OS may be displayed with the source.
App contains a list of logging buckets. An app can represent a log file, program or container. Typically, log lines within an app are inherently similar.
Level contains a list of parsed log levels, such as
ERROR. Log levels are automatically parsed from log lines using standard log level detection and common patterns.
To use filters, click on the desired filter drop-down menu and tick the checkboxes of the entries you are interested in. Selecting more than one checkbox within a filter will include log lines that belong to any of the selected entries. Selecting checkboxes in more than on filter, such as selecting 1 app and 1 source, will return log lines that match both that app and that source.
For example, if I select two sources,
Colbert, and then select two apps, as
Snapchat, I will be returned all log lines matching the following conditions:
iMessage) OR (
Snapchat) OR (
iMessage) OR (
- Selected entries within a filter are OR'd
- Selected entries across filters are AND'd
The sources and apps filters include categories to help organize your sources and apps. For the sources filter, the categories are hosts, groups, and inactive hosts. For the apps filter, the categories are groups, apps, and files. You may see additional categories in the future.
For the sources and apps filters, you can use the built-in search bar inside the filter menu. For example, if one of your sources was named 'Madonna', searching 'mdon' under Sources would return 'Madonna' as one of the results. Search results are also categorized by type.
Within the apps and sources filter you can create groups that represent a set of sources or apps. To create a group:
- Click on either the source or app filter, and then select the create new group option at the top of the drop-down menu.
- Name your group.
- Select the set of sources or apps you would like associate with this group.
- Click the green save button at the bottom of the modal.
When you select the group in the source or app filter, it will return all log lines matching any of the entries within that group.
Dynamic groups allow your hosts to automatically manage their dynamic group membership. To configure your hosts to automatically add themselves to dynamic groups ensure you are using the LogDNA agent to collect your logs. See the host tags section of the LogDNA Agent article or the host tags section of the rsyslog article for configuration details.
If you mouse over an entry, depending on which category, additional details may be displayed. For example, under the Sources filter in the host section, mousing over an entry may show the IP address, operating system, and other details.
Updated about a year ago