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
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Happy New Year! I’m happy to announce the release of
jcversion 1.14.0 available on github and pypi.jcnow supports over 60 commands and file-types, including the newdate,kv,hash,hashsum(md5,md5sum,shasum,sha1sum,sha224sum,sha256sum,sha384sum,sha512sum),cksum, andwccommand parsers. Thelsparser has been enhanced to work withvdiroutput and theenvparser has been enhanced to work withprintenvoutput.jcis now fully tested on python 3.9.jccan be installed viapipor 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
jcis now available on the official Debian and Ubuntu repository (apt-get install jc)New Parsers
jcnow 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)jcargument.These types of files can be found in many places, including configuration files in
/etc. (e.g./etc/sysconfig/network-scripts).datecommand parser (added in v1.13.2)Linux, macOS, and FreeBSD support for the
datecommand:hashcommand parserLinux, macOS, and FreeBSD support for the
hashBASH shell builtin:hashsumcommand parserLinux, macOS, and FreeBSD support for various MD5 and SHA hash commands, including
md5,md5sum,shasum,sha1sum,sha224sum,sha256sum,sha384sum,sha512sum:cksumcommand parserLinux, macOS, and FreeBSD support for the
cksumandsumcommands:wccommand parserLinux, macOS, and FreeBSD support for the
wccommand:Updated Parsers
The
envparser has been enhanced to work withprintenvcommand output using the “magic” syntax. (e.g.jc printenv)The
lsparser has been enhanced to work withvdircommand output using the “magic” syntax. (e.g.jc vdir)Schema Changes
There are no schema changes in this release.
Full Parser List
airport -Iairport -sarpblkidcksumcrontabcrontab-uCSVdatedfdigdmidecodeduenvfilefreefstab/etc/group/etc/gshadowhashhashsumhistory/etc/hostsidifconfigINIiptablesjobskvlastandlastblslsblklsmodlsofmountnetstatntpq/etc/passwdpingpip listpip showpsroute/etc/shadowssstatsysctlsystemctlsystemctl list-jobssystemctl list-socketssystemctl list-unit-filestimedatectltracepathtracerouteuname -auptimewwcwhoXMLYAMLHappy parsing!
v1.14.1 Release Changes
iw-scanparser tested on linux (beta)dateparser for Ubuntu 20.04 supportlastparser forlast -Fsupportlastparser to add convenience fields and augment data for easier parsingSchema Changes:
datecommand parserA new
periodfield has been added to the schema to representAMandPMwhich may appear depending on locale configuration on the host. If the locale does not printAMorPMthen the value will benull.lastcommand parserThe
durationfield 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 -Foption is used:login_epoch,logout_epoch, andduration_seconds.Beta Was this translation helpful? Give feedback.
All reactions