diff --git a/.github/workflows/linux-test.yaml b/.github/workflows/linux-test.yaml index 445ea7c..b90a28d 100644 --- a/.github/workflows/linux-test.yaml +++ b/.github/workflows/linux-test.yaml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ['3.3', '3.2', '3.1', '3.0', '2.7'] + ruby: ['3.4', '3.3', '3.2', '3.1', '3.0', '2.7'] os: [ubuntu-latest] experimental: [false] include: diff --git a/.github/workflows/macos-test.yaml b/.github/workflows/macos-test.yaml index 18a2e2a..20efc68 100644 --- a/.github/workflows/macos-test.yaml +++ b/.github/workflows/macos-test.yaml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ['3.3', '3.2', '3.1', '3.0', '2.7'] + ruby: ['3.4', '3.3', '3.2', '3.1', '3.0', '2.7'] os: [macos-latest] name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }} diff --git a/.github/workflows/windows-test.yaml b/.github/workflows/windows-test.yaml index 186d0ad..e8f9ed5 100644 --- a/.github/workflows/windows-test.yaml +++ b/.github/workflows/windows-test.yaml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ['3.3', '3.2', '3.1', '3.0', '2.7'] + ruby: ['3.4', '3.3', '3.2', '3.1', '3.0', '2.7'] os: - windows-latest name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }} diff --git a/lib/fluent/plugin/parser_winevt_xml.rb b/lib/fluent/plugin/parser_winevt_xml.rb index 0963c11..34b5be2 100644 --- a/lib/fluent/plugin/parser_winevt_xml.rb +++ b/lib/fluent/plugin/parser_winevt_xml.rb @@ -20,7 +20,9 @@ def MAKELONG(low, high) end def event_id(system_elem) - return (system_elem/'EventID').text rescue nil if @preserve_qualifiers + if @preserve_qualifiers + return (system_elem/'EventID').text rescue nil + end qualifiers = (system_elem/'EventID').attribute("Qualifiers").text rescue nil if qualifiers