https://signoz.io logo
#general
Title
# general
z

Zhichao Gao

11/01/2023, 10:06 AM
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

Pranay

11/02/2023, 5:07 PM
@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

Ankit Nayan

11/03/2023, 4:29 AM
@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

Zhichao Gao

11/03/2023, 5:38 AM
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

Pranay

11/06/2023, 4:44 AM
Nice, so are you able to plot these graphs now in SigNoz?
z

Zhichao Gao

11/07/2023, 3:03 AM
Yes,It can be done
Thanks😁
p

Pranay

11/07/2023, 5:48 PM
👍
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

Zhichao Gao

11/15/2023, 6:05 AM
Good idea, I will do this😀
5 Views