Skip to content

Go program that fetches Tailscale audit & network logs to ingest into Microsoft Sentinel SIEM.

Notifications You must be signed in to change notification settings

hazcod/tail2sen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tail2sentinel

A Go program that exports Tailscale network logs and events to Microsoft Sentinel SIEM. Two tables are used; TailscaleAudit for audit logs and TailscaleNetwork for network logs.

Running

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

log:
  level: INFO

microsoft:
  app_id: ""
  secret_key: ""
  tenant_id: ""
  subscription_id: ""
  
  audit_output:
      resource_group: ""
      workspace_name: ""
    
      dcr:
        endpoint: ""
        rule_id: ""
        stream_name: ""
    
      expires_months: 6
      update_table: false
      
    network_output:
      resource_group: ""
      workspace_name: ""

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

      expires_months: 6
      update_table: false

tailscale:
  tailnet: ""
  client_id: ""
  client_secret: ""
  lookback_days: 30

And now run the program from source code:

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

Or binary:

% tail2sen -config=config.yml

Building

% make build

About

Go program that fetches Tailscale audit & network logs to ingest into Microsoft Sentinel SIEM.

Resources

Stars

Watchers

Forks