Getting Data In

Universal ForwarderによるWindowsイベントログの収集について

sunrise
Contributor

Universal Forwarder(以下、UF)を利用してWindowsイベントログを収集する際、
current_onlyオプションによって以下の挙動になるかと思います。

<current_only=0の場合>
UFはホスト内に存在するイベントログを全てIndexerへ送信する

<current_only=1の場合>
UFが起動している時に発生したイベントログだけをIndexerへ送信する

また、Deplyment Server(以下、DS)を使い、UF初回起動時だけ"current_only=1"に設定し、
その後"current_only=0"へ変更した場合、
UF初回起動時以降に発生した全てのイベントログ(UF停止中のログも含む)を
収集できることを確認しています。

このログ収集の仕方が最も望ましいのですが、一つ問題があります。

以下の設定ファイル(serverclass.conf)で、
UFを導入するWindowsホスト(クライアント)が段階的に増えていく場合を想定しています。

serverclass.conf

[serverClass:WIN-Client]
machineTypesFilter=windows-*

[serverClass:WIN-Client:app:Apps_Name]
stateOnClient=enabled
restartSplunkd=true

この時、はじめの1台の時は上記、「current_onlyを途中で変更する」方法が出来るのですが、
マネージャを停止せず(serverclass.confを編集せず)に2台目を追加しようとした場合、
1台目のクライアントもDSの影響を受け、イベントがロストする可能性があります。

細かい話で申し訳ありませんが、
何か良い方法等ございましたら、ご教授下さい。
宜しくお願い致します。

1 Solution

melonman
Motivator

どういう環境・条件かはわからないのですが、current_onlyではなく、followTailをつけておいてから消すということはいかがでしょうか。

以下、参考まで。
http://splunk-base.splunk.com/answers/57819/when-is-it-appropriate-to-set-followtail-to-true

View solution in original post

0 Karma

melonman
Motivator

どういう環境・条件かはわからないのですが、current_onlyではなく、followTailをつけておいてから消すということはいかがでしょうか。

以下、参考まで。
http://splunk-base.splunk.com/answers/57819/when-is-it-appropriate-to-set-followtail-to-true

0 Karma

sunrise
Contributor

はい。おっしゃる通りです。

0 Karma

melonman
Motivator

要件としては、UFを導入した時点からのログのみをUFの転送対象にして、過去のログは読み込まないという状況でしょうか?

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...