Skip to content

jeremylongshore/tons-of-skills-marketplace / plugins/devops/log-aggregation-setup/skills/setting-up-log-aggregation

setting-up-log-aggregation

Verified

Execute use when setting up log aggregation solutions using ELK, Loki, or Splunk. Trigger with phrases like "setup log aggregation", "deploy ELK stack", "configure Loki", or "install Splunk". Generates production-ready configurations for data ingestion, processing, storage, and visualization with proper security and scalability.

FileKindSize
SKILL.mdskill md4.5 KB
assets/README.mdmarkdown593 B
assets/dashboard_elk.jsonconfig4.9 KB
assets/dashboard_loki.jsonconfig6.8 KB
assets/dashboard_splunk.jsonconfig3.9 KB
assets/example_log_data.jsonconfig3.2 KB
assets/loki_config_template.yamlconfig3.7 KB
assets/splunk_config_template.confconfig4.4 KB
references/README.mdmarkdown64 B
scripts/README.mdmarkdown720 B
scripts/setup_elk.pyexecutablescript2.6 KB
scripts/setup_loki.pyexecutablescript2.5 KB
scripts/setup_splunk.pyexecutablescript2.5 KB

scripts/setup_splunk.py

View on GitHub
#!/usr/bin/env python3
"""
log-aggregation-setup - Initialization Script
Automates the deployment and configuration of Splunk.
Generated: 2025-12-10 03:48:17
"""

import json
import argparse
from pathlib import Path


def create_project_structure(project_name: str, output_dir: str = "."):
    """Create project structure for log-aggregation-setup."""
    base_path = Path(output_dir) / project_name

    # Create directories
    directories = [base_path, base_path / "config", base_path / "data", base_path / "output", base_path / "logs"]

    for dir_path in directories:
        dir_path.mkdir(parents=True, exist_ok=True)
        print(f"✓ Created {dir_path}")

    # Create configuration file
    config = {
        "project": project_name,
        "version": "1.0.0",
        "skill": "log-aggregation-setup",
        "category": "devops",
        "created": time.strftime("%Y-%m-%d %H:%M:%S"),
        "settings": {"debug": False, "verbose": True, "max_workers": 4},
    }

    config_file = base_path / "config" / "settings.json"
    with open(config_file, "w") as f:
        json.dump(config, f, indent=2)
    print(f"✓ Created configuration: {config_file}")

    # Create README
    readme_content = f"""# {project_name}

Initialized with log-aggregation-setup skill

## Structure
- config/ - Configuration files
- data/ - Input data
- output/ - Generated output
- logs/ - Application logs

## Usage
See skill documentation for usage instructions.
"""

    readme_file = base_path / "README.md"
    readme_file.write_text(readme_content)
    print(f"✓ Created README: {readme_file}")

    return base_path


def main():
    parser = argparse.ArgumentParser(description="Automates the deployment and configuration of Splunk.")
    parser.add_argument("--project", "-p", required=True, help="Project name")
    parser.add_argument("--output", "-o", default=".", help="Output directory")
    parser.add_argument("--config", "-c", help="Configuration file")

    args = parser.parse_args()

    print(f"🚀 Initializing {args.project}...")
    project_path = create_project_structure(args.project, args.output)

    if args.config:
        # Load additional configuration
        if Path(args.config).exists():
            with open(args.config) as f:
                json.load(f)
            print(f"✓ Loaded configuration from {args.config}")

    print(f"\n✅ Project initialized successfully at {project_path}")
    return 0


if __name__ == "__main__":
    import sys
    import time

    sys.exit(main())
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 196kUpdated Claude CodeCodexVerifiedInstall