Documentation
¶
Index ¶
- func DeleteByDays(parsedIndices []types.Index, days int, logtype string, loglevel string) int
- func DeleteIndex(index string) bool
- func GetClusterStatus(endpoint string, verbose bool) (types.Cluster, string)
- func GetIndices() ([]types.Index, string)
- func GetIndicesWithoutIgnored() (parsedIndices []types.Index, err string)
- func GetParsedIndices() (parsedIndices []types.Index, err string)
- func Reindex(originalIndexName string, newIndexName string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteByDays ¶
DeleteByDays function is used to delete indexes by days. This function also provides a dry run option. It uses a list of indexes provided by the GetParsedIndices function. Set verbose true if you want more output details.
func DeleteIndex ¶
DeleteIndex function is used to delete indexes by providing the elastic endpoint and the index name. Set verbose true if you want more output details.
func GetClusterStatus ¶
GetClusterStatus function returns the cluster status details. Set verbose true if you want more output details.
func GetIndices ¶
GetIndices function returns indices list from ElasticSearch. Set verbose true if you want more output details.
func GetIndicesWithoutIgnored ¶
GetIndicesWithoutIgnored function returns indices list with parsed fields filled removing the user ignored indexes set in the config file. Like the existence days of the index, loglevel, logtype and index date. Set verbose true if you want more output details.
func GetParsedIndices ¶
GetParsedIndices function returns indices list with parsed fields filled. Like the existence days of the index, loglevel, logtype and index date. Set verbose true if you want more output details.
Types ¶
This section is empty.