Metadata-Version: 2.1
Name: logs_to_ocsf
Version: 0.0.3
Summary: Convert Linux logs to OCSF schema
Home-page: https://github.com/javastarchild/logs_to_ocsf
Author: Kelvin
Author-email: javastarchild@gmail.com
License: Apache Software License 2.0
Keywords: nbdev jupyter notebook python
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Provides-Extra: dev
License-File: LICENSE

logs_to_ocsf
================

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

This file will become your README and also the index of your
documentation.

## Install

``` sh
pip install logs_to_ocsf
```

## How to use

Add sample data and run.

``` python
c = Convert()

test_dir = "data/sample_logs"

test_files = ["messages.txt", "cron.txt", "secure.txt"]

for a_file in test_files:
    a_json = c.log_to_ocsf(test_dir + "/" + a_file)
    print(f"JSON in OCSF Schema from file {a_file} looks like this: \n")
    print("-----------------------------------------------------------")
    print(a_json)
    print("-----------------------------------------------------------")
```

    NameError: name 'Convert' is not defined
