Getting Data In

exclude particular statement from the input

Jananee_iNautix
Path Finder

I have different log statements like

2014-01-09 02:04:09,121 [450d450d] MAJOR: FTP Inbound Agent : Directory [] File [] on Server [10.6.16.222]
2014-01-11 00:01:01,050 [608c608c] MAJOR: SFTP Inbound - Zero Byte File Check
2013-12-05 15:34:00,895 [275f275f] +MAJOR: Stacktrace of root exception
.
.
.
etc
Some search is appplied on the above statements and a report is created.I want to exclude the log statement
"2014-01-11 00:01:01,050 [608c608c] MAJOR: SFTP Inbound - Zero Byte File Check"
in the log file from being searched and create a report.Is there any option in splunk to do this?

Tags (1)
0 Karma

lukejadamec
Super Champion

Try adding the following to your search portion of your search. The NOT must be all caps.

NOT "*MAJOR: SFTP Inbound - Zero Byte File Check*"

kristian_kolb
Ultra Champion

Slightly rewritten for readability - does this produce the desired results?

index=fxr (SUCCESS File successfully uploaded) OR (MAJOR NOT "SFTP Inbound - Zero Byte File Check")

/K

0 Karma

Jananee_iNautix
Path Finder

i gave the search like
index=fxr file AND (MAJOR) OR (SUCCESS: AND File AND successfully AND uploaded) NOT"*MAJOR: SFTP Inbound - Zero Byte File Check*" but its not getting excluded.Please help

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Data Management Digest – May 2026

Welcome to the May 2026 edition of Data Management Digest!   As your trusted partner in data innovation, the ...

Index This | What is feather-light but cannot be held long?

May 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

.conf26 Registration is Live: Secure Your Early Bird Pass Now

  Lock in Your Spot: Registration Open for .conf26 in Denver Hello Splunkers, I have exciting news! Your ...