Skip to main content

New CLI command to inspect Turbine Application logs

· 2 min read
Raúl Barroso
Engineering
warning

This is a legacy platform changelog. The information reflected here may not represent current functionality and some links may be broken.

Our latest Meroxa CLI version v2.6.0 includes a new command apps logs that will let Turbine developers consult any log or trace that's relevant to their streaming applications developed with Turbine.

note

This command assumes a Turbine Data Application was previously deployed.

# Investigate logs of a previously deployed application

$ meroxa apps logs my-turbine-application

function-960959 (function)
[2022-04-19T05:35:51Z] Received key:"{\"schema\":{\"type\":\"int32\",\"optional\":false},\"payload\":3}" value:"{\"payload\":{\"id\":3},\"schema\":{\"fields\":[{\"field\":\"id\",\"optional\":false,\"type\":\"int32\"}],\"name\":\"account\",\"optional\":false,\"type\":\"struct\"}}" timestamp:1658430032
[2022-04-19T05:35:51Z] Received key:"{\"schema\":{\"type\":\"int32\",\"optional\":false},\"payload\":4}" value:"{\"payload\":{\"id\":4},\"schema\":{\"fields\":[{\"field\":\"id\",\"optional\":false,\"type\":\"int32\"}],\"name\":\"account\",\"optional\":false,\"type\":\"struct\"}}" timestamp:1658430032
[2022-04-19T05:35:51Z] Received key:"{\"schema\":{\"type\":\"int32\",\"optional\":false},\"payload\":5}" value:"{\"payload\":{\"id\":5},\"schema\":{\"fields\":[{\"field\":\"id\",\"optional\":false,\"type\":\"int32\"}],\"name\":\"account\",\"optional\":false,\"type\":\"struct\"}}" timestamp:1658430032
[2022-04-19T05:35:51Z] panic: interface conversion: interface {} is nil, not string
[2022-04-19T05:35:51Z]
[2022-04-19T05:35:51Z] goroutine 8 [running]:
[2022-04-19T05:35:51Z] main.Anonymize.Process({}, {0xc000208540, 0x1, 0x1})
[2022-04-19T05:35:51Z] /go/src/app/app.go:75 +0x214
[2022-04-19T05:35:51Z] github.com/meroxa/turbine-go/platform.wrapFrameworkFunc.func1({0x0, 0x0}, 0xc00024fb00)
[2022-04-19T05:35:51Z] /go/src/app/vendor/github.com/meroxa/turbine-go/platform/server.go:72 +0x2f
[2022-04-19T05:35:51Z] github.com/meroxa/turbine-go/platform.ProtoWrapper.Process({0x40ae05}, {0x9dc6e0, 0xc00001ec30}, 0x40d100)
[2022-04-19T05:35:51Z] /go/src/app/vendor/github.com/meroxa/turbine-go/platform/server.go:27 +0x2f
[2022-04-19T05:35:51Z] github.com/meroxa/funtime/proto._Function_Process_Handler({0x8c2d80, 0xc000119b30}, {0x9dc6e0, 0xc00001ec30}, 0xc0000686c0, 0x0)
[2022-04-19T05:35:51Z] /go/src/app/vendor/github.com/meroxa/funtime/proto/service.pb.go:364 +0x170
[2022-04-19T05:35:51Z] google.golang.org/grpc.(*Server).processUnaryRPC(0xc000193340, {0x9e51b8, 0xc000194180}, 0xc000228120, 0xc0001b6ba0, 0xd1dd70, 0x0)
[2022-04-19T05:35:51Z] /go/src/app/vendor/google.golang.org/grpc/server.go:1282 +0xccf
[2022-04-19T05:35:51Z] google.golang.org/grpc.(*Server).handleStream(0xc000193340, {0x9e51b8, 0xc000194180}, 0xc000228120, 0x0)
[2022-04-19T05:35:51Z] /go/src/app/vendor/google.golang.org/grpc/server.go:1616 +0xa2a
[2022-04-19T05:35:51Z] google.golang.org/grpc.(*Server).serveStreams.func1.2()
[2022-04-19T05:35:51Z] /go/src/app/vendor/google.golang.org/grpc/server.go:921 +0x98
[2022-04-19T05:35:51Z] created by google.golang.org/grpc.(*Server).serveStreams.func1
[2022-04-19T05:35:51Z] /go/src/app/vendor/google.golang.org/grpc/server.go:919 +0x294
...

In the event of any of the Meroxa Resources associated have entered to an error state, this command will also indicate a stack trace related to the affected resource.

Note about previous releases

Prior to Meroxa CLI v2.6.0, a mechanism to investigate further your application was via meroxa apps describe using the --extended flag. We heard feedback from our customers regarding this wasn't intuitive enough so we decided to remove its support in favor of the newly apps logs command.

warning

CLI command meroxa apps describe no longer supports the --extended flag.

To get started with the CLI, check out the Installation Guide.

For any questions or comments: