diff --git a/lib/logstorage/pipe_fields.go b/lib/logstorage/pipe_fields.go index eb6654b50..c3bcb38b4 100644 --- a/lib/logstorage/pipe_fields.go +++ b/lib/logstorage/pipe_fields.go @@ -54,9 +54,6 @@ func parsePipeFields(lex *lexer) (*pipeFields, error) { if !lex.mustNextToken() { return nil, fmt.Errorf("missing field name") } - if lex.isKeyword(",") { - return nil, fmt.Errorf("unexpected ','; expecting field name") - } field, err := parseFieldName(lex) if err != nil { return nil, fmt.Errorf("cannot parse field name: %w", err) diff --git a/lib/logstorage/pipe_stats.go b/lib/logstorage/pipe_stats.go index 56d8e418c..0d6e8eedc 100644 --- a/lib/logstorage/pipe_stats.go +++ b/lib/logstorage/pipe_stats.go @@ -550,9 +550,6 @@ func parseByFields(lex *lexer) ([]*byField, error) { lex.nextToken() return bfs, nil } - if lex.isKeyword(",") { - return nil, fmt.Errorf("unexpected `,`") - } fieldName, err := parseFieldName(lex) if err != nil { return nil, fmt.Errorf("cannot parse field name: %w", err)