Splunk Search

How to block or remove sourcetype in windows

armaanxman
Engager

I am testing Splunk on windows 2k8 R2. The sourcetype = "trc" (log file) is really huge in size and I want to block it or remove it. This sourcetype is uploading so much data. Please help.

Tags (5)
1 Solution

jbsplunk
Splunk Employee
Splunk Employee

You can't really block a sourcetype in the sense of stopping traffic from coming in except by disabling the input which is responsible for handling this data. If you didn't want this data coming in any longer, you can blacklist it at the input level.

http://docs.splunk.com/Documentation/Splunk/latest/Data/Whitelistorblacklistspecificincomingdata

You can also route data you don't want indexed to nullQueue using the instructions here:

http://docs.splunk.com/Documentation/Splunk/latest/Deploy/Routeandfilterdatad#Filter_event_data_and_...

You can't really remove data in a surgical fashion. You can | delete it, but that won't reclaim the space used by the events.

Your options for removing data are discussed here:

http://docs.splunk.com/Documentation/Splunk/latest/Indexer/RemovedatafromSplunk

View solution in original post

jbsplunk
Splunk Employee
Splunk Employee

You can't really block a sourcetype in the sense of stopping traffic from coming in except by disabling the input which is responsible for handling this data. If you didn't want this data coming in any longer, you can blacklist it at the input level.

http://docs.splunk.com/Documentation/Splunk/latest/Data/Whitelistorblacklistspecificincomingdata

You can also route data you don't want indexed to nullQueue using the instructions here:

http://docs.splunk.com/Documentation/Splunk/latest/Deploy/Routeandfilterdatad#Filter_event_data_and_...

You can't really remove data in a surgical fashion. You can | delete it, but that won't reclaim the space used by the events.

Your options for removing data are discussed here:

http://docs.splunk.com/Documentation/Splunk/latest/Indexer/RemovedatafromSplunk

Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...