更新日志

This commit is contained in:
yuguojian
2025-07-11 00:20:34 +08:00
parent e2dfb3e5ad
commit 994ed9e639

85
log/elasticsearch_map.go Normal file
View File

@@ -0,0 +1,85 @@
package log
type T struct {
Mappings Mappings `json:"mappings"`
}
type Mappings struct {
Properties Properties `json:"properties"`
}
type Properties struct {
Caller Caller `json:"caller"`
CreatedAt CreatedAt `json:"created_at"`
Level Level `json:"level"`
Log Log `json:"log"`
}
type Caller struct {
Type string `json:"type"`
Fields struct {
Keyword struct {
Type string `json:"type"`
IgnoreAbove int `json:"ignore_above"`
} `json:"keyword"`
} `json:"fields"`
}
type CreatedAt struct {
Type string `json:"type"`
Fields struct {
Keyword struct {
Type string `json:"type"`
IgnoreAbove int `json:"ignore_above"`
} `json:"keyword"`
} `json:"fields"`
}
type Level struct {
Type string `json:"type"`
Fields struct {
Keyword struct {
Type string `json:"type"`
IgnoreAbove int `json:"ignore_above"`
} `json:"keyword"`
} `json:"fields"`
}
type Log struct {
Properties struct {
At struct {
Type string `json:"type"`
Fields struct {
Keyword struct {
Type string `json:"type"`
IgnoreAbove int `json:"ignore_above"`
} `json:"keyword"`
} `json:"fields"`
} `json:"at"`
LogType struct {
Type string `json:"type"`
Fields struct {
Keyword struct {
Type string `json:"type"`
IgnoreAbove int `json:"ignore_above"`
} `json:"keyword"`
} `json:"fields"`
} `json:"log_type"`
Param struct {
} `json:"param"`
Result struct {
} `json:"result"`
Timestamp struct {
Type string `json:"type"`
} `json:"timestamp"`
Title struct {
Type string `json:"type"`
Fields struct {
Keyword struct {
Type string `json:"type"`
IgnoreAbove int `json:"ignore_above"`
} `json:"keyword"`
} `json:"fields"`
} `json:"title"`
} `json:"properties"`
}