Skip to content
/ eventR Public

Time/Day-based statistics reporting of log files with formatted date entries

Notifications You must be signed in to change notification settings

Haskili/eventR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eventR

Build Status

Overview:

This script takes in any number of file names as arguments and takes in the date/time at the head of each line of those files as a separate event. It performs basic plotting and analysis on all input data given, after which it presents the results in an aesthetically pleasing report.

Density Graph Overall Density Graph by Input Jitter Plot

Features

  • Graphs overall event-time density with respect to input from all files given
  • Displays event-time density with respect to the input file the data is from
  • Lists all events grouped by day/logfile they're from
  • Quick and simple entry format requirements, which can be easily customized
  • Lightweight, and built entirely in R

Getting Started

Prerequisites

R Base (Version 3.6.0)

blas (openblas-lapack-git, openblas-git, blas-tmg, flexiblas, blas-git, openblas-lapack-static, atlas-lapack, openblas-lapack, openblas-cblas-git, openblas)
bzip2 (bzip2-git, bzip2-rustify-git, bzip2-with-lbzip2-symlinks)
desktop-file-utils (desktop-file-utils-git)
gcc-libs (gcc-libs-multilib-x32, fastgcc, gcc-libs-git, gcc-libs-multilib-git)
lapack (openblas-lapack-git, lapack-tmg, flexiblas, lapack-git, openblas-lapack-static, atlas-lapack, openblas-lapack)
libjpeg (libjpeg-droppatch, mozjpeg-git, mozjpeg, libjpeg-turbo)
libpng (libpng-git)
libtiff (libtiff-git)
libxmu
libxt
ncurses (ncurses-git, ncurses-nohex)
pango (pango-ubuntu, pango-git)
pcre (pcre-svn)
perl (perl-git)
readline (readline-athame-git)
unzip (unzip-natspec, unzip-iconv)
xz (xz-git, xz-static-git)
zip (zip-natspec)
zlib (zlib-static, zlib-git, zlib-asm, zlib-ng-git)
gcc-fortran (gcc-fortran-multilib-x32, gcc-fortran-git, gcc-fortran-multilib-git) (make)
tk (tk85) (make)

R Libraries

ggplot2
dplyr
stringr

Usage

Input File Format

The standard format of date() output is what's expected at front, and anything else can come afterwards as long as it remains on an unbroken line.

DOW MONTH DOM HH:MM:SS TZ YR ...

An example line would look like Sat May 23 05:19:39 UTC 2020 ...

Running

A basic Rscript call to the script with file names as arguments suffices in most cases.
Rscript event.R inputFile1 inputFile2 inputFile3 ...

Modifying

If you'd like to modify the script to have the date at a certain position or work with another format, all you'd need to change is the getInput() function and how that splits up each line to get the values for time. The whole point of the script is to be very modular, so editing it to fit whatever you're working on shouldn't be too big of an issue.

About

Time/Day-based statistics reporting of log files with formatted date entries

Topics

Resources

Stars

Watchers

Forks

Languages