Documentation ¶
Index ¶
- func ImportDashboards(beatName, beatVersion string, kibanaConfig *common.Config, ...) error
- func ImportDashboardsViaElasticsearch(config *common.Config, dashConfig *Config, msgOutputter MessageOutputter) (bool, error)
- func ImportDashboardsViaKibana(config *common.Config, dashConfig *Config, msgOutputter MessageOutputter) error
- type Config
- type ElasticsearchLoader
- type Importer
- func (imp Importer) Import() error
- func (imp Importer) ImportArchive() error
- func (imp Importer) ImportDashboard(file string) error
- func (imp Importer) ImportDir(dirType string, dir string) error
- func (imp Importer) ImportFile(fileType string, file string) error
- func (imp Importer) ImportKibanaDir(dir string) error
- type KibanaLoader
- type Loader
- type MessageOutputter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImportDashboards ¶
func ImportDashboardsViaElasticsearch ¶ added in v5.5.3
func ImportDashboardsViaKibana ¶ added in v5.5.3
func ImportDashboardsViaKibana(config *common.Config, dashConfig *Config, msgOutputter MessageOutputter) error
Types ¶
type Config ¶ added in v5.5.3
type Config struct { Enabled bool `config:"enabled"` KibanaIndex string `config:"kibana_index"` Index string `config:"index"` Dir string `config:"directory"` File string `config:"file"` Beat string `config:"beat"` URL string `config:"url"` OnlyDashboards bool `config:"only_dashboards"` OnlyIndex bool `config:"only_index"` Snapshot bool `config:"snapshot"` SnapshotURL string `config:"snapshot_url"` }
type ElasticsearchLoader ¶ added in v5.5.3
type ElasticsearchLoader struct {
// contains filtered or unexported fields
}
func NewElasticsearchLoader ¶ added in v5.5.3
func NewElasticsearchLoader(cfg *common.Config, dashboardsConfig *Config, msgOutputter MessageOutputter) (*ElasticsearchLoader, error)
func (ElasticsearchLoader) Close ¶ added in v5.5.3
func (loader ElasticsearchLoader) Close() error
func (ElasticsearchLoader) CreateKibanaIndex ¶ added in v5.5.3
func (loader ElasticsearchLoader) CreateKibanaIndex() error
CreateKibanaIndex creates the kibana index if it doesn't exists and sets some index properties which are needed as a workaround for: https://github.com/elastic/beats-dashboards/issues/94
func (ElasticsearchLoader) ImportDashboard ¶ added in v5.5.3
func (loader ElasticsearchLoader) ImportDashboard(file string) error
func (ElasticsearchLoader) ImportIndex ¶ added in v5.5.3
func (loader ElasticsearchLoader) ImportIndex(file string) error
type Importer ¶
type Importer struct {
// contains filtered or unexported fields
}
func (Importer) Import ¶
Import imports the Kibana dashboards according to the configuration options.
func (Importer) ImportArchive ¶
func (Importer) ImportDashboard ¶
func (Importer) ImportKibanaDir ¶ added in v5.5.3
import Kibana dashboards and index-pattern or only one of these
type KibanaLoader ¶ added in v5.5.3
type KibanaLoader struct {
// contains filtered or unexported fields
}
func NewKibanaLoader ¶ added in v5.5.3
func NewKibanaLoader(cfg *common.Config, dashboardsConfig *Config, msgOutputter MessageOutputter) (*KibanaLoader, error)
func (KibanaLoader) Close ¶ added in v5.5.3
func (loader KibanaLoader) Close() error
func (KibanaLoader) ImportDashboard ¶ added in v5.5.3
func (loader KibanaLoader) ImportDashboard(file string) error
func (KibanaLoader) ImportIndex ¶ added in v5.5.3
func (loader KibanaLoader) ImportIndex(file string) error
type MessageOutputter ¶
type MessageOutputter func(msg string, a ...interface{})
MessageOutputter is a function type for injecting status logging into this module.
Click to show internal directories.
Click to hide internal directories.