File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed
java/io/dongtai/iast/agent Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,15 @@ public static void extractFluent() {
2222 }
2323 try {
2424 if (!isMacOs () && !isWindows ()) {
25+ String agentId = String .valueOf (AgentRegisterReport .getAgentId ());
26+ FLUENT_FILE_CONF = IastProperties .getInstance ().getTmpDir () + "fluent-" + agentId + ".conf" ;
27+ FileUtils .getResourceToFile ("bin/fluent.conf" , FLUENT_FILE_CONF );
28+ FileUtils .confReplace (FLUENT_FILE_CONF );
29+
30+ String multiParserFile = IastProperties .getInstance ().getTmpDir () + "parsers_multiline.conf" ;
31+ FileUtils .getResourceToFile ("bin/parsers_multiline.conf" , multiParserFile );
32+ FileUtils .confReplace (multiParserFile );
33+
2534 FLUENT_FILE = IastProperties .getInstance ().getTmpDir () + "fluent" ;
2635 File f = new File (FLUENT_FILE );
2736 if (f .exists ()) {
@@ -34,10 +43,6 @@ public static void extractFluent() {
3443 FileUtils .getResourceToFile ("bin/fluent" , FLUENT_FILE );
3544 }
3645
37- String agentId = String .valueOf (AgentRegisterReport .getAgentId ());
38- FLUENT_FILE_CONF = IastProperties .getInstance ().getTmpDir () + "fluent-" + agentId + ".conf" ;
39- FileUtils .getResourceToFile ("bin/fluent.conf" , FLUENT_FILE_CONF );
40- FileUtils .confReplace (FLUENT_FILE_CONF );
4146 if (!(new File (FLUENT_FILE )).setExecutable (true )) {
4247 DongTaiLog .warn (ErrorCode .FLUENT_SET_EXECUTABLE_FAILED , FLUENT_FILE );
4348 }
Original file line number Diff line number Diff line change 33 Daemon OFF
44 Log_Level error
55 HTTP_Server Off
6+ parsers_file parsers_multiline.conf
67[INPUT]
78 Name tail
89 Path ${LOG_PATH}
1314 Buffer_Max_Size 16MB
1415 Skip_Long_Lines On
1516 Read_from_Head true
17+ multiline.parser multiline-regex-test
1618[FILTER]
1719 Name record_modifier
1820 Match *
Original file line number Diff line number Diff line change 1+ [MULTILINE_PARSER]
2+ name multiline-regex-test
3+ type regex
4+ flush_timeout 1000
5+ rule "start_state" "/(\d+\d+\-\d+\-\d+ \d+\:\d+\:\d+)(.*)/" "cont"
6+ rule "cont" "/(^\s+at.*|^Caused.*|^\s+\.\.\..*)/" "cont"
You can’t perform that action at this time.
0 commit comments