twwinlog

command module
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

README

twwinlog

Windows event log sensor for TWSNMP TWSNMPのためのWindowsイベントログセンサー

Godoc Reference Go Report Card

Overview

Windowsのイベントログを監視してTWSNMPで監視するために必要な情報をsyslogで送信するためのセンサープログラムです。 現在のバージョンでは以下の情報を取得できます。

  • イベント数の集計
  • イベントID別の集計
  • ログオンに関する情報(4624, 4625, 4648, 4634, 4647)
  • アカウントの変更に関する情報(4720,4722,4723,4724,4725,4726,4738,4740,4767,4781)
  • 特権アクセスに関する情報(4672,4673)
  • Kerberos認証に関する情報(4768,4769)
  • スケジュールタスクに関する情報(4698)
  • プロセスの起動、停止に関する情報(4688, 4689)
  • ログオン失敗の通知(4625)
  • Kerberosチケット要求失敗の通知(4768,4769)
  • イベントログ消去の通知(1102)

Status

お試し版v1.0.0をリリースしました。(2021/8/8) ログ送信改善版v1.1.0をリリースしました。(2021/8/21)

Build

ビルドはmakeで行います。

$make

以下のターゲットが指定できます。

  all        実行ファイルのビルド(省略可能)
  clean      ビルドした実行ファイルの削除
  zip        リリース用のZIPファイルを作成
$make

を実行すればWindows用の実行ファイルが、distのディレクトリに作成されます。

配布用のZIPファイルを作成するためには、

$make zip

を実行します。ZIPファイルがdist/ディレクトリに作成されます。

Run

使用方法
Usage of E:\twsnmpfc\twwinlog.exe:
  -auth string
        remote authentication:Default|Negotiate|Kerberos|NTLM
  -cpuprofile file
        write cpu profile to file
  -interval int
        syslog send interval(sec) (default 300)
  -memprofile file
        write memory profile to file
  -password string
        remote user's password
  -remote string
        remote windows pc
  -syslog string
        syslog destnation list
  -user string
        remote user name

syslogの送信先はカンマ区切りで複数指定できます。:に続けてポート番号を 指定することもできます。

-syslog 192.168.1.1,192.168.1.2:5514
起動方法

起動するためにはsyslogの送信先(-syslog)が必要です。

以下のコマンドで起動できます。

>twpcap.exe  -syslog 192.168.1.1

別のPCのイベントログをモニタするためには、

>twpcap.exe  -syslog 192.168.1.1 -remote <PCのアドレス> -user <ユーザー名> -password <パスワード>

のように起動します。

see ./LICENSE

Copyright 2021 Masayuki Yamai

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL