I am trying to get a pie dashboard of successful vs abendent processes out of my logs.
My issue is that there is no way to filter the abendent processes.
So what I can do is filter based on the values that are successful and based on the total ones.
As it is logs they are no one entry, so I filter based on the logs of process start and process successful.
What I get is a pie that has the total vs the successful and what I want to do is make a formula that will give me the percentage of successful over the total - successful.
Now in this case you can see that there are three login_start and one login_successful and I want to create a dashboard that will show me 1 successful and 2 abendent.
To filter those logs from all logs I use the action = login_start or action = login_successful filter but then I still need to use some formula to get the right values. There are no other attributes in the logs that I can use to make the distinction.
I am using version 8.11 and using Pie but Donut will also be fine.
There are more logs in between the login_start and login_successful but for simplicity I only included those.
The data is already in elastic but now I want to generate a dashboard out of it. And it is not really user specific because before the user logs in there is no id and then the id changes. The session_id is just a number that increases based on the logs.
I highly recommend looking at the latest transform it is basically fit for purpose for your use cases. There is a UI builder in Kibana to create the transform
Kibana - Stack Management - Transforms
Otherwise you will struggle to do the analysis you're trying to do
My bad I do have a correlation it seems like I did not include it in my example. There is group_id that makes the correlation between the start log and successful log.
It is such that if the logs relate to one session they will all have the same value for group_id.
And I noticed that I can use the unique_count(group_id) to make sure I do not have duplicates but for now I get a pie that shows all logins vs successful ones while I want to get (total - successful) vs successful
I do not know what that means you can do not logic
kql='not action :"login_successful"'
You can figure it out... I will say one last time the Latest Transform would probably take 5 mins to setup then you would have "processed / correlated" data to work with.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.