Getting Data In

Help extracting user logins from IIS logs to one report

mwagnerfhlbc
Engager

Hello, I'm trying to extract two types of data from IIS logs to sum up the login counts for a list of specific users.

The IIS logs contain two entries I'm curious about specifically. If I run this search query, I get the data I'm looking for:

index=myindex host=NAMEOFSERVER "POST" "https://url.test.com/adfs/ls/" "/default.aspx" "OAuth+MSAuthHost"
AND ("DOMAIN\\User1" OR "DOMAIN\\User2") | chart count by cs_username limit=0

This will return a chart, showing the amount of times those 2 users logged via mobile for a specific time period. Now, I have another search query that gives me data I'm looking for.

index=myindex host=NAMEOFSERVER "POST" "https://url.test.com/adfs/ls/" "/default.aspx" NOT "OAuth+MSAuthHost"
AND ("DOMAIN\\User1" OR "DOMAIN\\User2") | chart count by cs_username limit=0

This will return the amount of times those 2 users logged in NOT using mobile.

What I'm trying to do is combine these two results on to one report, showing a bar chart for User1 and User2 comparing how many times they logged in via mobile (first query) and how many times they didn't (second query).

I've tried appendcol, join, just haven't had any luck combining these two datasets. Is it possible?

Thank you!

0 Karma
Get Updates on the Splunk Community!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...