func removeKeywordSuffix()

in action/log/logadapter/elasticsearch.go [249:260]


func removeKeywordSuffix(input []string) []string {
	var result []string
	for _, str := range input {
		// Check if the string ends with ".keyword"
		if strings.HasSuffix(str, ".keyword") {
			// Remove the ".keyword" suffix
			str = strings.TrimSuffix(str, ".keyword")
		}
		result = append(result, str) // Add the processed string to the result slice
	}
	return result
}