Skip to content
This repository has been archived by the owner on Apr 2, 2022. It is now read-only.

Batch and shell scripts to pipe remote logs into local instance of logtastic

Notifications You must be signed in to change notification settings

pbinkley/logstalgia-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

logstalgia-scripts

Batch and shell scripts to pipe remote logs into local instance of logstalgia

These scripts make an ssh connection to a server and tail a designated Apache log file, piping the output into a local instance of Logstalgia. This gives you a visualization like this:

Logstalgia demo video

Steps

  • Download and install logstalgia
  • edit one of these scripts to point to your server log and your logstalgia instance
  • enjoy

This process assumes you are set up for public key authentication to get access to your account on the server.

*nix

#!/bin/sh   
USER=xxxxx
SERVER=my.server.org
LOG=/var/apache2/logs/access_log
ssh $USER@$SERVER "tail -f $LOG" | logstalgia -x -1400x800 -

Copy that to a file named SERVER.sh, edit the USER, SERVER and LOG values, and make it executable.

Windows

@echo off
echo Running Logstalgia for xxxx logs
set PLINK="c:\Program Files (x86)\PuTTY\plink.exe"
set USER=xxxxxxx
set SERVER=my.server.org
set LOG=/var/apache2/logs/access_log
%PLINK% %USER%@%SERVER% tail -f %LOG% | logstalgia.exe --sync

Save that as a .bat file, edit the variables, and run it.

This assumes you are running Pageant, and that you have created a PuTTY session that enables you to log into your server with a public key. See the plink documentation for further information.

About

Batch and shell scripts to pipe remote logs into local instance of logtastic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published