elasticsearchctl

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateElasticIndex

func CreateElasticIndex(es *elasticsearch.Client, indexName string, indexBody string) error

Function CreateElasticIndex create an Elasticsearch index with the provided index name and index body.

func InsertLog

func InsertLog(es *elasticsearch.Client, logs []logharbour.LogEntry, indexName string) error

Function InsertLog bulk insert an array of log entries into an Elasticsearch index using the provided Elasticsearch client.

func ReadLogFromFile

func ReadLogFromFile(filepath string) ([]logharbour.LogEntry, error)

Function ReadLogFromFile read log entries from a file, unmarshal the file data, and return slice of LogEntry

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL