Convert Linux logs to OCSF schema
Project description
logs_to_ocsf
This file will become your README and also the index of your documentation.
Install
pip install logs_to_ocsf
How to use
Add sample data and run.
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
logs_to_ocsf-0.0.3.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for logs_to_ocsf-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3dddb5c3bc4fd6227af313209e9052fcefe1beba65c61655494e17b29c0c58d |
|
MD5 | 0a0e36aa742c6ba3e618a6e00c568307 |
|
BLAKE2b-256 | 9ca522edcc4af013dad9355ec463af13b16caea7e4c42538d51c9f2b9d545726 |