Alerting

4 students are attempting for exams multiple times , need to extract only failed student details, can any one help

sunil04mca
Explorer

Student_name    Status   marks

john                               fail        30

han                               fail        10

ram                               fail        20

vish                               Pass        50

han                               Pass        90

ram                               Pass        50

 

 

The output should be -  as ram as passed in second attempt

Student_name    Status   marks

john                               fail        30

han                               fail        10

Labels (1)
Tags (1)
0 Karma
1 Solution

Nisha18789
Builder

hi @sunil04mca , you can use this after your main query

....| stats latest(status) as status by user | search status="fail"

View solution in original post

Nisha18789
Builder

hi @sunil04mca , you can use this after your main query

....| stats latest(status) as status by user | search status="fail"

sunil04mca
Explorer

@Nisha18789  This query will work for above table , but when i am trying to combine and  extract from 2 tables , i am not getting.
table-1 student name , marks and status, 
table-2 we have student details. should extract address and DOB.
Need a report as student-name, status,address and DOB.

Can u pls help on this

0 Karma

sunil04mca
Explorer

Thanks @Nisha18789 , this is working as expected..

0 Karma

iamkilarunaresh
Explorer

use stats latest(status) as status | search status=fail

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...