Getting Data In

How to set up universal forwarder to pre-filter information before it get to indexer and is viable in web UI

rodri270
New Member

Hey guys quick question

I have my universal forwarder set on up on my box to pull my apache access.log and error.log files. Now these files are viewable no problem in the web UI but I wanna trim down what exactly it pulls out of the files. For example if i want the web ui to only display all get request from the access.log file is that possible to have the universal forwarder pre-filter everything before it even touches the indexer?

Thank a lot

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi rodri270,
only to understand your need. do you want:

  • to index all the logs and show in a dashboard or a search only a subset of them,
  • filter logs and index only a part of them, so the showed data are the same that were indexed.

In the first case, you have to refine your search so you only see the results you want (but maintain all the logs and you can see them).
In the second case you can filter your logs on Indexers following the link https://docs.splunk.com/Documentation/Splunk/7.2.6/Forwarding/Routeandfilterdatad , in this case the logs you see in an unfiltered search are the same you indexed, and the others are lost.

Bye.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

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