Views

Manage views.

Usage:

shell
humioctl views [command]

Use humioctl views [command] --help for more information about a command.

Table: Views commands

ParameterDescription
Create Create a view.
Delete Delete a view.
List List all views you have access to.
Show Show details about a view.
Update Update the settings of a view.

Table: Local flags

ParameterDescription
-h, --help Help for views

Table: Global flags

ParameterDescription
-a,--address string The HTTP address of the Humio cluster. Overrides the value in your config file.
--ca-certificate-file string File path to a file containing the CA certificate in PEM format. Overrides the value in your config file.
-c, --config string Config file (default is $HOME/.humio/config.yaml)
--format string Change output format of commands, if supported. Valid formats: json
--insecure By default, all encrypted connections will verify that the hostname in the TLS certificate matches the name from the URL. Set this to true to ignore hostname validation.
-u, --profile string Name of the config profile to use
--proxy-organization string Commands are executed in the specified organization.
-t, --token string The API token to use when talking to Humio. Overrides the value in your config file.
--token-file string File path to a file containing the API token. Overrides the value in your config file and the value of --token.
--unix-socket-proxy string Path to a unix socket to use as an HTTP proxy.

Create

Create a view. Use --connection to connect repositories, specifying the filter to apply to each. Use * as the filter to match all events in a repository, for example:

shell
humioctl views create important-view --connection "repo1=*" --connection "repo2=*" --description "very important view"

Usage:

shell
humioctl views create [flags] <view-name>

Table: Local flags

ParameterDescription
--connection stringArray Set a repository connection with a filter, in the format repo-name=filter. Specify multiple times to connect multiple repositories. Use * as the filter to match all events.
--description string An optional description for the view.
-h, --help Help for create

Hide global flags

Show global flags

Delete

Delete a view. You must provide a reason for the deletion.

Usage:

shell
humioctl views delete <view> "<reason>" [flags]

Table: Local flags

ParameterDescription
-h, --help Help for delete

Hide global flags

Show global flags

List

List all views you have access to. By default, the list includes repositories. Use --only-views to exclude them.

Usage:

shell
humioctl views list [flags]

Table: Local flags

ParameterDescription
-h, --help Help for list
--only-views Display only views, excluding repositories.

Hide global flags

Show global flags

Show

Show details about a view.

Usage:

shell
humioctl views show <view> [flags]

Table: Local flags

ParameterDescription
-h, --help Help for show

Hide global flags

Show global flags

Update

Update the settings of a view. Use --connection to set repository connections, specifying the filter to apply to each. Use * as the filter to match all events in a repository, for example:

shell
humioctl views update important-view --connection "repo1=*" --connection "repo2=*" --description "very important view"

Usage:

shell
humioctl views update [flags] <view>

Table: Local flags

ParameterDescription
--connection stringArray Set a repository connection with a filter, in the format repo-name=filter. Specify multiple times to connect multiple repositories. Use * as the filter to match all events.
--description string The description of the view.
--disable-automatic-search Disable automatic search for the view.
--enable-automatic-search Enable automatic search for the view.
-h, --help Help for update

Hide global flags

Show global flags