Open jeromeleonard opened 4 years ago
I made a little script to find all configurationItems
import pandas as pd
import json
from glob import glob
dd = {}
for file in glob("analyzers/*/*.json"):
with open(file, 'r') as f:
jj = json.loads(f.read())
if 'configurationItems' in jj.keys():
short = "/".join(file.split("/")[-2:])
dd[short] = {}
for item in jj['configurationItems']:
dd[short][item['name']] = True
df = pd.DataFrame(dd)
df.to_csv('configuration.csv')
This is [part of] the result with some duplicated items highlighted
Also homogenize filename of Analyzers and Responders (underscore Y/N, capital letters Y/N)
Homogenize parameters in configuration of Analyzers and Responders. Different terms exist in analyzers when defining api for example (
api
,key
,api_key
,apikey
, ...). same thing for usernames ...