Package 'shinyproxyLogs'

Title: Tools for Analyzing 'ShinyProxy' Containers Logs
Description: Provides functions to parse and analyze logs generated by 'ShinyProxy' containers. It extracts metadata from log file names, reads log contents, and computes summary statistics (such as the total number of lines and lines containing error messages), facilitating efficient monitoring and debugging of 'ShinyProxy' deployments.
Authors: Thibault Senegas [aut, cre]
Maintainer: Thibault Senegas <senegas.th@gmail.com>
License: MIT + file LICENSE
Version: 0.1.0
Built: 2025-03-24 13:31:08 UTC
Source: CRAN

Help Index


Analyze ShinyProxy Log Files in a Directory

Description

This function scans a specified directory, extracts metadata from the log file names, reads their content, and computes some statistics (total number of lines and the number of lines containing "error" or "exception"). Additionally, it retrieves ShinyProxy user information from a separate directory of logs.

Usage

analyze_logs(path_container_logs, path_shinylogs = NULL)

Arguments

path_container_logs

Character. The path to the directory containing the container logs files.

path_shinylogs

Character. The path to the directory containing ShinyProxy identity logs.

Value

A list containing two data frames:

file_info

Detailed information for each file.

summary

Summary information grouped by container (based on specId, proxyId, and startupTime).

Examples

## Not run: 
  result <- analyze_logs("path/to/containersLogs", "path/to/shinylogs")
  print(result$summary)

## End(Not run)

Parse ShinyProxy Log File Name

Description

This function parses the name of a log file generated by ShinyProxy and extracts metadata: specId, proxyId, startupTime, and logType.

Usage

parse_log_filename(filename)

Arguments

filename

Character. The full path to the log file.

Value

A data frame with the columns specId, proxyId, startupTime, and logType.

Examples

## Not run: 
  parse_log_filename(
  "path/to/containersLogs/log_file_(stdout|stderr).log"
  )

## End(Not run)