diff --git a/pkg/logs/requestor.go b/pkg/logs/requestor.go index 2df9c3b5..6227628f 100644 --- a/pkg/logs/requestor.go +++ b/pkg/logs/requestor.go @@ -62,7 +62,6 @@ func (r *requester) Query(ctx context.Context, req logs.Request) (<-chan logs.Me // --output=json \ // --since= \ // <--follow> \ -// --output-fields=SYSLOG_IDENTIFIER,MESSAGE,_PID,_SOURCE_REALTIME_TIMESTAMP func buildCmd(ctx context.Context, req logs.Request) *exec.Cmd { // // set the cursor position based on req, default to 5m since := time.Now().Add(-5 * time.Minute) diff --git a/pkg/logs/requestor_test.go b/pkg/logs/requestor_test.go index 91a6c1b8..88c6fece 100644 --- a/pkg/logs/requestor_test.go +++ b/pkg/logs/requestor_test.go @@ -57,7 +57,7 @@ func Test_buildCmd(t *testing.T) { } expectedArgs := fmt.Sprintf( - "--utc --no-pager --output=json --output-fields=SYSLOG_IDENTIFIER,MESSAGE,_PID,_SOURCE_REALTIME_TIMESTAMP --identifier=spacetwo:loggyfunc --since=%s --follow --lines=5", + "--utc --no-pager --output=json --identifier=spacetwo:loggyfunc --since=%s --follow --lines=5", now.UTC().Format("2006-01-02 15:04:05"), )