Transactions provide you the ability to run aggregations on top of your logs across all other collected attributes within Middleware. This is useful for building a transactional view of your logs, selecting specific attributes to group by, and identifying broader patterns related to the log you are actively filtering.

Transactions work by compiling logs based on occurrences in a series of actions, like a user’s session or a request handled across your microservice architecture. Examples of transactions range from actions within a mobile app, to function calls and CPU instructions.

Transaction Measures

Measures allow you to add aggregations across your chosen grouping attribute:

MeasureDescription
CountTracks the total number of times the aggregated metric has been fired
MaxDisplays the maximum value of the aggregated metric
Most FrequentIdentifies the most frequent value of the aggregated metric
WhereAdds additional aggregation layer to query
ContainsFilters log entry based on whether the specified field contains a particular string or subpattern
Does Not ContainFilters log entry based on whether the specified field does not contains a particular string or subpattern
Greater ThanAggregates metrics that are greater than a specified threshold or reference point
Smaller ThanAggregates metrics that are less than a specified threshold or reference point

Create a Transaction

Navigate to the logs page, select the Transactions tab, choose your desired aggregation metric, and add one or multiple measures to better understand your logs.

Transaction Examples

Aggregates the container_name across all logs and then a secondary aggregation is performed specifically on containers with names that contain the subpattern or string kafka

Next Steps

Need assistance or want to learn more about Middleware? Contact us at support[at]middleware.io.