Splunk Search

How to know the number of accounts that do have not login in over 30 days in application1 but have login in application2

moiezuddin
Explorer

How to know the number of accounts that do have not login in over 30 days in application1 but have login in application2

Tags (1)
0 Karma
1 Solution

aakwah
Builder

I don't know the fields you have in your logs, so I'll assume that you have the following fields app and username and sourcetype is applogs, so you can make the following searches (and from time picker choose last month):

sourcetype=applogs app=application1 | stats count by user

sourcetype=applogs app=application2 | stats count by user

hope that this help ..

View solution in original post

dturnbull_splun
Splunk Employee
Splunk Employee

I'd do this like so:

sourcetype=app_a OR sourcetype=app_b | stats values(sourcetype) as sourcetypes dc(sourcetype) as apps by user | where sourcetypes=="app_a" AND apps=1
0 Karma

moiezuddin
Explorer

How to right search query to know last login and password reset for (2 applications) application 1 and application2
Need to write query with below given index and source
index=ibm source="abmom-tail://ibmarehouse/ibm_account

0 Karma

aakwah
Builder

I don't know the fields you have in your logs, so I'll assume that you have the following fields app and username and sourcetype is applogs, so you can make the following searches (and from time picker choose last month):

sourcetype=applogs app=application1 | stats count by user

sourcetype=applogs app=application2 | stats count by user

hope that this help ..

moiezuddin
Explorer

Please helpme out of it

How to right search query to know last login and password reset for (2 applications) application 1 and application2
Need to write query with below given index and source
index=ibm source="abmom-tail://ibmarehouse/ibm_account

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...