Skip to content

This is a Bash application for logging HTTP traffic and sending the logs to Kafka for further processing.

Notifications You must be signed in to change notification settings

TangoBeee/Traffic-Processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traffic Processor - Kafka

This is a Bash application for logging HTTP traffic and sending the logs to Kafka for further processing.

Features

  • Logs HTTP request and response details to a log file.
  • Sends the logs to a Kafka topic for real-time processing.
  • Easy installation and setup using provided scripts.

Requirements

  • Bash shell
  • Kafka broker(s) for log processing
  • wget and tar for downloading and extracting Kafka (if not already installed)

Installation

  1. Clone the repository or download the source code.
git clone https://github.com/tangobeee/traffic-processor.git
cd "traffic-processor"
  1. Run the setup script to install Kafka and start the application.
./setup
  1. Verify that Kafka is running and the application is logging traffic.

Usage

  1. Modify the src/main.sh script to customize logging behavior or Kafka configuration as needed.

  2. Run the application using the provided start script.

./start.sh
  1. Monitor the log file (traffic.log) for HTTP traffic logs.

  2. Optionally, configure Kafka consumers to process the logged data from the Kafka topic.

Configuration

  1. Kafka broker details can be configured in etc/kafka.cfg.

  2. Logging behavior and other application settings can be adjusted in src/main.sh.

License

This project is licensed under the MIT License.

About

This is a Bash application for logging HTTP traffic and sending the logs to Kafka for further processing.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages