Getting Data In

How to blacklist files in my data input where the filename has a .bin extension?

andersonwes
New Member

I have a directory with filenames like the ones below and want to blacklist the files in my data input where the filename has a .bin extension, but can't seem to. I think the multiple periods in the name is causing it to not filter. Any suggestions?

-rw-r--r-- 1 user1 usergrp   11291 Sep 22 14:22 wf_Generate_paramFiles.log
-rw-r--r-- 1 user1 usergrp   16015 Sep 22 14:22 wf_Generate_paramFiles.log.bin
-rw-r--r-- 1 user1 usergrp   10157 Mar 11  2014 wf_LU_APPLICATION.log.INSTANCE_COGNOS.27258.20140311135236
-rw-r--r-- 1 user1 usergrp   14648 Mar 11  2014 wf_LU_APPLICATION.log.INSTANCE_COGNOS.27258.20140311135236.bin
-rw-r--r-- 1 user1 usergrp   10216 Sep 22 13:22 wf_LU_APPLICATION.log.INSTANCE_COGNOS.395782.20140922132235
-rw-r--r-- 1 user1 usergrp   14653 Sep 22 13:22 wf_LU_APPLICATION.log.INSTANCE_COGNOS.395782.20140922132235.bin
-rw-r--r-- 1 user1 usergrp   8464 Sep 22 13:45 wf_MSTR_FT_TOOL_USER_DATA.log
-rw-r--r-- 1 user1 usergrp   12179 Sep 22 13:45 wf_MSTR_FT_TOOL_USER_DATA.log.bin
-rw-r--r-- 1 user1 usergrp   8223 Sep 22 13:45 wf_MSTR_FT_USER_DATA.log
-rw-r--r-- 1 user1 usergrp   11933 Sep 22 13:45 wf_MSTR_FT_USER_DATA.log.bin
-rw-r--r-- 1 user1 usergrp   8320 Sep 22 13:45 wf_MSTR_LU_APPLICATION.log
-rw-r--r-- 1 user1 usergrp   12032 Sep 22 13:45 wf_MSTR_LU_APPLICATION.log.bin
-rw-r--r-- 1 user1 usergrp   9670 Sep 22 14:22 wf_s_m_OpsRep_FETCH_ETL_WORKFLOWS.log
-rw-r--r-- 1 user1 usergrp   13927 Sep 22 14:22 wf_s_m_OpsRep_FETCH_ETL_WORKFLOWS.log.bin
Tags (1)
0 Karma

MuS
Legend

Hi andersonwes,

a simple inputs.conf entry like this

blacklist = \.bin

should do the trick.

cheers, MuS

andersonwes
New Member

I still see all files including the .bin extenstions when using that suggestion.

0 Karma

MuS
Legend

did you restart splunk after the change?
is the config correctly applied, check with $SPLUNK_HOME/bin/splunk cmd btool inputs list?

0 Karma

MuS
Legend

btw already indexed file will still show up in a Splunk search, this will only apply to new files with extension .bin

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...