Skip to content

Tool for colorizing slurm logs and counting events in slurm log

Notifications You must be signed in to change notification settings

NIH-HPC/slurm_log_tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slurm log tool

Prettyfies slurm logs either from tail -f or cat and counts events.

$ tail -f /var/log/slurm/ctld.log | slurm_log_tool

<streaming log with highlights>
<CTRL-C>
--------------------- EVENTS ------------------------
                 Submissions (job or array)  |   1218
             Jobs started by main scheduler  |    996
                   Jobs started by backfill  |    718
                             Jobs completed  |   2050
       WARN: Note very large procesing time  |     73
          WARN: agent retry_list size is...  |      3
            ERR : Node ping apparently hung  |      1

--------------------- SCHEDULED ---------------------
       Partition |     main | backfill
-----------------|----------|---------
             ccr |       22 |        9
            norm |        4 |      607
           quick |        3 |        0
          ccrgpu |        1 |        0
       multinode |        0 |       18
     interactive |        4 |        0
           niddk |      962 |       84

If you only want counts use -q

$ tail -n 100000 /var/log/slurm/ctld.log | slurm_log_tool -q

--------------------- EVENTS ------------------------
                 Submissions (job or array)  |   1218
             Jobs started by main scheduler  |    996
                   Jobs started by backfill  |    718
                             Jobs completed  |   2050
       WARN: Note very large procesing time  |     73
          WARN: agent retry_list size is...  |      3
            ERR : Node ping apparently hung  |      1

--------------------- SCHEDULED ---------------------
       Partition |     main | backfill
-----------------|----------|---------
             ccr |       22 |        9
            norm |        4 |      607
           quick |        3 |        0
          ccrgpu |        1 |        0
       multinode |        0 |       18
     interactive |        4 |        0
           niddk |      962 |       84

Requires gperf, flex during build. A file of partitions (partitions.txt) in the format

%%
part1, 0, 0
part2, 0, 0
%%

can be created manually or, if slurm is available, with make partitions.txt

About

Tool for colorizing slurm logs and counting events in slurm log

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published