Skip to content
Snippets Groups Projects
Commit 1781754a authored by Francé Wilke's avatar Francé Wilke
Browse files

API Logs - increase the limit for total_fields for indexes

parent 0af6c129
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,15 @@ type Settings struct {
type SettingsIndex struct {
NumberOfShards int `json:"number_of_shards,omitempty"`
NumberOfReplicas int `json:"number_of_replicas,omitempty"`
Mapping *Mapping `json:"mapping,omitempty"`
}
type Mapping struct {
TotalFields TotalFields `json:"total_fields,omitempty"`
}
type TotalFields struct {
Limit int `json:"limit,omitempty"`
}
type Mappings struct {
......
......@@ -80,6 +80,7 @@ func (w *Writer) NewTimeSeries(name string, tmpl interface{}) (TimeSeries, error
Index: &SettingsIndex{
NumberOfShards: 4,
NumberOfReplicas: 0,
Mapping: &Mapping{TotalFields{Limit: 2000}},
},
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment