A python program to mine data from ZNC logs of IRC. For now it creates bar graphs and word clouds.
Usage:
daneel:logs joe$ ircminer --help
usage: ircminer [-h] [--single SINGLE] [--multi MULTI] [--outfile OUTFILE]
[--bgimage BGIMAGE] [--limit LIMIT] [--width WIDTH]
[--height HEIGHT] [--graph] [--cloud] [--title TITLE]
[--exclude EXCLUDE] [--filenames]
ZNC Log Miner Image Generation
optional arguments:
-h, --help show this help message and exit
--single SINGLE Single Source file
--multi MULTI keyword for multip[le Source files in the current
directory
--outfile OUTFILE Destination image file if not specified will be the name
of the input file.png
--bgimage BGIMAGE Optional image file to shape around
--limit LIMIT # of words to display, default 100
--width WIDTH Width of image, default 1600
--height HEIGHT Height of image, default 1200
--graph Create a graph
--cloud Create a word cloud
--title TITLE Title of Graph
--exclude EXCLUDE List of words to exclude, enclose in quotes
--filenames Print name of matching files when using multi
To look at one log and create a single wordcloud:
daneel:logs joe$ ircminer --cloud --single example.log
Source file: example.log
Output file : examople.log.png
Result Limit : 100
IMG Width : 1600
IMG Height : 1200
To create a word cloud from all ZNC logs with the word "example" in the name use the multi switch.
daneel:logs joe$ ircminer --multi example --cloud
Processing files matching pattern *example*.log
Output file : example.png
Result Limit : 100
IMG Width : 1600
IMG Height : 1200
Found 118 matching files.
Processing file : 118 of 118
To create a bar graph from all ZNC logs with the word "example" in the name use --graph with --multi. `
daneel:logs joe$ ircminer --multi example --graph --limit 50 --title "Example Most Common Words"
Processing files matching pattern *example*.log
Result Limit : 50
Found 118 matching files.
Processing file : 118 of 118
You are about to open
Do you wish to proceed?
Thank you for your report. Information you provided will help us investigate further.
There was an error while sending your report. Please try again later.
Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.
Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.
Snap is available for Red Hat Enterprise Linux (RHEL) 8 and RHEL 7, from the 7.6 release onward.
The packages for RHEL 7, RHEL 8, and RHEL 9 are in each distribution’s respective Extra Packages for Enterprise Linux (EPEL) repository. The instructions for adding this repository diverge slightly between RHEL 7, RHEL 8 and RHEL 9, which is why they’re listed separately below.
The EPEL repository can be added to RHEL 9 with the following command:
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
sudo dnf upgrade
The EPEL repository can be added to RHEL 8 with the following command:
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf upgrade
The EPEL repository can be added to RHEL 7 with the following command:
sudo rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Adding the optional and extras repositories is also recommended:
sudo subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms"
sudo yum update
Snap can now be installed as follows:
sudo yum install snapd
Once installed, the systemd unit that manages the main snap communication socket needs to be enabled:
sudo systemctl enable --now snapd.socket
To enable classic snap support, enter the following to create a symbolic link between /var/lib/snapd/snap and /snap:
sudo ln -s /var/lib/snapd/snap /snap
Either log out and back in again or restart your system to ensure snap’s paths are updated correctly.
To install ircminer, simply use the following command:
sudo snap install ircminer
Browse and find snaps from the convenience of your desktop using the snap store snap.
Interested to find out more about snaps? Want to publish your own application? Visit snapcraft.io now.