https://github.com/soorajshankar/logScreen Skip to content Toggle navigation Sign in * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Resources + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} soorajshankar / logScreen Public * * Notifications * Fork 5 * Star 195 * Loglines can be messy, read it better on a browser, `command | npx logscreen` 195 stars 5 forks Branches Tags Activity Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights soorajshankar/logScreen This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main BranchesTags Go to file Code Folders and files Name Name Last commit Last commit message date Latest commit History 5 Commits .github .github public public test test .gitignore .gitignore README.md README.md image.png image.png index.js index.js package-lock.json package-lock.json package.json package.json View all files Repository files navigation * README 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 | npx logscreen Kubernetes Logs kubectl logs -f | npx logscreen AWS lambda aws logs tail /aws/lambda/ | npx logscreen EC2 Instance ssh -i ec2-user@ 'tail -f /var/log/' | 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 -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 * Socket.io for real-time communication. * Express for the web server. About Loglines can be messy, read it better on a browser, `command | npx logscreen` Resources Readme Activity Stars 195 stars Watchers 1 watching Forks 5 forks Report repository Releases No releases published Sponsor this project * * ko_fi ko-fi.com/soorajshankar Learn more about GitHub Sponsors Packages 0 No packages published Languages * JavaScript 100.0% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.