TLDR Zhichao asked how to create rules in SigNoz query builder for log properties. Nocnica and Srikanth suggested to sum data and use 'count'. Zhichao was able to implement it.
Hi, 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?
ooooh that's an interesting question Zhichao, let me try formulating an example query to see if I can demonstrate this.
Question: are you trying to sum data.fcp within a certain timespan? So like if you have two log lines in the same minute that are `data.fcp:500` you'd want the behavior to be plotting a value of `1000`?
> generate a line chart based on the properties of the logs. How do we write rules in the Query Builder?
Use count. The body can be filtered like this `body.data.e = local`. You can use any key, operator, but the key needs to have prefix `body.`
I tried putting the data on the same layer to handle this and it seems to be ok.
Indexed 1061 threads
Built with ClickHouse as datastore, SigNoz is an open-source APM to help you find issues in your deployed applications & solve them quickly | Knowledge Base powered by Struct.AI