|
In Splunk, what is an intention? The Splexicon somewhat describes it .. but not really: |
|
Right now that description could use some improvement. I'll send an email and over the short term this question, answer and that page will likely evolve a bit. Intentions are an abstraction layer that allows the UI to make a common subset of search-language modifications to any given search string, without having to have any language-parsing code on the client. Modules can contribute to the user's eventual search in a number of ways:
that's about it as far as altering the search that eventually gets run. To give some specific examples of intentions: a) an 'addterm' intention can be used to safely add either "foo" or foo="bar" to the search, and it can also specify whether the term should be added to the first search clause, or added at the end after any renames/rex clauses etc.. b) a 'toggleterm' intention is rarely useful to third party developers but very central to the splunk UI - it is much like addterm except that if it finds the corresponding search language piece is already there it will remove it instead of adding it. c) the 'plot' intention can do common permutations of top/rare/timechart and is what power's report builder's 'basic' mode. d) the 'stringreplace' intention allows you to turn a selected element from the UI into a specific string in a specific place in the underlying search string. This intention breaks the normal intention model in that 1) it requires special matching syntax to be present in the underlying search string (ie What about
(28 May '10, 16:33)
Lowell ♦
thanks for pointing that out Lowell. Added some comments.
(02 Jun '10, 20:12)
sideview ♦
|