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!

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...

Global Splunk User Group Events: May + June 2026

Your Splunk Community Awaits: Discover Upcoming User Group Events Worldwide    Staying ahead in the fast-paced ...