Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateElasticIndex ¶
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.
Click to show internal directories.
Click to hide internal directories.