Azure / Azure/Azure-Sentinel-Notebooks

SigmaRuleImporter error when saving KQL queries

Open
#192 0 comments 0 reactions 1 assignee Claimed by @ianhelle View on GitHub
Dominant language
Jupyter Notebook
Stars
628
Forks
236
PR merge metrics
No merged PRs in 30d

Description

When trying to export the KQL queries, the cell runs for a bit without a problem, and successfully outputs some of the KQL queries then it runs into this issue:

```
TypeError Traceback (most recent call last)
Cell In[22], line 7
4 sub_dir = root.joinpath(categ)
6 for file_name, contents in kql_files.items():
----> 7 kql_txt = contents[1]
8 if not kql_txt == NOT_CONVERTIBLE:
9 sub_dir.mkdir(exist_ok=True)

TypeError: 'WindowsPath' object is not subscriptable

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.