Getting Data In

Can Forwarder Be Configured to Pull Only?

kfalconer
New Member

Given our environment requirements, it is not possible to have a forwarder push data to an indexer as needed (because of firewall rules). Is there a way to configure an indexer to make a request to pull data from a forwarder?

Thanks,
Karl

0 Karma

rturk
Builder

Hi kfalconer,

My first port of call would be to consult your firewall administrators to see whether a rule could be created specifically to allow data out. Splunk can usually address any security concerns that FW admins would have, and as they have a fairly simple comms matrix, (TCP 8089, 9997) it can be locked down. An intermediary forwarder may even be used so that comms only ever originates from one host to simplify matter even more.

I recently had a deployment where the corporate policy did not allow the installation of a Universal Forwarder on some servers, AND data could only be transmitted within a certain window. As a Splunk guy, I can tell you that this was not my idea of fun...

ANYWAY, we managed to get around this by writing custom scripts that would be scheduled to run daily at 2AM, extract Windows event logs for the previous 24 hours, and write them to a shared directory (on a different server) that did have a Universal Forwarder on it to pick up the events and send them to the Indexer.

The end result is that they now have 'Splunk for Active Directory' installed and operational... but only with data for the previous day (they understood this would be the case), and there was a bit of rewrite to get the app working... which I wouldn't recommend if you value your sanity 🙂

TL;DR: If your firewall admins can't help, you might want to look at the following:

  • Custom scripts to collect data on a scheduled basis
  • Drop the events on a shared directory that can send data to the indexer
  • Have a Universal Forwarder on that server send the data to the Indexer as it's received,

PS. If your firewall admins can't help... then they're probably not going to like you taking this approach either 😛

0 Karma

vrossign
New Member

I have the same usecase.

Isn't it possible to write the logs into files and have another forwarder close to the indexer retrieve those log files ?

0 Karma

Ayn
Legend

Absolutely. There are multiple ways of making this happen - the question was just whether a forwarder itself can do some kind of pull instead of push, and it can't. But sure, you can have another forwarder fetch data from the hosts(s) in questions, through a script, fileshare or something else.

0 Karma

Drainy
Champion

Not really.
By default the forwarder works through UDP and so it simply forwards all messages out to the indexer, the flow of this can be limited and the local buffer size can be adjusted.
The indexer isn't really designed to poll forwarders for information, mainly to receive the information.

What rules are restricting you? There may be other methods of achieving this that someone else might know

0 Karma

apfender_splunk
Splunk Employee
Splunk Employee

splunk internal communication is using tcp only, no udp

0 Karma

kfalconer
New Member

I dont know the specific firewall rules, just that the remote machines (of which we want log information) can not initiate requests to a destination outside the firewall.

0 Karma
Get Updates on the Splunk Community!

Cloud Platform & Enterprise: Classic Dashboard Export Feature Deprecation

As of Splunk Cloud Platform 9.3.2408 and Splunk Enterprise 9.4, classic dashboard export features are now ...

Explore the Latest Educational Offerings from Splunk (November Releases)

At Splunk Education, we are committed to providing a robust learning experience for all users, regardless of ...

New This Month in Splunk Observability Cloud - Metrics Usage Analytics, Enhanced K8s ...

The latest enhancements across the Splunk Observability portfolio deliver greater flexibility, better data and ...