Release Notes: JC version 1.14.0 #93
kellyjonbrazil
started this conversation in
General
Replies: 2 comments 4 replies
-
I just discovered this and WOW! I thought about writing a tool like this to parse just |
Beta Was this translation helpful? Give feedback.
2 replies
-
Thanks!
I’m not sure how to test it since I’m using the “pip install” version.
Thanks,
Zerolagtime
… On Jan 5, 2021, at 4:05 PM, Kelly Brazil ***@***.***> wrote:
@zerolagtime I have a fix for last -F you can test. I opened an issue where we can discuss in more detail, if needed:
#96
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Happy New Year! I’m happy to announce the release of
jc
version 1.14.0 available on github and pypi.jc
now supports over 60 commands and file-types, including the newdate
,kv
,hash
,hashsum
(md5
,md5sum
,shasum
,sha1sum
,sha224sum
,sha256sum
,sha384sum
,sha512sum
),cksum
, andwc
command parsers. Thels
parser has been enhanced to work withvdir
output and theenv
parser has been enhanced to work withprintenv
output.jc
is now fully tested on python 3.9.jc
can be installed viapip
or through several official OS package repositories, including Debian, Ubuntu, Fedora, openSUSE, Arch Linux, NixOS Linux, Guix System Linux, FreeBSD, and macOS. For more information on how to get jc, click here.To upgrade with pip:
New Features
jc
is now available on the official Debian and Ubuntu repository (apt-get install jc
)New Parsers
jc
now supports 61 parsers. New parsers includekv
,date
,hash
,hashsum
,cksum
, andwc
.Documentation and schemas for all parsers can be found here.
kv key/value pair parser (added in v1.13.2)
Parses key/value pair files. Files can include comments prepended with
#
or;
and keys and values can be delimited by=
or:
with or without spaces. Quotation marks are stripped from quoted values, though they can be kept with the-r
(raw output)jc
argument.These types of files can be found in many places, including configuration files in
/etc
. (e.g./etc/sysconfig/network-scripts
).date
command parser (added in v1.13.2)Linux, macOS, and FreeBSD support for the
date
command:hash
command parserLinux, macOS, and FreeBSD support for the
hash
BASH shell builtin:hashsum
command parserLinux, macOS, and FreeBSD support for various MD5 and SHA hash commands, including
md5
,md5sum
,shasum
,sha1sum
,sha224sum
,sha256sum
,sha384sum
,sha512sum
:cksum
command parserLinux, macOS, and FreeBSD support for the
cksum
andsum
commands:wc
command parserLinux, macOS, and FreeBSD support for the
wc
command:Updated Parsers
The
env
parser has been enhanced to work withprintenv
command output using the “magic” syntax. (e.g.jc printenv
)The
ls
parser has been enhanced to work withvdir
command output using the “magic” syntax. (e.g.jc vdir
)Schema Changes
There are no schema changes in this release.
Full Parser List
airport -I
airport -s
arp
blkid
cksum
crontab
crontab-u
CSV
date
df
dig
dmidecode
du
env
file
free
fstab
/etc/group
/etc/gshadow
hash
hashsum
history
/etc/hosts
id
ifconfig
INI
iptables
jobs
kv
last
andlastb
ls
lsblk
lsmod
lsof
mount
netstat
ntpq
/etc/passwd
ping
pip list
pip show
ps
route
/etc/shadow
ss
stat
sysctl
systemctl
systemctl list-jobs
systemctl list-sockets
systemctl list-unit-files
timedatectl
tracepath
traceroute
uname -a
uptime
w
wc
who
XML
YAML
Happy parsing!
v1.14.1 Release Changes
iw-scan
parser tested on linux (beta)date
parser for Ubuntu 20.04 supportlast
parser forlast -F
supportlast
parser to add convenience fields and augment data for easier parsingSchema Changes:
date
command parserA new
period
field has been added to the schema to representAM
andPM
which may appear depending on locale configuration on the host. If the locale does not printAM
orPM
then the value will benull
.last
command parserThe
duration
field calculation has changed to be more easily parsed and will display as totalHOURS:MINUTES
. Also, a few convenience calculated fields have been added and will display when thelast -F
option is used:login_epoch
,logout_epoch
, andduration_seconds
.Beta Was this translation helpful? Give feedback.
All reactions