typer
Description
Creates an eventtype
field for search results that match known event types. You must create event types to use this command. See About event types in the Knowledge Manager Manual.
Syntax
The required syntax is in bold.
typer
[eventtypes=<string>]
[maxlen=<unsigned_integer>]
Required arguments
None.
Optional arguments
eventtypes
Syntax: eventtypes=<string>
Description: Provide a comma-separated list of event types to filter the set of event types that typer
can return in the eventtype
field. The eventtypes
argument filters out all event types except the valid event types in its list. If all of the event types listed for eventtypes
are invalid, or if no event types are listed, typer
is turned off and will not return any event types. The eventtypes
argument accepts wildcards.
Default: No default (by default typer
returns all available event types)
maxlen
Syntax: maxlen=<unsigned_integer>
Description: By default, the typer
command looks at the first 10000 characters of an event to determine its event type. Use maxlen
to override this default. For example, maxlen=300
restricts typer
to determining event types from the first 300 characters of events.
Usage
The typer
command is a distributable streaming command. See Command types.
Changing the default for maxlen
Users with file system access, such as system administrators, can change the default setting for maxlen
.
Splunk Cloud Platform
To change the maxlen
default setting, request help from Splunk Support. If you have a support contract, file a new case using the Splunk Support Portal at Support and Services. Otherwise, contact Splunk Customer Support.
Splunk Enterprise
To change the maxlen
default setting, follow these steps.
- Only users with file system access, such as system administrators, can change the
maxlen
default setting using configuration files. - Review the steps in How to edit a configuration file in the Splunk Enterprise Admin Manual.
Steps
- Open or create a local limits.conf file for the Search app at
$SPLUNK_HOME/etc/apps/search/local
. - Under the [typer] stanza, specify the default for the
maxlen
setting.
Examples
Example 1:
Returns a field called eventtype
which lists the names of the event types associated with the search results.
... | typer
See also
Commands
Related information
About event types in the Knowledge Manager Manual