Skip to content

emirhankolver/nginx-log-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Nginx Log Analyzer

image

A powerful, lightweight, and privacy-focused web-based tool for analyzing nginx access logs. No installation required, no backend needed - everything runs in your browser!

Try it now!

https://emirhankolver.github.io/nginx-log-analyzer

License HTML5 TailwindCSS JavaScript

πŸ“Έ Screenshots

Main Dashboard

image

Overview with key metrics and status distribution

Log Table with Search

image

Interactive table with sorting and search capabilities

Detailed Log View

image

Comprehensive log entry details with IP statistics

Malicious & Suspicious Requests

image

Framework exploit attempts and sources by IP Addresses

IP Address Statistics

image

Framework exploit attempts and sources by IP Addresses

✨ Features

πŸ“Š Comprehensive Statistics

  • Total requests count
  • Unique IP addresses tracking
  • Success rate percentage calculation
  • Malicious request detection

πŸ“ˆ Visual Analytics

  • Status code distribution with progress bars
  • Top accessed endpoints
  • Request method breakdown
  • User agent analysis

πŸ” Advanced Search & Filtering

  • Real-time search across all log fields
  • Search by IP address, path, method, user agent, or status code
  • Instant results filtering

πŸ“‹ Interactive Data Table

  • Sortable columns (IP, Timestamp, Method, Path, Status, Bytes)
  • Pagination for large log files
  • Clean, responsive design

πŸ”Ž Detailed Log Analysis

  • Click any log entry to see detailed information
  • Complete request/response data
  • IP-specific statistics
  • Success/error breakdown per IP
  • Endpoint access patterns

πŸ›‘οΈ Security Features

  • Automatic detection of PHP exploit attempts
  • Identification of blocked requests
  • Security threat highlighting
  • Suspicious pattern recognition

πŸ”’ Privacy First

  • 100% client-side processing - no data leaves your browser
  • No backend server required
  • No data collection or tracking
  • Works completely offline after initial load

πŸš€ Quick Start

Option 1: Direct Download

  1. Download the nginx-log-analyzer.html file
  2. Open it in any modern web browser
  3. Paste your nginx logs or upload a log file
  4. Click "Analyze Logs"

Option 2: Clone Repository

git clone https://github.com/emirhankolver/nginx-log-analyzer.git
cd nginx-log-analyzer
# Open index.html in your browser

Option 3: Use Online

Visit the live demo: https://emirhankolver.github.io/nginx-log-analyzer

πŸ“– Usage

  1. Get Your Logs: Export your nginx access logs

    # Example: Get last 1000 lines from nginx access log
    tail -n 1000 /var/log/nginx/access.log
  2. Paste or Upload: Copy the logs and paste them into the text area

  3. Analyze: Click the "Analyze Logs" button

  4. Explore:

    • View statistics in the dashboard
    • Search and filter logs
    • Sort by any column
    • Click "Details" to see complete information

🎯 Supported Log Format

The tool supports standard nginx log format (combined):

$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for"

Example:

110.220.239.137 - - [26/Dec/2025:18:50:08 +0000] "GET /hello HTTP/1.1" 200 48 "-" "curl/8.5.0" "94.145.110.200"

πŸ”§ Technologies Used

  • HTML5 - Structure
  • TailwindCSS - Styling
  • Vanilla JavaScript - Logic and interactivity
  • Font Awesome - Icons
  • No frameworks - Fast and lightweight

🌟 Key Highlights

  • ⚑ Lightning Fast - Process thousands of logs instantly
  • 🎨 Beautiful UI - Modern, clean interface with dark mode support
  • πŸ“± Responsive - Works on desktop, tablet, and mobile
  • πŸ”“ No Installation - Just open and use
  • πŸ†“ 100% Free - Open source and always will be
  • πŸ” Secure - Your data never leaves your device

🀝 Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Ideas for Contributions

  • Add support for custom log formats
  • Export analysis results to PDF/CSV
  • Add more security detection patterns
  • Create data visualizations (charts/graphs)
  • Add log comparison features
  • Implement dark mode
  • Add internationalization (i18n)

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ› Bug Reports

Found a bug? Please open an issue with:

  • Your browser version
  • Steps to reproduce
  • Expected vs actual behavior
  • Sample log data (if applicable)

πŸ’‘ Feature Requests

Have an idea? Open an issue with the enhancement label and describe:

  • The feature you'd like
  • Why it would be useful
  • How it should work

πŸ™ Acknowledgments

  • Built with ❀️ for the DevOps community
  • Inspired by the need for quick, secure log analysis
  • Thanks to all contributors and users!

πŸ“¬ Contact

⭐ Show Your Support

If you find this tool useful, please consider:

  • ⭐ Starring the repository
  • πŸ› Reporting bugs
  • πŸ’‘ Suggesting new features
  • πŸ“’ Sharing with others
  • 🀝 Contributing code

Made with ❀️ for developers who love clean, simple, and powerful tools.

No servers, no tracking, no BS - just pure client-side log analysis. 🎯

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages