---
title: Log View Grouping Tab – Group by and Post-group Filter | Nodinite
description: "Configure the Grouping tab of a Nodinite Log View: group related events into one row per business transaction, sort and count them, and filter groups with the post-group filter."
---

# <i class="fal fa-list" aria-hidden="true"></i> Log View Grouping Tab

The **Grouping** tab is the last of five tabs when you [add or manage a Log View][Add or Manage Log View]. It turns a list of events into **one row per business transaction**, such as one order with all its steps. Grouped [Log Views][] are what [BPM][] tracking, [Non-Events monitoring][Non Events Agent], and the [runtime diagrams][Log Runtime Diagram] build on.

## <i class="fal fa-sitemap" aria-hidden="true"></i> Understanding the Grouping tab

<div class="mermaid">
graph LR
    EV["fa:fa-bolt Events that match the search"] --> GB["fa:fa-layer-group Group by<br/>one row per value,<br/>such as the order id"]
    GB --> PG["fa:fa-filter Post-group filter<br/>keep the groups whose events<br/>match: Latest, First, Any, All, None"]
    PG --> R["fa:fa-list One row per transaction"]
    style EV fill:#9E59BB,color:#fff
    style GB fill:#3F827B,color:#fff
    style PG fill:#E47528,color:#fff
    style R fill:#2678BD,color:#fff
</div>

*Group by (teal) makes the rows; the post-group filter (orange) decides which rows stay.*

![Group the Log View Contoso: Order-to-Cash on the Application interchange id, save and show it, then search one customer and open one order run, animated walkthrough (7.13)][3]  
*Animated walkthrough: one Group by, and the Log View shows one row per order run.*  

1. Open the **Grouping** tab and click **Add Group by**.
2. Open the field list, type part of the name, and pick the field (*Application interchange id*).
3. Click **Save and show**. The Log View lists one row per order run, that is one group per Application interchange id, each with the number of its events. An order processed more than once has one group per run. With **Auto start search** on, **Save and show** searches the whole date range at once; the walkthrough searches one **Customer ID** to keep the result short.
4. To check one, type a customer in **Customer ID**, click **Search**, and open a group: it holds every event of that order run.

## <i class="fal fa-layer-group" aria-hidden="true"></i> Group by options

From top to bottom, the tab holds:

* **Display group summary** - Shows a summary row for each group.
* **Lock group by** - Locks the grouping: the **Grouping** panel of the search shows no Group by fields, so nobody can change or remove them, administrators included. The result stays grouped by the fields you set. The card header says which applies: *Locked: Users can't modify these fields in the log view*, or *Unlocked*. With the lock on, a grouping a user picks on the search page is ignored, and the result columns follow the locked grouping.  
  ![Grouped search result with Lock group by on: six groups on O2C - Country, City, ZIP, and Customer Name, with the columns of the locked grouping (7.12)][8]  
  *With Lock group by on, the result is grouped by the locked fields, and its columns follow them.*  
  ![Tick Lock group by on the Grouping tab of Contoso: Orders by place, save and show, and the search's Grouping panel has no Group by fields while the result stays in six groups, animated walkthrough (7.13)][9]  
  *Animated walkthrough: lock the grouping, then search. The **Grouping** panel has no Group by fields, and the result is still grouped by place and customer.*  
* **Group by** - Group the result by up to four fields. Each group is one combination of their values, shown together in the group header; see [Group on several fields](#fa-sitemap-group-on-several-fields). Click **Add Group by** for another field; the button disappears at four. The second to fourth field each have a remove button.
* **Sort Events by descending** - Lists the events *inside* each group newest first; unchecked, oldest first. The order of the groups themselves doesn't change.
* **Newest Event in group header** - The group header shows the **Log Date Time** of the group's newest event; unchecked, of its oldest.
* **Group count filter** - Lists only the groups with that many events. Set **From** and **To** in the number boxes, or drag the slider between them; use the boxes for high numbers. With both at 0, the filter is off.
* **Post-group filter** - Keeps the groups whose events match a condition; see [Post-group filter](#fa-filter-post-group-filter).

![Grouping tab with Group by, Sort Events by descending, Newest Event in group header, the Group count filter slider, and the Post-group filter card (7.12)][1]  
*The Grouping tab.*  

![Turn on Sort Events by descending and Newest Event in group header, keep only groups with 14 events, then open a complete order, animated walkthrough (7.13)][4]  
*Animated walkthrough: only the complete orders are left, and each one lists its events newest first.*  

1. On the **Grouping** tab of *Contoso: Order-to-Cash*, check **Sort Events by descending** and **Newest Event in group header**.
2. Under **Group count filter**, type 14 in both boxes; the slider follows.
3. Click **Save and show**, and search the last year.
4. Only the complete orders are listed: 14 events each, every header showing its newest event.
5. Open an order. Its events are listed newest first, with *Order Invoiced* on top.

### <i class="fal fa-sitemap" aria-hidden="true"></i> Group on several fields

Group by several fields, and each group is one **combination** of their values. The group header shows all of them, such as *US · Springfield · 62701 · Contoso Corporation*, and opens straight to its events. The groups don't nest: you can't open a country to see its cities. For orders, group by **Country**, **City**, **ZIP**, and **Customer Name** to see where the orders come from, or by **Customer Name** and then the order id to see each customer's orders.

<div class="mermaid">
graph LR
    EV["fa:fa-bolt Order Received events"] --> G1["fa:fa-layer-group US · Springfield · 62701<br/>Contoso Corporation"]
    EV --> G2["fa:fa-layer-group US · Springfield · 62704<br/>Fabrikam Inc."]
    EV --> G3["fa:fa-layer-group US · Seattle · 98101<br/>Northwind Traders"]
    EV --> G4["fa:fa-layer-group SE · Stockholm · 111 51<br/>Tailspin Toys"]
    style EV fill:#9E59BB,color:#fff
    style G1 fill:#2678BD,color:#fff
    style G2 fill:#2678BD,color:#fff
    style G3 fill:#2678BD,color:#fff
    style G4 fill:#2678BD,color:#fff
</div>

*Four Group by fields make one group (blue) per combination of Country, City, ZIP, and Customer Name. The events (purple) come from the [Order-to-Cash demo data][O2C Demo Customers].*

![Search the Log View Contoso: Orders by place, grouped on Country, City, ZIP, and Customer Name, and open one combination, animated walkthrough (7.12)][5]  
*Animated walkthrough: six groups for six customers, each one combination of the four values.*  

1. The **Grouping** tab of *Contoso: Orders by place* groups by **O2C - Country**, **O2C - City**, **O2C - ZIP**, and **O2C - Customer Name**.
2. Click **Show** and search today's orders: six groups, one per combination.
3. Open *US · Springfield · 62701 · Contoso Corporation*. It lists that customer's two orders from that address.

The [Order-to-Cash demo data][O2C Demo Customers] has six customers in four cities and two countries, with the [Search Fields][] to set this up.

A Group by field always shows its value in the Log View; see [Which Search Field Values a Log View Shows][].

### <i class="fal fa-diagram-project" aria-hidden="true"></i> Design for runtime inspection

Grouped Log Views work best for runtime inspection when the group is one business transaction and the related events have clear Repository context:

* group by a stable business identifier or interchange identifier
* expose Search Fields that help users find the right transaction quickly
* keep [Services][], [Contracts][], and [Systems][] current in the [Repository Model][]
* check that a sample group tells a clean story before you publish the Log View

Read the full [design guidance for runtime inspection][Runtime Inspection Design], and see how users open the result in [Inspect grouped Log Views as runtime diagrams][Log Runtime Diagram].

## <i class="fal fa-filter" aria-hidden="true"></i> Post-group filter

<sup><span class="nodinite-new-badge">New 6.0</span></sup>

The post-group filter keeps the groups whose events match a condition, so you can ask questions such as:

|Post-Group Op|Example question|
|---|---|
|**Any**|Which parcels have been in Oslo?|
|**All**|Which parcels never left Oslo?|
|**First**|Which parcels started in Oslo?|
|**Latest**|Which parcels are in Oslo now?|
|**None**|Which parcels have never been to Oslo?|

![Post-group filter with the Post-Group Op column and the Latest, First, Any, All, and None options (7.12)][2]  
*The **Post-Group Op** decides how the filter applies to the events in each group.*  

The filter you set here is the **default**: users find it filled in on the search page and can change it there. Unlike **Lock group by**, there is no lock for it.

![Add a post-group filter with Post-Group Op None on the invoice Message Type, then search one customer's orders of today, animated walkthrough (7.12)][6]  
*Animated walkthrough: which orders never got an invoice? One question about the whole group.*  

1. On the **Grouping** tab of *Contoso: Order-to-Cash*, grouped on the Application interchange id, click **Edit** on **Post-group filter**.
2. Click **Add new clause**, pick the field [Message Type][Message Types], the **Post-Group Op** **None**, the operator **=**, and the value *O2C.Order.Invoice/1.0*.
3. Click **Confirm and close**, then **Save and show**.
4. Search today's orders of customer *CUST-004*. Only *ORD-10010* is left: the order that never got an invoice.

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>Post-group operations can mean a lot of disk IO on the SQL Server instance. Narrow the search with the shortest time range you can.</p></div>
</aside>

In 7.12, the **All** and **None** operations are fast also over long time ranges: a one-year search with a post-group filter returns in seconds. A search that takes longer than the time limit shows the page *Timeout 504 - The search took too long*, with advice to narrow the time range or use fewer post-group filters.

![Grouped search result over one year with a post-group filter on one customer: 42 groups and 434 events, failed transactions in red (7.12)][7]  
*A post-group filter over one year: 42 groups, 434 events.*  

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-share-nodes" aria-hidden="true"></i> [Design grouped Log Views for Runtime Inspection][Runtime Inspection Design]  
* <i class="fal fa-hard-drive" aria-hidden="true"></i> [Add or Manage Log View][] - All five tabs  
* <i class="fal fa-diagram-project" aria-hidden="true"></i> [Inspect grouped Log Views as runtime diagrams][Log Runtime Diagram]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-hard-drive" aria-hidden="true"></i> [What is a Log View?][Log Views]  
* <i class="fal fa-circle-info" aria-hidden="true"></i> [Log View General Tab][]  
* <i class="fal fa-magnifying-glass-plus" aria-hidden="true"></i> [Log View Search Criteria Tab][]  
* <i class="fal fa-layer-group" aria-hidden="true"></i> [Log View Data to Search Tab][]  
* <i class="fal fa-columns" aria-hidden="true"></i> [Log View Display Result Tab][]  
* <i class="fal fa-project-diagram" aria-hidden="true"></i> [BPM][]  
* <i class="fal fa-stopwatch" aria-hidden="true"></i> [Non Events Agent][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Log/LogViews/GroupingTab.png
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Log/LogViews/PostGroupFilter.png
[3]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Log/LogViews/O2C_GroupedLogView_Setup.gif
[4]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Log/LogViews/LogView_GroupOptions.gif
[5]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Log/LogViews/LogView_GroupByLevels.gif
[6]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Log/LogViews/LogView_PostGroupFilter.gif
[7]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Log/LogViews/PostGroupFilter_OneYear.png
[8]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Log/LogViews/LockGroupBy_Columns.png
[9]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Admin/Log/LogViews/LogView_LockGroupBy.gif

[Add or Manage Log View]:https://docs.nodinite.com/administration/log-management/log-views/features/add-or-manage-log-view/
[BPM]:https://docs.nodinite.com/repository-model/bpms/overview/
[Contracts]:https://docs.nodinite.com/getting-started/repository/contracts/overview/
[Log Runtime Diagram]:https://docs.nodinite.com/getting-started/log/inspect-grouped-log-views-as-runtime-diagrams/
[Log View Data to Search Tab]:https://docs.nodinite.com/administration/log-management/log-views/features/log-view-data-to-search-tab/
[Log View Display Result Tab]:https://docs.nodinite.com/administration/log-management/log-views/features/log-view-display-result-tab/
[Log View General Tab]:https://docs.nodinite.com/administration/log-management/log-views/features/log-view-general-tab/
[Log View Search Criteria Tab]:https://docs.nodinite.com/administration/log-management/log-views/features/log-view-search-criteria-tab/
[Log Views]:https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/
[Message Types]:https://docs.nodinite.com/repository-model/message-types/overview/
[Non Events Agent]:https://docs.nodinite.com/logging-and-monitoring/non-events/overview/
[O2C Demo Customers]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/generate-o2c-demo-data/#fa-users-customers-products-and-grouping
[Repository Model]:https://docs.nodinite.com/repository-model/overview/
[Runtime Inspection Design]:https://docs.nodinite.com/administration/log-management/log-views/features/design-grouped-log-views-for-runtime-inspection/
[Search Fields]:https://docs.nodinite.com/administration/log-management/search-fields/features/what-is-a-search-field/
[Services]:https://docs.nodinite.com/repository-model/services/overview/
[Systems]:https://docs.nodinite.com/repository-model/systems/overview/
[Which Search Field Values a Log View Shows]:https://docs.nodinite.com/administration/log-management/log-views/features/which-search-field-values-a-log-view-shows/