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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...