Refine your search:

What should I attach to my install script if I want to start monitoring the event log in "tail" mode. I don't want to grab any historical events on the first time the LWF runs on the client machines.

I have this as an install script:

msiexec.exe /i %SPLUNK_MSI% LAUNCHSPLUNK=0 WMICHECK_CPUTIME=0 WMICHECK_LOCALDISK=0 WMICHECK_FREEDISK=0 WMICHECK_MEMORY=0 WINEVENTLOGAPPCHECK=0 WINEVENTLOGSECCHECK=1 WINEVENTLOGSYSCHECK=0 /QUIET

This will successfully enable the Security event log on windows, but will capture the historical events.

asked 15 Mar '10, 13:48

BunnyHop's gravatar image

BunnyHop
8369828
accept rate: 25%

edited 14 Apr '10, 15:45


2 Answers:

You should use configuration files immediately after running the installer to set this up. See either: http://answers.splunk.com/questions/434/can-i-auto-install-or-deploy-splunk-onto-all-my-remote-windows-servers/437#437 or http://www.splunk.com/wiki/Deploy:SplunkForwarder_for_Windows_installscript for an example of a script that installs and lays down any desired configuration on top.

link

answered 22 Mar '10, 21:45

gkanapathy's gravatar image

gkanapathy ♦
32.4k4827
accept rate: 41%

This works, however, when the service starts for the first time, it overrides the files I've placed...i.e. I created an inputs.conf that has certain attributes, after the splunk service starts, it replaced my custom inputs.conf, it did not append it as I expected.

(23 Mar '10, 16:01) BunnyHop

where did you put your custom file? etc/system/local would be the wrong place.

(24 Mar '10, 14:32) gkanapathy ♦

Yes that's where i put my file. Where would be the better spot?

(26 Mar '10, 17:07) BunnyHop

etc/apps/search/local

(27 Mar '10, 16:56) gkanapathy ♦

I don't think the requisite flag, current_only, is exposed in the WMI interface. You will need to do one of:

  • Manually (possibly by script) tweak the inputs.conf post-install, but this will not prevent splunk from starting to pull the eventlog when it's first started. Since you are setting LAUNCHSPLUNK=0, this should be achivable before the first start.
  • Alternatively, leave all the inputs disabled, but configure your hosts as deployment clients. Then you can deliver an inputs.conf tailored to your needs via that method. Unfortunately deployment client configuration isn't triggerable via the MSI commandline.
link

answered 15 Mar '10, 22:20

jrodman's gravatar image

jrodman ♦
7.0k21027
accept rate: 41%

Is there a way to append the inputs.conf? I can possibly disable all inputs from the install and then have another line in the script to copy the /etc/ files. I don't to override the inputs.conf file that splunk creates during installation, since that contains the hostname of the client.

I'm using the free splunk so I can't utilize the deployment server/client environment.

(16 Mar '10, 01:01) BunnyHop
Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×145
×124
×106

Asked: 15 Mar '10, 13:48

Seen: 1,723 times

Last updated: 14 Apr '10, 15:45

Copyright © 2005-2012 Splunk Inc. All rights reserved.