Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Exports Notion organization audit event logs to Microsoft Sentinel SIEM.

Notifications You must be signed in to change notification settings

hazcod/notion2sentinel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notion2sentinel

A Go program that exports Notion audit events to Microsoft Sentinel SIEM.

Running

Get a Notion API Key. Also make note of your Notion Organization ID.

First create a yaml file, such as config.yml:

log:
  level: INFO

microsoft:
  app_id: ""
  secret_key: ""
  tenant_id: ""
  subscription_id: ""
  resource_group: ""
  workspace_name: ""

  dcr:
    endpoint: ""
    rule_id: ""
    stream_name: ""

  expires_months: 6

notion:
  api_token: ""
  lookback: 168h
  organisation_id: ""

And now run the program from source code:

% make
go run ./cmd/... -config=dev.yml
INFO[0000] shipping logs                                 module=sentinel_logs table_name=NotionAuditLogs total=82
INFO[0002] shipped logs                                  module=sentinel_logs table_name=NotionAuditLogs
INFO[0002] successfully sent logs to sentinel            total=82

Or binary:

% notion2sen -config=config.yml

Building

% make build

About

Exports Notion organization audit event logs to Microsoft Sentinel SIEM.

Topics

Resources

Stars

Watchers

Forks

Packages