Utilizing SigNoz for Client Log Collection and Graph Plotting

TLDR Zhichao enquired about writing rules in SigNoz's Query Builder for log analysis. Pranay, Ankit, Raj guided on efficient data extraction and plotting metrics. The issue was resolved and further documentation for similar issues was suggested.

Photo of Zhichao
Zhichao
Wed, 01 Nov 2023 10:06:54 UTC

Hey guys, We are going to use SigNoz to collect some client logs and generate a line chart based on the properties of the logs. How do we write rules in the Query Builder? For example, my log is first picture,How should I write a rule that can generate values where x is time and y is data.fcp?

Photo of Pranay
Pranay
Thu, 02 Nov 2023 17:07:29 UTC

Zhichao I think extracting this data from log and plot may be costly. Is it possible you can generate custom metrics from this data and plot the metrics directly?

Photo of Ankit
Ankit
Fri, 03 Nov 2023 04:29:39 UTC

Zhichao you can parse the field from the logs and use that field in the aggregation input box. Raj can help to parse the `dns.fcp` field from the logs

Photo of Zhichao
Zhichao
Fri, 03 Nov 2023 05:38:20 UTC

Because in addition to these indicators, there may be some customized indicators in the business. It is hoped that in addition to the aggregated charts, these reported indicators can be found, and the original reported information can be found. There will be log records in the Log. The scenario may be more Suitable for some. Pranay

Photo of Zhichao
Zhichao
Fri, 03 Nov 2023 05:39:54 UTC

Ankit I tried putting the data on the same layer to handle this and it seems to be ok.

Photo of Pranay
Pranay
Mon, 06 Nov 2023 04:44:51 UTC

Nice, so are you able to plot these graphs now in SigNoz?

Photo of Zhichao
Zhichao
Tue, 07 Nov 2023 03:03:46 UTC

Yes,It can be done

Photo of Zhichao
Zhichao
Tue, 07 Nov 2023 03:04:31 UTC

Thanks:grin:

Photo of Pranay
Pranay
Tue, 07 Nov 2023 17:48:03 UTC

:+1:

Photo of Pranay
Pranay
Tue, 07 Nov 2023 17:49:41 UTC

Might be interesting if you can write a tutorial in our docs on how you did this - would be useful for other users who may want to try something similar :slightly_smiling_face: Here's our docs repo if you want to raise a PR - cc <@4K148a> <@4K1f23> if you need any help on how to raise the PR etc