Splunk Search

If I only need fields "Target Account Name" and "Subject Account Name", how can I write a search to exclude other fields from the list?

pandeyashish
New Member

For example:

Message: An attempt was made to change the password
Subject: 
        Security ID:  ABC/DEF
        Account Name: XYZ
        Account Domain: ABCD
        Logon ID: 1233453
Target Account: 
       Security ID:
       Account Name:
       Account Domain:
0 Karma

javiergn
Super Champion
yoursearch
| table TargetAccountName, Subject, AcountName

Or

yoursearch
| fields TargetAccountName, Subject, AcountName
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...