Knowledge Management

how to specify to log specific logs while installing forwader

surajmishra
New Member

Can anybody tell me while installing forwarders we get an option of which data to be forwarded to Splunk Server(splunk indexer), for e.g:- we get checkboxes for Application log, System log, Security log, setup log, forwarded events log, etc. In the same way is there any way where i can specify a specific log to be forwarded to splunk server, rather then selecting these options, because if we select even a Application Log option then it forwards all the application logs to server, even which is not required to be forwarded. Please provide me a help if anyone knows about these, its urgent.

Tags (1)
0 Karma

bmacias84
Champion

Currently there is not a way of selecting a specific log during install. I would recommend using the Deployment Server or something similar like Puppet. Though you could perform a scripted unattended installation and added the entries via script, but I would recommend using the Deployment Server. If you are installing Forwarders on Windows I have a previous post containing a PowerShell Scripted install.


#unattended installation of windows fowarder with event logs
#below is an unattended slient install with Windows Application, System, Security logging
#these options only exist for windows installations
msiexec.exe /i splunkuniversalforwarder_xxx.msi RECEIVING_INDEXER="myindexer:9997" WINEVENTLOG_SEC_ENABLE=1 WINEVENTLOG_SYS_ENABLE=1 WINEVENTLOG_APP_ENABLE=1 AGREETOLICENSE=Yes /quiet

Additional Reading:

ConfigureDeploymentClients

Universal MSI CLI installation

Serverclassconf

Wheretofindtheconfigurationfiles

powershell-unattended-installation

Hope this helps or gets you started.

0 Karma

bmacias84
Champion

@surajmishra, I've updated my post to include an example cli installation using msiexec.exe. I do something similar, but I only configure my deployment server. In larger deployment use the Deployment Server.

0 Karma

surajmishra
New Member

Hey bmacias84 ,

Thanks for ur rply, but could you tell me, isnt there is any way either by using configuration files or something, where i can atleast specify that the saved logs from event viewer to be forwarded to splunk server.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Agent Mode Engaged! Enchaining Agentic Operations with Splunk AI Assistant 2.0

    Are you ready to transform how your team handles complex data requests? We invite you to our upcoming ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...