A modern, AI-powered log analysis application built with Next.js, TypeScript, and Tailwind CSS. Features intelligent parsing, anomaly detection, progressive disclosure UI, and comprehensive analytics with a premium dark theme and micro-animations.
- Premium Dark Theme: Sophisticated dark color scheme with glassmorphism effects
- Micro-animations: Smooth hover effects, transitions, and interactive feedback
- Progressive Disclosure: Show simple summaries by default with expandable details
- Responsive Design: Optimized for desktop, tablet, and mobile devices
- Command Palette: Universal search and quick actions (Ctrl+K)
- Multi-format Support: Apache, Nginx, Syslog, JSON, and custom log formats
- Auto-detection: Automatically detects log format from content
- Drag & Drop: Upload multiple files with visual feedback
- Paste Content: Direct text input for quick analysis
- Real-time Processing: Process logs instantly in the browser
- Statistical Analysis: Comprehensive log statistics and metrics
- Time-based Analysis: Hourly, daily, and trend analysis with peak detection
- Error Analysis: Error rate tracking, pattern detection, and source analysis
- IP Analysis: IP address monitoring and suspicious activity detection
- Performance Metrics: Response time, throughput, and resource usage analysis
- Security Analysis: Threat detection and suspicious pattern identification
- Machine Learning: Custom Isolation Forest implementation
- Multiple Anomaly Types: Error spikes, unusual time patterns, suspicious IPs, SQL injection attempts
- Real-time Detection: Instant anomaly identification
- Detailed Classification: Categorized anomaly types with explanations
- Configurable Thresholds: Adjustable sensitivity settings
- Smart Recommendations: AI-generated fix suggestions based on log patterns
- Root Cause Analysis: Intelligent analysis of underlying issues
- Proactive Alerting: Contextual notifications and recommendations
- Pattern Recognition: Advanced pattern detection and correlation
- Dynamic Charts: Interactive visualizations with smooth animations
- Real-time Dashboards: Live monitoring with auto-refresh
- Multiple Chart Types: Line charts, bar charts, pie charts, and more
- Progressive Disclosure: Show/hide charts based on user preference
- Complexity Levels: Basic, Intermediate, and Advanced information tiers
- Collapsible Sections: Expandable content areas with smooth animations
- Summary Cards: Quick overview metrics with trend indicators
- Visibility Toggles: Show/hide detailed information as needed
- Information Hierarchy: Prevents information overload while keeping power features accessible
- Node.js 18+
- npm or yarn
- Modern web browser
-
Clone the repository
git clone <repository-url> cd Automate-log
-
Install dependencies
npm install
-
Start the development server
npm run dev
-
Open your browser Navigate to http://localhost:3000
- File Upload: Drag and drop log files (.log, .txt, .json, .csv)
- Paste Content: Paste log content directly into the text area
- Format Selection: Choose log format or use auto-detection
- Parse: Click "Parse Logs" to process the data
- Configure Settings: Set contamination rate and thresholds
- Run Detection: Click "Detect Anomalies" to find unusual patterns
- Review Results: Analyze detected anomalies with detailed breakdowns
- Investigate: Drill down into specific anomaly details
- Smart Insights: Get AI-powered recommendations after parsing
- Root Cause Analysis: Understand the underlying issues
- Proactive Alerts: Receive contextual notifications
- Pattern Recognition: Discover hidden patterns in your logs
- Basic Level: Essential metrics always visible
- Intermediate Level: Important details collapsed by default
- Advanced Level: Technical details hidden by default
- Customize View: Show/hide sections based on your needs
- Quick Access: Press
Ctrl+Kto open command palette - Search Commands: Find and execute actions quickly
- Keyboard Shortcuts: Navigate efficiently with keyboard
- Contextual Actions: Commands adapt to current state
- ProgressiveDisclosure: Main wrapper with expandable content
- CollapsibleSection: Card-based sections with smooth animations
- SummaryCard: Compact metric cards with trend indicators
- ExpandableDetails: Show/hide detailed information
- VisibilityToggle: Toggle content visibility
- ProgressiveTabs: Tabbed interface with complexity levels
- Hover Effects: Soft scaling, shadow lift, border glow
- Transitions: Smooth fade, slide, and scale animations
- Micro-interactions: Button feedback, loading states
- Staggered Animations: Sequential element animations
- Next.js 14: React framework with App Router
- TypeScript: Type-safe development
- Tailwind CSS: Utility-first styling
- Radix UI: Accessible component primitives
- Lucide React: Beautiful icons
- React Dropzone: File upload handling
- Custom Log Parser: Multi-format log parsing
- Anomaly Detection: Isolation Forest algorithm
- Data Processing: Statistical analysis and metrics
- AI Analysis: Pattern recognition and recommendations
- Tailwind CSS: Responsive design system
- Custom Animations: Keyframe-based animations
- Glassmorphism: Frosted glass effects
- Gradient Themes: Dynamic color schemes
src/
βββ app/ # Next.js App Router
β βββ api/ # API routes
β βββ globals.css # Global styles
β βββ layout.tsx # Root layout
β βββ page.tsx # Home page
βββ components/ # React components
β βββ ui/ # Reusable UI components
β β βββ button.tsx
β β βββ card.tsx
β β βββ progressive-disclosure.tsx
β β βββ ...
β βββ log-analyzer.tsx # Main analyzer component
β βββ log-analysis-results.tsx
β βββ ...
βββ lib/ # Utility libraries
β βββ log-parser.ts # Log parsing logic
β βββ anomaly-detector.ts
β βββ data-processor.ts
β βββ utils.ts
βββ types/ # TypeScript definitions
βββ index.ts
The application uses a sophisticated progressive disclosure system to prevent information overload:
- Basic Level (Green): Essential information always visible
- Intermediate Level (Yellow): Important details collapsed by default
- Advanced Level (Red): Technical details hidden by default
Custom implementation of the Isolation Forest algorithm:
- Feature Engineering: 20+ features extracted from log entries
- Normalization: Z-score normalization for consistent analysis
- Classification: Automatic anomaly type classification
- Configurable: Adjustable contamination rate and thresholds
Intelligent insights and recommendations:
- Pattern Recognition: Advanced pattern detection
- Root Cause Analysis: Understanding underlying issues
- Proactive Alerting: Contextual notifications
- Smart Recommendations: AI-generated fix suggestions
- Push code to GitHub
- Connect repository to Vercel
- Deploy automatically
docker build -t log-analyzer .
docker run -p 3000:3000 log-analyzernpm run build
npm run exportCreate a .env.local file:
# Optional: Add any required environment variables
NEXT_PUBLIC_APP_NAME="Log Analyzer"- Themes: Modify colors in
tailwind.config.js - Animations: Adjust timing in
globals.css - Components: Customize UI components in
src/components/ui/
- Client-side Processing: All analysis happens in the browser
- Optimized Bundles: Next.js automatic code splitting
- Efficient Rendering: React 18 concurrent features
- Smooth Animations: 60fps animations with CSS transforms
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Next.js Team for the amazing React framework
- Tailwind CSS for the utility-first CSS framework
- Radix UI for accessible component primitives
- Lucide for beautiful icons
- Vercel for deployment platform
- GitHub Issues: Report bugs and request features
- Documentation: Check this README and code comments
- Community: Join discussions in GitHub Discussions
Built with β€οΈ using Next.js, TypeScript, and Tailwind CSS