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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...