Overview
The Smart Service, Import Login Audit, will read your login audit file(s) and populate a database with information about logins. This is provided mainly as an example (source code provided) as you may need to modify the smart service to make it work with your environment.
Hi Eduardo Fuentes
Hope your doing Well!
I could parse last one month files from system log named "login-audit.csv.2019-10-23" however the files before that were compressed and the named "login-audit.csv.2019-09-05.gz" and the plugin is throws null pointer exception.
can you update the plugin so that it should check for these extension file and if exist then it should be capable of extracting zip and read the file?login-audit.csv.2019-09-05.gz>login-audit.csv.2019-09-05
Or do we have any other plugin which help me here?
Thanks in Advance
I'd still like to fix the NPE by simply ignoring GZ files and reporting back to the user in the logs. Can you post the full stack trace showing the line that produces the NPE?
A plug-in that extracts files just like that is too invasive. What if that unzipping puts at risk the system because it makes it run out of disk space? That's too much responsibility. I'd say that when you do the auditing you better unzip beforehand as a conscious decision taking into account the available disk space.