Admin Manual

 


How Splunk Works

Configure auto-discovery

This documentation does not apply to the most recent version of Splunk. Click here for the latest version.

Configure auto-discovery

You can define your own event types or have Splunk discover and assign event types. Splunk's event type discovery method uses a combination of punctuation characters, source type, and keywords.


Splunk classifies events in the following way:


By default, Splunk's event type auto-discovery is tuned low. If you want to discover more event types, you can create your own event type discovery rules by editing eventdiscoverer.conf. eventdiscoverer.conf contains event classification parameters such as the number of events to process for event discovery, the maximum size of the punctuation pattern to write to event types and which keywords to process or ignore. If you wish to modify an event discovery configuration, edit $SPLUNK_HOME/etc/bundles/local/eventdiscoverer.conf or place a modified eventdiscover.conf in a custom bundle.


IMPORTANT: Many of these values will affect search and indexing performance. Try out your configuration in a test environment to make sure you have the best balance of event discovery versus performance.


Configuration

Edit $SPLUNK_HOME/etc/bundles/local/eventdiscoverer.conf. You can override any values in $SPLUNK_HOME/etc/bundles/default/eventdiscoverer.conf.


Here is a list of the attribute/value pairs you can set in eventdiscoverer.conf.


The main values you can change to tune event type discovery:

These two values -- process_every_n_events and learn_every_n_events -- are the major settings for tuning auto-discovery. If you set process_every_n_events to 1000 and learn_every_n_events to 5, event typer will process an event every 1000 events, but will only try to learn one out of every 5 of the 1 out of 1000 that were processed. You can turn event discovery up if you set these to lower numbers. You can also effectively disable auto-discovery by setting these to very large numbers.


Keyword configuration:


Other values for tuning:

Please note: the following settings are for more advanced configurations. In most cases, you should not need to modify these settings. If you would like help modifying these values, please contact Splunk support.




Example

This is the default configuration for eventdiscoverer.conf.


_actions = new,edit,delete
process_every_n_events = 10000000
learn_every_n_events = 5000
learning_delay_sec = 120
use_any_keyword = false
max_format_len = 10
min_events_to_add_keyword = 100
min_percent_for_keyword = 40
min_percent_for_tag = 99
min_format_count_to_make_event = 100
min_format_count_before_split = 400
max_memory = 5000
max_keywords_from_event = 10
learned_eventtype_priority = 1
ignored_keywords = sun, mon, tue, tues, wed, thu, thurs, fri, sat, sunday, monday, tuesday, wednesday, thursday, friday, saturday, jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec, january, february, march, april, may, june, july, august, september, october, november, december, 2003, 2004, 2005,
 2006, am, pm, ut, utc, gmt, cet, cest, cetdst, met, mest, metdst, mez, mesz, eet, eest, eetdst, wet, west, wetdst, msk, msd, ist, jst, kst, hkt, ast, adt, est, edt, cst, cdt, mst, mdt, pst, pdt, cast, cadt, east, eadt, wast, wadt, about, after, again, against, all, almost, already, also, although, always
, among, an, and, any, anyone, are, as, at, away, be, became, because, become, becomes, been, before, being, between, both, but, by, came, could, does, during, each, either, else, ever, every, following, for, from, further, gave, gets, give, given, giving, gone, got, had, has, have, having, here, how, how
ever, if, in, into, is, it, itself, just, keep, kept, like, made, make, many, might, more, most, much, must, neither, none, nor, noted, now, of, often, on, only, or, other, our, out, owing, perhaps, please, quite, rather, really, regarding, said, same, seem, seen, several, shall, should, show, showed, sho
wn, shows, similar, since, so, some, sometime, somewhat, soon, such, than, that, the, their, theirs, them, then, there, therefore, these, they, this, those, though, through, throughout, to, too, toward, under, unless, until, upon, use, used, usefulness, using, various, very, was, we, were, what, when, whe
re, whether, which, while, who, whose, why, will, with, within, without, would, yet, net, org, com, edu, co

This documentation applies to the following versions of Splunk: 3.0 , 3.0.1 , 3.0.2 , 3.1 , 3.1.1 , 3.1.2 , 3.1.3 , 3.1.4 View the Article History for its revisions.


You must be logged into splunk.com in order to post comments. Log in now.

Was this documentation topic helpful?

If you'd like to hear back from us, please provide your email address:

We'd love to hear what you think about this topic or the documentation as a whole. Feedback you enter here will be delivered to the documentation team.