Skip to content

Commit

Permalink
first release
Browse files Browse the repository at this point in the history
released 1.0
  • Loading branch information
garanews committed Jul 24, 2019
1 parent 12c33d0 commit d070759
Show file tree
Hide file tree
Showing 6 changed files with 653 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Files to ignore by git

# Back-up files
*~
*.swp

# Generic auto-generated build files
*.pyc
*.pyo

# Specific auto-generated build files
/.eggs
/__pycache__
/build/
/dependencies/
/dist/
/mans_to_es.egg-info
50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,52 @@
# mans_to_es
Parses the FireEye HX .mans triage collections and send them to ElasticSearch

## Table of Contents
1. [About](#about)
2. [Getting started](#getting-started)
3. [Disclaimer](#disclaimer)

## About
mans_to_es is an open source tool for parsing FireEye HX .mans triage collections and send them to ElasticSearch.

Mans file is a zipped collection of xml that we parse using [xmltodict](https://github.com/martinblech/xmltodict).
It uses pandas and multiprocessing to speed up the parsing with xml files.

## Getting started
#### Installation
```
pip install mans_to_es
```

#### Usage

```
usage: MANS to ES [-h] [--filename FILENAME] [--name NAME] [--index INDEX]
[--es_host ES_HOST] [--es_port ES_PORT]
[--cpu_count CPU_COUNT] [--bulk_size BULK_SIZE] [--version]
agaravaglia@timesketch:~$ python3 /usr/local/bin/mans_to_es.py --help
usage: MANS to ES [-h] [--filename FILENAME] [--name NAME] [--index INDEX]
[--es_host ES_HOST] [--es_port ES_PORT]
[--cpu_count CPU_COUNT] [--bulk_size BULK_SIZE] [--version]
Push .mans information in Elasticsearch index
optional arguments:
-h, --help show this help message and exit
--filename FILENAME Path of the .mans file
--name NAME Timeline name
--index INDEX ES index name
--es_host ES_HOST ES host
--es_port ES_PORT ES port
--cpu_count CPU_COUNT
cpu count
--bulk_size BULK_SIZE
Bulk size for multiprocessing parsing and upload
--version show program's version number and exit
```



## Disclaimer
This is not an official FireEye product. Bugs are expected.
Empty file added mans_to_es/__init__.py
Empty file.
Loading

0 comments on commit d070759

Please sign in to comment.