Logscape Support

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: Summing and changing units - Bytes to MB..


Member

Status: Offline
Posts: 16
Date:
Summing and changing units - Bytes to MB..
Permalink  
 


Hi 

My firewalls syslogs send through the number of recieved and sent data in bytes.

If I sum this, how can I convert it to MB/GB?  (Cause see 100MB is far better than 100000000) biggrin

Cheers



__________________


Veteran Member

Status: Offline
Posts: 41
Date:
Permalink  
 

Hi Kelv1n,
 
You'll need to use synthetic fields - such as described here  and here

If you have a field labelled MB for example, create a synthetic field with the following expression - 

mvel:MB/1000 

Once you have created this field, it will be displayed for all entries, you can then sum this field instead of the MB field



-- Edited by Istair on Monday 21st of September 2015 08:43:38 AM

__________________

Excelian - GitHub



Member

Status: Offline
Posts: 16
Date:
Permalink  
 

Hi Istair

Thanks again, works great. I did find it the numbers were showing to several decimal places, and sometimes as float numbers. So I've started using Groovy to round them off too 2 decimal points, found this forum post quite informative - logscape.activeboard.com/t59925180/useful-groovy-for-synthetic-fields/.


__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.



Create your own FREE Forum
Report Abuse
Powered by ActiveBoard