Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The purge command can be passed a value in minutes with the option 'events_purge_older_than'.    Some quick math will render an appropriate figure.

Code Block
languagetext
### Current unix epoch time
[root@opmantek ~]# date +%s
1513316674

### Let X be The difference of current time and oldest record time converted to minutes
>>> (1513316674-1430511439)/60
1380087.25

### There are 129600 minutes in 90 days.  Subtract 129600 minutes from X.
>>> 1380087 - 129600
1250487

### Based on this the events_purge_older_than should be 1250487

...