这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- type: parse_json
time_key: system_time
time_key: time
time_format: "%Y-%m-%dT%H:%M:%S.%L%z"
- type: windows_event_log_v1
4 changes: 2 additions & 2 deletions transformation_test/testdata/windows_event_log_v1/input.log
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{"channel":"System","computer":"test-computer","event_data":{"binary":"12345","data":[{"param1":"Windows Modules Installer"},{"param2":"running"}]},"event_id":{"id":4444,"qualifiers":33333},"execution":{"process_id":222,"thread_id":0000},"keywords":["Classic"],"level":"Information","message":"The Windows Modules Installer service entered the running state.","opcode":"0","provider":{"event_source":"Service Control Manager","guid":"{11111111}","name":"Service Control Manager"},"record_id":1111,"system_time":"2025-07-02T20:38:45.026077400Z","task":"0"}
{"channel":"System","computer":"test-computer","event_data":{"binary":"12345","data":[{"param1":"Software Protection"},{"param2":"stopped"}]},"event_id":{"id":4444,"qualifiers":33333},"execution":{"process_id":222,"thread_id":0000},"keywords":["Classic"],"level":"Information","message":"The Software Protection service entered the stopped state.","opcode":"0","provider":{"event_source":"Service Control Manager","guid":"{11111111}","name":"Service Control Manager"},"record_id":1111,"system_time":"2025-07-02T20:39:32.339006100Z","task":"0"}
{"channel":"System","computer":"test-computer","event_data":{"binary":"12345","data":[{"param1":"Windows Modules Installer"},{"param2":"running"}]},"event_id":{"id":4444,"qualifiers":33333},"execution":{"process_id":222,"thread_id":0000},"keywords":["Classic"],"level":"Information","message":"The Windows Modules Installer service entered the running state.","opcode":"0","provider":{"event_source":"Service Control Manager","guid":"{11111111}","name":"Service Control Manager"},"record_id":1111,"system_time":"2025-07-02T20:38:45.026077400Z", "time":"2025-07-02T20:38:45.026077400Z","task":"0"}
{"channel":"System","computer":"test-computer","event_data":{"binary":"12345","data":[{"param1":"Software Protection"},{"param2":"stopped"}]},"event_id":{"id":4444,"qualifiers":33333},"execution":{"process_id":222,"thread_id":0000},"keywords":["Classic"],"level":"Information","message":"The Software Protection service entered the stopped state.","opcode":"0","provider":{"event_source":"Service Control Manager","guid":"{11111111}","name":"Service Control Manager"},"record_id":1111,"system_time":"2025-07-02T20:39:32.339006100Z", "time":"2025-07-02T20:39:32.339006100Z","task":"0"}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
guid: "{11111111}"
name: Service Control Manager
record_id: 1111.0
system_time: 2025-07-02T20:38:45.026077400Z
task: "0"
logName: projects/my-project/logs/transformation_test
timestamp: 2025-07-02T20:38:45.026077400Z
Expand Down Expand Up @@ -50,6 +51,7 @@
guid: "{11111111}"
name: Service Control Manager
record_id: 1111.0
system_time: 2025-07-02T20:39:32.339006100Z
task: "0"
logName: projects/my-project/logs/transformation_test
timestamp: 2025-07-02T20:39:32.339006100Z
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
StringInserts:
- param1: Windows Modules Installer
- param2: running
TimeGenerated: 2025-07-02T20:38:45.026077400Z
TimeWritten: 2025-07-02T20:38:45.026077400Z
logName: projects/my-project/logs/my-log-name
resource:
labels:
Expand All @@ -34,6 +36,8 @@
StringInserts:
- param1: Software Protection
- param2: stopped
TimeGenerated: 2025-07-02T20:39:32.339006100Z
TimeWritten: 2025-07-02T20:39:32.339006100Z
logName: projects/my-project/logs/my-log-name
resource:
labels:
Expand Down