Skip to content
Snippets Groups Projects

Add search client for OpenSearch to log and query API events

Merged Pieter van Staden requested to merge 5-opensearch-for-apilogs into main
4 files
+ 206
63
Compare changes
  • Side-by-side
  • Inline

Files

+ 4
0
@@ -31,3 +31,7 @@ func (c *Config) Validate() error {
const indexNamePattern = `[a-z]([a-z0-9-]*[a-z0-9])*`
var indexNameRegex = regexp.MustCompile("^" + indexNamePattern + "$")
func ValidIndexName(s string) bool {
return indexNameRegex.MatchString(s)
}
Loading