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!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

Data Management Digest – May 2026

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