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.
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?
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
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
Ankit I tried putting the data on the same layer to handle this and it seems to be ok.
Nice, so are you able to plot these graphs now in SigNoz?
Yes,It can be done
Thanks:grin:
:+1:
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 -
Zhichao
Wed, 01 Nov 2023 10:06:54 UTCHey 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?