<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Splunk remote windows data collection in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-remote-windows-data-collection/m-p/41097#M7623</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;We are looking at using the universal forwarder to collect remote windows data from event logs from approx 11,000 clients. Is this recommended and is there any documentation out there on how to set this up if we have all client machine names?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2013 14:42:56 GMT</pubDate>
    <dc:creator>aaronkorn</dc:creator>
    <dc:date>2013-05-21T14:42:56Z</dc:date>
    <item>
      <title>Splunk remote windows data collection</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-remote-windows-data-collection/m-p/41097#M7623</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;We are looking at using the universal forwarder to collect remote windows data from event logs from approx 11,000 clients. Is this recommended and is there any documentation out there on how to set this up if we have all client machine names?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 14:42:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-remote-windows-data-collection/m-p/41097#M7623</guid>
      <dc:creator>aaronkorn</dc:creator>
      <dc:date>2013-05-21T14:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk remote windows data collection</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-remote-windows-data-collection/m-p/41098#M7624</link>
      <description>&lt;P&gt;Why not install a UF on the clients?  11,00 client for one UF seems a bit hefty. Also how concerned are you with in flight data losss?&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 14:52:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-remote-windows-data-collection/m-p/41098#M7624</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-05-21T14:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk remote windows data collection</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-remote-windows-data-collection/m-p/41099#M7625</link>
      <description>&lt;P&gt;This is an option that we could do with SCCM and yes we are with in flight data loss.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 14:55:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-remote-windows-data-collection/m-p/41099#M7625</guid>
      <dc:creator>aaronkorn</dc:creator>
      <dc:date>2013-05-21T14:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk remote windows data collection</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-remote-windows-data-collection/m-p/41100#M7626</link>
      <description>&lt;P&gt;If you're using WMI this wont work.  WMI causes issues once you get over about 60 WMI inputs.&lt;/P&gt;

&lt;P&gt;You need to use universal forwarders installed locally on each server.  If you're looking to script the install see these resources:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Deploy/DeployaWindowsdfviathecommandline"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/Deploy/DeployaWindowsdfviathecommandline&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Installation/InstallonWindowsviathecommandline"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/Installation/InstallonWindowsviathecommandline&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I've tried to powershell this using winrm but havent had luck with msiexec running in a remote shell:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;function Deploy-Splunk 
{
param (
[string] $ServerList = $(Read-Host -prompt "Path to server list (b:\splunk\qa\serverlist.txt)"),
[string] $MSI = $(Read-Host -prompt "Path to MSI (b:\splunkforwarder\forwarder.msi)"),
[string] $Indexer = $(Read-Host -prompt "Indexer Hostname or IP (serverhostname.com)"),
[string] $Port = $(Read-Host -prompt "Port Number (9999, 9997)"),
[string] $Options = $(Read-Host -prompt "Options (WINEVENTLOG_APP_ENABLE=1 WINEVENTLOG_SYS_ENABLE=1 WINEVENTLOG_SET_ENABLE=1 PERFMON=cpu,memory,network,diskspace SERVICESTARTTYPE=auto LAUNCHSPLUNK=1 AGREETOLICENSE=Yes /quiet)")
)

begin {
$error.Clear()
}

process {
$Cred=get-credential 
$Indexer='RECEIVING_INDEXER="' + $Indexer + ':' + $Port + '"'
$InstallCommand=msiexec.exe /i $MSI $Indexer $Options

foreach ($Server in (gc $ServerList)) {
$S = new-pssession -computername $Server -credential $Cred
invoke-command -session $S -Argumentlist @($InstallCommand) -ScriptBlock {
$error.Clear()
$InstallCommand

if ($error -ne '$null') {
$msg='SplunkUniversalForwarder Failed to Install.'  + '`n`r' + 'Installation Command: ' + $InstallCommand + '`n`r' + 'Calling Stack...' + '`n`r' + $error
Write-EventLog Splunk -Source Splunk -entrytype error -eventID 999 -message "$msg"
$error.Clear()
} #end if error

if ($error -eq '$null') {
$msg='SplunkUniversalForwarder Installed Successfully.'  + '`n`r' + 'Installation Command: ' + $InstallCommand
Write-EventLog Splunk -Source Splunk -entrytype error -eventID 999 -message "$msg"
} #end if error

} #end invoke-command / scriptblock

} #end foreach loop

} #end process

} #end function Deploy-Splunk
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 May 2013 15:02:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-remote-windows-data-collection/m-p/41100#M7626</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2013-05-21T15:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk remote windows data collection</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-remote-windows-data-collection/m-p/41101#M7627</link>
      <description>&lt;P&gt;If you are worried about in flight data loss there is easy way to guaranty reciept of the data from the remove client as wmi is based on interval.  I would recommend installing the UF locally on each 11,000 servers as the UF will have check points on the event logs and you can enable indexer acknowledgement.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 15:57:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-remote-windows-data-collection/m-p/41101#M7627</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-05-21T15:57:24Z</dc:date>
    </item>
  </channel>
</rss>

