Refine your search:

I have been trialling the Enterprise version and tweaking so I could fit under the 500MB/day limit (we're a startup, no way to shell out US$6k yet), and one of the things I was testing was a scheduled search for a dashboard.

Now that I've applied the free license to the indexer, I'd like to remove that nagging reminder that says "Search scheduler is disabled in Splunk Free, including scheduled searches used to fill summary indexes. Dashboards using summary indexes may not work."

asked 27 Jan '11, 22:35

magu's gravatar image

magu
134
accept rate: 0%


One Answer:

You can override the default behavior of the Message Module on a per app basis.

A very smart man I know did it like this (though I might use jquery's '$.each' myself):

<app>/appserver/static/application.js:

if (Splunk.Module.Message) {
    Splunk.Module.Message= $.klass(Splunk.Module.Message, {
        getHTMLTransform: function($super){
            // Ignore the following message(s)
            var argh = [
                {contains:"Search scheduler is disabled in Splunk Free", level:"info"},
            ];
            for (var i=0,len=this.messages.length; i<len; i++){
                var message = this.messages[i];
                for (var j=0,jLen=argh.length;j<jLen;j++) {
                    if ((message.content.indexOf(argh[j]["contains"])!=-1) && (message.level == argh[j]["level"])) {
                        this.messages.splice(i,1);
                        break;
                    }
                }
            }
            return $super();
        }
    });
}
link

answered 28 Jan '11, 01:13

araitz's gravatar image

araitz ♦
7.9k3925
accept rate: 46%

What happens when you upgrade Splunk? Does this 'hack' stick?

(31 Jan '11, 19:11) magu

Did you try it? Yes, application.js is upgrade safe - if it weren't, apps wouldn't be upgrade safe either.

(01 Feb '11, 04:59) araitz ♦

it's true, unless the <app> is 'search'. -- the "search" app ships application.js, and since the search app is itself shipped with the splunk server, an upgrade will clobber all changes to that particular application.js.

(02 Feb '11, 03:18) sideview ♦
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:

×1,650
×249
×181
×42
×21

Asked: 27 Jan '11, 22:35

Seen: 1,058 times

Last updated: 28 Jan '11, 01:13

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