0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

確定

Posted at

--- 受信・キューを強化(最小セット) ---

メインキュー(溢れ潰し防止)

main_queue(
queue.type="LinkedList"
queue.size="100000"
)

TCP入力の強化

module(load="imtcp" MaxSessions="200" MaxListeners="5" MaxInputBufferSize="128k")

20514/TCP 全IFで受信(ruleset=remote に流す)

input(type="imtcp" port="20514" address="0.0.0.0" ruleset="remote")

受信後の処理(ここだけで完結)

ruleset(name="remote") {

動的ファイル名(ホスト名/プログラムごと)

template(name="RemoteLogs" type="string"
string="/var/log/remote/%fromhost%/%programname%.log")

書き込み(アクションキュー+無限リトライ)

. action(
type="omfile"
DynaFile="RemoteLogs"
createDirs="on"
action.resumeRetryCount="-1"
queue.type="LinkedList"
queue.size="50000"
queue.dequeuebatchsize="1000"
queue.workerThreads="2"
)
}

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?