I'm processing the output of a forensic perl program in Python 2.7. Assuming you wanted to parse the below data into a nested object for ingestion into another program (e.g. splunk, etc...)
I'm struggling with conceptualization of how the data should be presented programmatically without losing myself into the vastness of nested objects. I tried to find some good resources online for how to best approach writing a nested object but failed horribly.
Any additional resources regarding this subject outside those found on SO/Python manual would be greatly appreciated.
Raw data
appcompatflags v.20130930
(NTUSER.DAT, Software) Extracts AppCompatFlags for Windows.
Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\CompatibilityAssistant\Store
Fri Jul 10 11:00:24 2015 - E:\VMware-player-4.0.6-1035888.exe
Fri Jul 10 11:00:24 2015 - C:\Users\aUser\AppData\Local\Microsoft\OneDrive\17.3.5892.0626\FileSyncConfig.exe
Fri Jul 10 11:00:24 2015 - C:\Users\aUser\AppData\Local\Microsoft\OneDrive\Update\OneDriveSetup.exe
Fri Jul 10 11:00:24 2015 - C:\Users\aUser\AppData\Local\Microsoft\OneDrive\17.3.6201.1019\FileSyncConfig.exe
Fri Jul 10 11:00:24 2015 - E:\AdbeRdr11000_mui_Std\Setup.exe
The field/values I've considered using
Top Level Name - NTUser
'''
I'm not positive this is correct for JSON. The program runs off a declaration of which
registry I want to parse (e.g. NTUSER, SYSTEM, etc...) Generating a multitude
of results from various plugins found within the program.
'''
Fields : Values
Plugin_Name: appcompatflags v.20130930, someOtherPlugin
Description: (NTUSER.DAT, Software) Extracts AppCompatFlags for Windows.
Location: Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags
Date: Fri Jul 10 11:00:24 2015, Fri Jul 10 11:00:24 2015, etc...
Result: E:\VMware-player-4.0.6-1035888.exe, E:\AdbeRdr11000_mui_Std\Setup.exe
Edit: I recognize this is a general question, I'm still really new to programming and I'm hopeful someone on SO can help alleviate the headache this is causing me by pointing me in the right direction.
{"NTUser": {"Plugin_Name": "appcompat"...}}? Also, if I look at the output from the data, you may be looking for something like:{registry_key: { plugin_one: {description, location, date, result}, plugin_two: {...}}, registry_key_two: {...}}. Does that seem right?