Giter Site home page Giter Site logo

logscreen's Introduction

LogScreen

💻 Hard to search logs?

LogScreen simplifies the process. Piping logs, visualizing in a web app – it's that easy!

This tool has been generated entirely with ChatGPT and hence it is also a demonstration of how useful products can be developed with collaborative reiteration with GPTs.

Usage

After installation, you can use LogScreen to view command outputs in a browser:

command | npx logscreen

Replace command with the actual command you want to execute. LogScreen will start a local server and open the logs in your default web browser.

alt text

Here are some examples:

Example 1: Viewing Docker Logs

  docker-compose up | npx logscreen

This example pipes the logs from a Docker Compose service into LogScreen, providing a more readable and interactive log view.

Example 2: Monitoring NPM Start Script

  npm start | npx logscreen

If you have a Node.js project with an `npm start` script, you can use LogScreen to monitor and navigate through the logs as your application runs.

Example 3: Tail Command Output

  tail -f /var/log/syslog | npx logscreen

For Linux users, you can use LogScreen with the `tail` command to follow and visualize real-time updates in system logs.

Monitoring Remote Server Logs

ssh user@remote-server 'tail -f /path/to/logs' | npx logscreen

SSH into a remote server and tail logs in real-time using logscreen for diagnosing issues on a production server.

Monitoring Nginx Access Logs

tail -f /var/log/nginx/access.log | npx logscreen

Tail Nginx access logs to observe incoming requests, response codes, and other relevant information.

Tail Apache Error Logs

tail -f /var/log/apache2/error.log | npx logscreen

Monitor Apache error logs to identify issues with your web server.

Google Cloud Functions Logging:

Use logscreen to monitor logs from Google Cloud Functions, gaining insights into function executions, errors, and overall performance.

gcloud functions logs read <function-name> | npx logscreen

Kubernetes Logs

kubectl logs -f <pod-name> | npx logscreen

AWS lambda

aws logs tail /aws/lambda/<function-name> | npx logscreen

EC2 Instance

ssh -i <private-key.pem> ec2-user@<instance-ip> 'tail -f /var/log/<your-log-file>' | npx logscreen

Monitoring Heroku Postgres Queries:

Tail logs related to database queries on a Heroku Postgres database for performance analysis and optimization.

heroku pg:psql --app <your-app-name> -c "tail -f /var/log/postgresql/postgresql.log" | npx logscreen

Replace the commands above with your specific use case to leverage the benefits of LogScreen's web-based log viewer.

Features

  • Web-Based Log Viewer: Get a cleaner and more organized view of command outputs.
  • Real-Time Updates: Logs are displayed in real-time as the command executes.
  • Interactive Interface: Search, filter, and navigate through logs easily. // TODO

Options

  • Port: By default, LogScreen uses port 3000. You can specify a different port using the -p or --port option:

    command | npx logscreen --port 8080

Acknowledgments

logscreen's People

Contributors

soorajshankar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

logscreen's Issues

Feature request: Visualising multiple logs in the same dashboard

Hello,
I just discovered this product and it seems like a very cool idea.

My main "real life" scenario is that I have logs from different services (in console or in text file) and I would love to be able to visualise them all in one place.

That's the use case for datadog or other visualisation tool like that for production. But for local environment, it would be super convenient to have juste one dashboard and all the logs there.

Is there any way to do that right now? Or any plan to support it in the future?

Feature request: table viewer

  • I want to see json logs as table formatted
  • json columns can be editable(selectable) on table header
  • shows only selected json columns' data

Bug: when log is flushed with multiple lines, `logScreen` cannot detect each json row.

  • A lot of logging framework supports internal buffering and scheduled flushing for performance.
  • In my case, I'm using logScreen for golang application's visualizing. and also my golang logging framework, zerolog, buffers logs and flush multiple lines at a time.
  • In this case, logScreen's log.message does not indicates only one JSON line, but multiple JSON lines joined with \n character.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.