Hi guys, I just started using signoz. Was wonderin...
# general
Hi guys, I just started using signoz. Was wondering how I can remove signoz own logs. I've managed to remove the sample app metrics and traces by following this guide - https://signoz.io/docs/operate/docker-standalone/#remove-the-sample-application-from-signoz-dashboardbut I see the signoz logs are still coming however. How can I remove? My logs interface is quite noisy as a result of the signoz own logs and I'd like to remove so I'm left with only logs for the application being monitored. See screenshot of the signoz logs. Also below. Would appreciate if someone can guide me. Thanks in advance 🙏
2023-06-17T104805+03:00 | - - [17/Jun/20230748:05 +0000] "GET /api/v1/logs/tail?timestampStart=1686986894073000000 HTTP/1.1" 200 73664 "http://signoz.domain.xyz:3301/logs?q=" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36" "-"
2023-06-17T104805+03:00 | 2023-06-17T074805.163Z INFO app/server.go:280 /api/v1/logs/tail timeTaken: 4m50.969067478s
2023-06-17T104805+03:00 | 2023-06-17T074805.163Z DEBUG app/http_handler.go:2261 done!
2023-06-17T104805+03:00 | 2023-06-17T074805.161Z DEBUG clickhouseReader/reader.go:3541 closing go routine :
2023-06-17T104804+03:00 | 2023.06.17 074804.850539 [ 47 ] {2107a9a8-84e4-4791-b150-561fbbba4b5d} <Information> executeQuery: Read 798 rows, 6.23 KiB in 0.002790747 sec., 285944 rows/sec., 2.18 MiB/sec.
2023-06-17T104804+03:00 | - - [17/Jun/20230748:04 +0000] "GET /logs?q= HTTP/1.1" 200 791 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36" "-"
2023-06-17T104804+03:00 | 2023-06-17T074804.407Z DEBUG clickhouseReader/reader.go:3553 SELECT timestamp, id, trace_id, span_id, trace_flags, severity_text, severity_number, body,CAST((attributes_string_key, attributes_string_value), 'Map(String, String)') as attributes_string,CAST((attributes_int64_key, attributes_int64_value), 'Map(String, Int64)') as attributes_int64,CAST((attributes_float64_key, attributes_float64_value), 'Map(String, Float64)') as attributes_float64,CAST((resources_string_key, resources_string_value), 'Map(String, String)') as resources_string from signoz_logs.distributed_logs where timestamp >='1686988064851955929' and id > '2RIKkvmFr30zGjfEHHa8mJWn4HL' order by timestamp desc, id desc limit 100
@nitya-signoz do you have more insights on this?
Hi, we have a issue opened for this https://github.com/SigNoz/signoz/issues/2855. As of now you will have to solve it manually as by default docker doesn’t provide metadata related to name of the pods. Here is the solution for adding metadata to your docker container logs https://github.com/SigNoz/signoz/issues/1597#issuecomment-1259234665 and then you can use filter operator to filter out the logs you don’t want to be ingested https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/pkg/stanza/docs/operators/filter.md
Thanks @nitya-signoz and @Pranay. Lemme try the suggested solutions.