Hey guys, We are going to use SigNoz to collect so...
# general
z
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?
p
@Zhichao Gao 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?
a
@Zhichao Gao you can parse the field from the logs and use that field in the aggregation input box. @Raj Kamal can help to parse the
dns.fcp
field from the logs
z
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 Nayan I tried putting the data on the same layer to handle this and it seems to be ok.
p
Nice, so are you able to plot these graphs now in SigNoz?
z
Yes,It can be done
Thanks😁
p
👍
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 🙂 Here's our docs repo if you want to raise a PR - https://github.com/signoz/signoz.io cc @Ashu @Nočnica Mellifera if you need any help on how to raise the PR etc
z
Good idea, I will do this😀