Getting Data In

Is it possible to filter the IIS logs to they do not forwarded status 200?

crsupportddc
Explorer

I configured the Advanced Logging log files on a Server to forwarder to Splunk.

This is the structure of the log files:

Fields: sitename date-UTC time-UTC date-local time-local Method cs-uri-stem cs-uri-query Username c-ip Status Substatus TimeTakenMS

But I want that it only forwarder the states different to 200. (Status <> 200). Someone knows, How can I do it?

Regards

0 Karma

dkeck
Influencer

HI,

you can blacklist your input on forwarder side.

Try something like:

inputs.conf
     [monitor://<your_path>] 
     blacklist = regex
     sourcetype = your sourcetype
     index = your index

How does your log look like? maybe you can set the regex to status=200 that could be it.

0 Karma

crsupportddc
Explorer

Hi dkeck, Thank you for your help,

I tried to make your suggestion, but it doesn't work.

I investigated and the black list in this way is for the file name, but the row that I don't want to forwarder is inside of the file , something like that

This is the W3C structure

Fields: sitename date-UTC time-UTC date-local time-local Method cs-uri-stem cs-uri-query Username c-ip Status Substatus TimeTakenMS

This is the field
"HOMEHOME" 2019-02-14 22:56:35.416 2019-02-14 16:56:35.416 GET /home/Mobile.WebSite/api/breeze/ - 99.99.9.999 200 0 224

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!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...