elastic

package
v0.76.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportLogs

func ExportLogs(p *platform.Platform, filebeatName string, query Query) error

Types

type Fields

type Fields struct {
	Cluster string `json:"cluster"`
}

type Kubernetes

type Kubernetes struct {
	Namespace string `json:"namespace"`
	Pod       Name   `json:"pod"`
	Container Name   `json:"container"`
}

type Message

type Message struct {
	Kubernetes Kubernetes `json:"kubernetes"`
	Host       Name       `json:"host"`
	Fields     Fields     `json:"fields"`
	Timestamp  string     `json:"@timestamp"`
	Message    string
}

type Name

type Name struct {
	Name string
}

func (Name) String

func (n Name) String() string

type Query

type Query struct {
	Namespace  string
	Cluster    string
	Pod        string
	Count      int
	Query      string
	Since      string
	From, To   string
	Timestamps bool
}

func (Query) ToQuery

func (query Query) ToQuery() elastic.Query

Jump to

Keyboard shortcuts

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