Home ADC Surfacing LoadMaster SSO User Logins in Flowmon Collector

Surfacing LoadMaster SSO User Logins in Flowmon Collector

This blog describes how you can use LoadMaster and Flowmon Collector to pair specific users with the corresponding network traffic and application transactions when investigating performance issues, to provide dashboards, reports, and alerts that keep you on top of application performance and assist in root cause analysis when investigating possible issues.

Exporting LoadMaster SSO Logs to Collector

previous blog post described how Kemp Flowmon Collector and Kemp LoadMaster can be combined to provide user-specific application flow analysis through the export of LoadMaster logs to a Collector and by applying specific parsing rules on Collector to the incoming logs.

Once you follow the instructions in the blog post that appears in the first paragraph, you have:

  • A LoadMaster with:
    • At least one Virtual Service (VS) that is enabled for SSO
    • Network Telemetry enabled and exporting flows to a Flowmon Collector
    • Remote syslog enabled and exporting ESP user logs to the same Collector
  • A Collector that is actively receiving ESP User logs from the above LoadMaster, with LoadMaster-specific parsing rules enabled for log analysis.

In this scenario, a LoadMaster (with the ESP package enabled) acts as a single sign-on (SSO) gateway for an application and handles user authentication through a third-party identity provider (such as Microsoft Active Directory). This puts the LoadMaster in a unique location in the application workload to provide user identity information to Flowmon Collector via syslog.

As shown in the partial screenshot above, the Collector can now automatically correlate User Identity information (such as Source User Identity, shown above) with network traffic flows collected from LoadMaster via Network Telemetry.

Dashboards and Reports Will Include User Identity

For example, you can now configure a widget that shows the user identities responsible for the highest level of network traffic, as in this example:

[Note that the user identity format that will be displayed depends on the way in which SSO is configured on the LoadMaster – specifically whether SSO is configured to use Principalname (as in the table above) or Username (as in the previous screenshot).]

To configure a widget for Top User Identities, you need to configure a Chapter to define the data you want to see in the widget and then create the widget. Do the following:

  1. Open the Collector UI Home page in your browser and click on Monitoring Center.
  2. Click on Reports at left, and then the Chapters tab.
  3. Click on +NEW CHAPTER and fill out the form that appears as follows:
    1. Type in a Name, such as “Top User Identities.”
    1. Type in a description, such as “Top 10 User Identities by Throughput (bytes).”
    1. Leave ProfileChannelsType and Top set to their default values.
    1. Click on the drop-down for Base the statistics on the parameter and select User Identity > Source User Identity from the list.
    1. Click on one of the Chapter Columns set to none and select Average Round Trip Time (RTT) from the list.
    1. Leave Filter and Blacklist set to their defaults.
    1. If you have existing data on Collector, click on the Recompute drop-down and choose a time span; Collector will reanalyze data for the selected duration for the new chapter. Otherwise, the new “Top” chapter will be populated with data during the next hourly recompute interval.
  4. Click Save at the bottom of the form to create the new chapter.
  5. At the top of the Chapters screen, click Monitoring Center > Dashboards and Reports.
  6. Click on the tab for an existing dashboard, or create a new one by clicking the plus sign (+) to the right of the last dashboard tab.
  7. Click the New Widget button at the bottom of the dashboard. Fill out the form as follows:
    1. Leave Category set to the default.
    1. Click the Data to display drop-down and select the Name of the chapter you created above in Step 3a.
  8. Click Create Widget. The dashboard is now displayed with the widget you just configured. If you recomputed data for the widget above in Step 3g, you should see data in the widget when it appears.  

Drilling Down on an Issue Observed in the Widget

Looking at the data in the sample widget above, it looks like the user consuming the most bandwidth is also having latency issues. Since this widget aggregates data for the top user identities, you can’t tell when and for how long this user has had issues. To drill down further into the data:

  1. Click on the cog icon at the top right of the widget and select More Info.
  • The Monitoring Center opens with:
  • The top of the screen displaying the traffic data for the duration that was selected for the widget (by default, 24 hours as in the screen shot above). 
  • The Advanced Analysis section at bottom displaying the same data as in the widget table, with more columns to show additional aggregate data.
  • To see the entire list of flows relevant to the same data window in the Advanced Analysis section instead of the aggregate data:
    • Click the Data Flows tab.
    • Click Process.

Additional custom analysis can be performed using the controls on this page.

Alerting on a Specific User Identity

Let’s say you want to alert on a specific user identity when that user consumes more than a specific amount of bandwidth over time. You can use the same chapter we created above to create the widget to do that as well. To create such an alert, do the following: 

  1. Click Monitoring Center > Alerts > +New Alert.
  2. Fill out the top of the form as shown in the example below:

Note that you should change the Name and Filter to reflect the actual user identity instead of user@example.com.

  • At the bottom of the form, under Actions, click on one or more of the actions available: Send emailRun scriptSend a syslog, or Send SNMP trap.

Now add an Alert widget to one of your Dashboards so you can monitor your new alert without going to the Monitoring Center alert screen.

  1. Click Dashboards and Reports and open one of your existing Dashboards.
  2. Click New Widget at the bottom of the screen (scroll down if necessary).
  3. Click the Data to Display drop-down and (at the bottom of the list) click on Alerts.
  4. Click Create Widget. The result should look like the screenshot below.

Adding the New Chapter to a Report

Finally, the same chapter used above to create the widget can be added to a Report, which can also be scheduled for creation and delivery on a periodic basis.

  1. Click Dashboards and Reports > Reports.
  2. Click  at the right of an existing report and select Edit. (Or create a new report by clicking New Report).
  3. Click Add Chapter at the bottom of the screen (you may need to scroll down if there are existing chapters in the report).
  4. Select the chapters to add to the report from the menu and click Add to Report.
  5. Click Save Report.
  6. To schedule a report, click  at the right of an existing report and select Schedule.
  7. Select appropriate options in the New Schedule form and then click Add Schedule.

Note that an email configuration must be defined in the Configuration Center under System > System Settings > Email before reports will be delivered.

Drilling Down to User Identity from Standard Widgets

So far, we’ve talked about adding specific widgets and alerts using user identity. Once correlation of syslog and flow information is enabled, you can also drill down to user identity information from any widget or alert that you create.

Let’s say you’re looking at the default Top Hostnames widget, which looks like this:

If you’re interested in seeing the User Identity information (if any) associated with the flows that are represented in this widget, you can click the cog icon at the upper right of the widget and click More Info to open an analysis screen using this data. Once the screen is open:

  1. Scroll down the screen to the Advanced Analysis section.
  2. Click the List of Flows tab. 
  3. In the Aggregate drop-down, select User Identity > Source user identity.
  4. Enable the Sort by checkbox and select bytes.
  5. In the Output drop-down, select User Identity.
  6. Click on Filter and type the following into the text box:

src uid 

  • Click the Process button.

The table of flows is replaced with one that includes the source user identity associated with each flow, as in this example:

Addendum to Previous Blog

The previous blog post on integrating ESP logs into Collector demonstrated adding one rule to Flowmon Collector under Configuration Center > System > System Settings > Syslog Server that scans for SSO client login and client logout events. This rule assumed that the LoadMaster was using the standard syslog-format for ESP user logs.

The rule in the table below is an equivalent rule that can be used when Common Event Format (CEF) logs are enabled for ESP on LoadMaster. The Use CEF Log Format option is disabled by default and appears on the System Administration > Miscellaneous Options > L7 Configuration UI page. If you have CEF log format enabled on LoadMaster, use the rule below instead of the rule from the previous blog.

NameLogin RuleLogout Rule
Kemp User Identity@ESTRING::User @@ESTRING:USERNAME: logged on from @@ESTRING:ASSIGNED_IP:@@ESTRING::user=@@ESTRING::\@@ESTRING:USERNAME: @@ESTRING::Deleted expired user session@

If you encounter any problems in the functioning of the script, let us know. We’ll be happy to help.

You may also like

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

Privacy & Cookies Policy