Skip to content

Transforms each pcap file in a given directory into .har files (json) and pushes them into an ELK instance

Notifications You must be signed in to change notification settings

lblod/mu-har-transformation-service

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mu-har-transformation-service

Watch a given folder for new pcap files and transform them into HAR files with a series of additional changes in order to enrich the files. This pcap files are originally meant to come from observing docker containers run in a network, so additional information about them will be included in pcap file naming scheme.

  • Decode the base64 strings into JSON objects.
  • Add additional container information into the HAR file to allow the tracing of http responses accross the docker network.

Once the PCAP files are converted into HAR format, they will be pushed into an ElasticSearch instance to visualize the data in Kibana.

Usage

docker run --rm -it \
           -v "$PWD"/src:/app/src/ \
           -v "$PWD"/pcap:/app/pcap \
           -v "$PWD"/har:/app/har \
           --name mu-har-transformation-service \
           mu-har-transformation-service
  • The pcap/ folder contains the .pcap files generated previously by the mu-docker-watcher-service microservice.
  • The har/ folder contains the .har (JSON) files converted from the .pcap.

Acknowledgments

This script uses the pcap2har script found here slighly modified for it's purposes.

Copyright for the pcap2har project:

Copyright (c) 2009 Andrew Fleenor, Ryan C. Witt, Jake Holland, and Google, Inc. All rights reserved.

About

Transforms each pcap file in a given directory into .har files (json) and pushes them into an ELK instance

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.5%
  • Other 1.5%