One of the fields in my logs contains a list of vulnerabilities separated by comma (e.g. attacks=XSS,SQLI,LOG4J.
In Kibana, I have created a table visualisation where each row is a filter for one of the signals (e.g. attack: XSS) -- please see also picture below. Now, I would like to add two columns:
one column should contain the count of how many times that specific vulnerability appears. This is quite easy and I managed to do it already.
the other column should contain the percentage calculated as "count from the column before" / "count of logs containing vulnerabilities"
Did you try to do this with Kibana Lens? You can select the table visualization and then use formulas to perform math. The most common formulas divide two values to produce a percentage.
Hi Priscilla @Priscilla_Parodi , thank you for your reply. I tried to use the formula tab but I don't know how it can be applied to my use case. The count is not in any log field, so I am using a row filter to populate the table rows. I guess the formula would work if the vulnerabilities were stored separately, but my logs have multiple vulnerabilities stored in the same field (that's why I am using filters of the form vulnerbaility: *keyword*.
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.