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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...