Refine your search:

0
1

Hi,

Currently via the web UI I believe we can only set the interval time for scripted inputs to run.

Is it possible to schedule the script to run at a certain time of a day?say 23:59? instead of intervals?

asked 04 Aug '10, 04:18

remy06's gravatar image

remy06
25914
accept rate: 40%


One Answer:

Yes it is. If you specify interval as a cron-type schedule, it will run on that schedule. From inputs.conf.spec:

interval = <integer>|<cron schedule>
* How often to execute the specified command (in seconds), or a valid cron schedule. 
* NOTE: when a cron schedule is specified the script is not executed on start up
* Defaults to 60 seconds.

So you can set:

interval = 59 23 * * *
link

answered 04 Aug '10, 04:37

gkanapathy's gravatar image

gkanapathy ♦
24.1k1620
accept rate: 43%

If I am not mistaken, this is a new feature in 4.1.

(04 Aug '10, 18:16) Lowell ♦
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:

×327
×181
×140
×56

Asked: 04 Aug '10, 04:18

Seen: 373 times

Last updated: 04 Aug '10, 04:37

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