Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # tail -f nohup.out
- 2020-04-01 12:33:58,013 main DEBUG null null initializing configuration XmlConfiguration[location=rsrc:log4j2.xml]
- 2020-04-01 12:33:58,117 main DEBUG Installed 1 script engine
- 2020-04-01 12:33:59,392 main DEBUG Oracle Nashorn version: 1.8.0_212, language: ECMAScript, threading: Not Thread Safe, compile: true, names: [nashorn, Nashorn, js, JS, JavaScript, javascript, ECMAScript, ecmascript], factory class: jdk.nashorn.api.scripting.NashornScriptEngineFactory
- 2020-04-01 12:33:59,393 main DEBUG PluginManager 'Core' found 117 plugins
- 2020-04-01 12:33:59,393 main DEBUG PluginManager 'Level' found 0 plugins
- 2020-04-01 12:33:59,398 main DEBUG PluginManager 'Lookup' found 13 plugins
- 2020-04-01 12:33:59,400 main DEBUG Building Plugin[name=layout, class=org.apache.logging.log4j.core.layout.PatternLayout].
- 2020-04-01 12:33:59,413 main DEBUG PluginManager 'TypeConverter' found 26 plugins
- 2020-04-01 12:33:59,429 main DEBUG PatternLayout$Builder(pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5level className[%C] methodName[%M] message[%msg] %ex{full}%n", PatternSelector=null, Configuration(rsrc:log4j2.xml), Replace=null, charset="null", alwaysWriteExceptions="null", disableAnsi="null", noConsoleNoAnsi="null", header="null", footer="null")
- 2020-04-01 12:33:59,430 main DEBUG PluginManager 'Converter' found 44 plugins
- 2020-04-01 12:33:59,449 main DEBUG Building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.ConsoleAppender].
- 2020-04-01 12:33:59,460 main DEBUG ConsoleAppender$Builder(target="SYSTEM_OUT", follow="null", direct="null", bufferedIo="null", bufferSize="null", immediateFlush="null", ignoreExceptions="null", PatternLayout(%d{yyyy-MM-dd HH:mm:ss,SSS} %-5level className[%C] methodName[%M] message[%msg] %ex{full}%n), name="Console", Configuration(rsrc:log4j2.xml), Filter=null)
- 2020-04-01 12:33:59,566 main DEBUG Starting OutputStreamManager SYSTEM_OUT.false.false
- 2020-04-01 12:33:59,567 main DEBUG Building Plugin[name=layout, class=org.apache.logging.log4j.core.layout.PatternLayout].
- 2020-04-01 12:33:59,568 main DEBUG PatternLayout$Builder(pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5level %logger{36} [%t] className[%C] methodName[%M] message[%msg] %ex{full}%n", PatternSelector=null, Configuration(rsrc:log4j2.xml), Replace=null, charset="null", alwaysWriteExceptions="null", disableAnsi="null", noConsoleNoAnsi="null", header="null", footer="null")
- 2020-04-01 12:33:59,570 main DEBUG Building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.FileAppender].
- 2020-04-01 12:33:59,574 main DEBUG FileAppender$Builder(fileName="/opt/psm/log/daemon.log", append="null", locking="null", advertise="null", advertiseUri="null", createOnDemand="null", filePermissions="null", fileOwner="null", fileGroup="null", bufferedIo="null", bufferSize="null", immediateFlush="null", ignoreExceptions="null", PatternLayout(%d{yyyy-MM-dd HH:mm:ss,SSS} %-5level %logger{36} [%t] className[%C] methodName[%M] message[%msg] %ex{full}%n), name="File", Configuration(rsrc:log4j2.xml), Filter=null)
- 2020-04-01 12:33:59,576 main DEBUG Starting FileManager /opt/psm/log/daemon.log
- 2020-04-01 12:33:59,577 main DEBUG Building Plugin[name=appenders, class=org.apache.logging.log4j.core.config.AppendersPlugin].
- 2020-04-01 12:33:59,579 main DEBUG createAppenders(={Console, File})
- 2020-04-01 12:33:59,579 main DEBUG Building Plugin[name=AppenderRef, class=org.apache.logging.log4j.core.config.AppenderRef].
- 2020-04-01 12:33:59,584 main DEBUG createAppenderRef(ref="Console", level="null", Filter=null)
- 2020-04-01 12:33:59,585 main DEBUG Building Plugin[name=AppenderRef, class=org.apache.logging.log4j.core.config.AppenderRef].
- 2020-04-01 12:33:59,586 main DEBUG createAppenderRef(ref="File", level="null", Filter=null)
- 2020-04-01 12:33:59,586 main DEBUG Building Plugin[name=root, class=org.apache.logging.log4j.core.config.LoggerConfig$RootLogger].
- 2020-04-01 12:33:59,587 main DEBUG createLogger(additivity="null", level="DEBUG", includeLocation="null", ={Console, File}, ={}, Configuration(rsrc:log4j2.xml), Filter=null)
- 2020-04-01 12:33:59,590 main DEBUG Building Plugin[name=loggers, class=org.apache.logging.log4j.core.config.LoggersPlugin].
- 2020-04-01 12:33:59,591 main DEBUG createLoggers(={root})
- 2020-04-01 12:33:59,593 main DEBUG Configuration XmlConfiguration[location=rsrc:log4j2.xml] initialized
- 2020-04-01 12:33:59,593 main DEBUG Starting configuration XmlConfiguration[location=rsrc:log4j2.xml]
- 2020-04-01 12:33:59,593 main DEBUG Started configuration XmlConfiguration[location=rsrc:log4j2.xml] OK.
- 2020-04-01 12:33:59,594 main DEBUG Shutting down OutputStreamManager SYSTEM_OUT.false.false-1
- 2020-04-01 12:33:59,595 main DEBUG Shut down OutputStreamManager SYSTEM_OUT.false.false-1, all resources released: true
- 2020-04-01 12:33:59,595 main DEBUG Appender DefaultConsole-1 stopped with status true
- 2020-04-01 12:33:59,596 main DEBUG Stopped org.apache.logging.log4j.core.config.DefaultConfiguration@4c6e276e OK
- 2020-04-01 12:33:59,647 main DEBUG Registering MBean org.apache.logging.log4j2:type=7a81197d
- 2020-04-01 12:33:59,650 main DEBUG Registering MBean org.apache.logging.log4j2:type=7a81197d,component=StatusLogger
- 2020-04-01 12:33:59,652 main DEBUG Registering MBean org.apache.logging.log4j2:type=7a81197d,component=ContextSelector
- 2020-04-01 12:33:59,654 main DEBUG Registering MBean org.apache.logging.log4j2:type=7a81197d,component=Loggers,name=
- 2020-04-01 12:33:59,655 main DEBUG Registering MBean org.apache.logging.log4j2:type=7a81197d,component=Appenders,name=Console
- 2020-04-01 12:33:59,656 main DEBUG Registering MBean org.apache.logging.log4j2:type=7a81197d,component=Appenders,name=File
- 2020-04-01 12:33:59,658 main DEBUG org.apache.logging.log4j.core.util.SystemClock does not support precise timestamps.
- 2020-04-01 12:33:59,658 main DEBUG Reconfiguration complete for context[name=7a81197d] at URI rsrc:log4j2.xml (org.apache.logging.log4j.core.LoggerContext@5c6a5192) with optional ClassLoader: null
- 2020-04-01 12:33:59,659 main DEBUG Shutdown hook enabled. Registering a new one.
- 2020-04-01 12:33:59,660 main DEBUG LoggerContext[name=7a81197d, org.apache.logging.log4j.core.LoggerContext@5c6a5192] started OK.
- 2020-04-01 12:33:59,666 INFO className[com.holedge.security.perimeterservice.PerimeterService] methodName[main] message[Starting Perimeter Service Manager.]
- 2020-04-01 12:33:59,672 DEBUG className[com.holedge.security.perimeterservice.PerimeterService] methodName[main] message[Cleanup at start set to false]
- 2020-04-01 12:33:59,810 DEBUG className[org.springframework.context.support.AbstractApplicationContext] methodName[prepareRefresh] message[Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@9b47400]
- 2020-04-01 12:34:00,216 DEBUG className[org.springframework.beans.factory.xml.XmlBeanDefinitionReader] methodName[doLoadBeanDefinitions] message[Loaded 3 bean definitions from class path resource [beans.xml]]
- 2020-04-01 12:34:00,253 DEBUG className[org.springframework.beans.factory.support.DefaultSingletonBeanRegistry] methodName[getSingleton] message[Creating shared instance of singleton bean 'dataSource']
- 2020-04-01 12:34:00,568 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[setDriverClassName] message[Loaded JDBC driver: org.mariadb.jdbc.Driver]
- 2020-04-01 12:34:00,570 DEBUG className[org.springframework.beans.factory.support.DefaultSingletonBeanRegistry] methodName[getSingleton] message[Creating shared instance of singleton bean 'jobManager']
- 2020-04-01 12:34:00,596 DEBUG className[org.springframework.beans.factory.support.DefaultSingletonBeanRegistry] methodName[getSingleton] message[Creating shared instance of singleton bean 'dispatcher']
- 2020-04-01 12:34:00,611 INFO className[com.holedge.security.perimeterservice.PerimeterService] methodName[main] message[Starting manager thread]
- 2020-04-01 12:34:00,612 INFO className[com.holedge.security.perimeterservice.JobManager] methodName[run] message[JobManager initialized.]
- 2020-04-01 12:34:00,613 DEBUG className[com.holedge.security.perimeterservice.JobManager] methodName[run] message[Start job manager cycle.]
- 2020-04-01 12:34:00,614 INFO className[com.holedge.security.perimeterservice.JobManager] methodName[run] message[Looking for latecomers jobs.]
- 2020-04-01 12:34:00,663 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[query] message[Executing SQL query [SELECT id, owner, group_id, deleted, stages, queue, max_frequency, parents, perimeter, ports, protocols, start_after, not_after, LOCALTIME_TO_UTC(timeframe_from) AS timeframe_from, LOCALTIME_TO_UTC(timeframe_to) AS timeframe_to, scan_start, scan_end, discovery_count, host_alive, assessment_count FROM scans WHERE deleted = 0 AND scan_end IS NULL AND not_after IS NOT NULL AND not_after < CURRENT_TIME]]
- 2020-04-01 12:34:00,668 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:00,669 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:00,762 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:00,763 INFO className[com.holedge.security.perimeterservice.JobManager] methodName[run] message[Found 0 latecomers jobs.]
- 2020-04-01 12:34:00,764 INFO className[com.holedge.security.perimeterservice.JobManager] methodName[run] message[Scheduling scan jobs.]
- 2020-04-01 12:34:00,764 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing SQL statement [INSERT INTO scans (owner, group_id, stages, queue, max_frequency, parents, perimeter, ports, protocols, start_after, not_after, timeframe_from, timeframe_to ) SELECT owner, id, stages, queue, max_frequency, parents + 1, perimeter, ports, protocols, start_after, not_after, timeframe_from, timeframe_to FROM scans WHERE deleted = 0 AND queue = 0 AND scan_end IS NOT NULL AND CURRENT_TIMESTAMP >= DATE_ADD(scan_start, INTERVAL GREATEST(1, COALESCE(max_frequency, 30)) DAY) AND id IN (SELECT MAX(id) FROM scans GROUP BY group_id)]]
- 2020-04-01 12:34:00,765 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:00,765 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:00,772 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:00,773 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[query] message[Executing SQL query [SELECT id, owner, group_id, deleted, stages, queue, max_frequency, parents, perimeter, ports, protocols, start_after, not_after, LOCALTIME_TO_UTC(timeframe_from) AS timeframe_from, LOCALTIME_TO_UTC(timeframe_to) AS timeframe_to, scan_start, scan_end, discovery_count, host_alive, assessment_count FROM scans WHERE deleted = 0 AND scan_start IS NULL AND CURRENT_TIMESTAMP > start_after AND perimeter_size = 0]]
- 2020-04-01 12:34:00,773 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:00,773 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:00,789 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:00,790 INFO className[com.holedge.security.perimeterservice.JobManager] methodName[run] message[Found 4 scans to start]
- 2020-04-01 12:34:00,791 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[batchUpdate] message[Executing SQL batch update [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:00,793 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:00,794 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:00,794 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:00,807 DEBUG className[org.springframework.jdbc.support.JdbcUtils] methodName[supportsBatchUpdates] message[JDBC driver supports batch updates]
- 2020-04-01 12:34:00,807 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:00,812 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[batchUpdate] message[Executing SQL batch update [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:00,812 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:00,812 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:00,813 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:00,817 DEBUG className[org.springframework.jdbc.support.JdbcUtils] methodName[supportsBatchUpdates] message[JDBC driver supports batch updates]
- 2020-04-01 12:34:00,817 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:00,819 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[batchUpdate] message[Executing SQL batch update [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:00,819 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:00,819 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:00,819 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:00,824 DEBUG className[org.springframework.jdbc.support.JdbcUtils] methodName[supportsBatchUpdates] message[JDBC driver supports batch updates]
- 2020-04-01 12:34:00,824 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:00,825 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[batchUpdate] message[Executing SQL batch update [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:00,825 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:00,825 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:00,826 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:00,830 DEBUG className[org.springframework.jdbc.support.JdbcUtils] methodName[supportsBatchUpdates] message[JDBC driver supports batch updates]
- 2020-04-01 12:34:00,830 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:00,832 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[update] message[Executing prepared SQL update]
- 2020-04-01 12:34:00,834 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [UPDATE scans SET perimeter_size = ? WHERE id = ?]]
- 2020-04-01 12:34:00,834 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:00,834 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:00,843 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:00,844 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[update] message[Executing prepared SQL update]
- 2020-04-01 12:34:00,844 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [UPDATE scans SET perimeter_size = ? WHERE id = ?]]
- 2020-04-01 12:34:00,844 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:00,845 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:00,849 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:00,850 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[update] message[Executing prepared SQL update]
- 2020-04-01 12:34:00,850 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [UPDATE scans SET perimeter_size = ? WHERE id = ?]]
- 2020-04-01 12:34:00,851 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:00,851 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:00,856 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:00,856 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[update] message[Executing prepared SQL update]
- 2020-04-01 12:34:00,857 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [UPDATE scans SET perimeter_size = ? WHERE id = ?]]
- 2020-04-01 12:34:00,857 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:00,857 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:00,862 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:00,863 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[update] message[Executing prepared SQL update]
- 2020-04-01 12:34:00,863 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [UPDATE scans SET scan_end = NOW() WHERE scan_end IS NULL AND perimeter_size > 0 AND perimeter_size = discovery_count AND (stages = ? OR host_alive = assessment_count)]]
- 2020-04-01 12:34:00,863 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:00,864 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:00,869 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:00,870 DEBUG className[com.holedge.security.perimeterservice.JobManager] methodName[run] message[End cycle - Going to sleep.]
- 2020-04-01 12:34:05,612 INFO className[com.holedge.security.perimeterservice.PerimeterService] methodName[main] message[Starting dispatcher thread]
- 2020-04-01 12:34:05,615 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[query] message[Executing SQL query [SELECT id, owner, name, handler, active, settings, instance FROM probes WHERE active = true]]
- 2020-04-01 12:34:05,616 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:05,616 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:05,630 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:05,631 INFO className[com.holedge.security.perimeterservice.DispatcherService] methodName[run] message[DB contains 2 probes.]
- 2020-04-01 12:34:15,871 DEBUG className[com.holedge.security.perimeterservice.JobManager] methodName[run] message[Start job manager cycle.]
- 2020-04-01 12:34:15,871 INFO className[com.holedge.security.perimeterservice.JobManager] methodName[run] message[Looking for latecomers jobs.]
- 2020-04-01 12:34:15,871 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[query] message[Executing SQL query [SELECT id, owner, group_id, deleted, stages, queue, max_frequency, parents, perimeter, ports, protocols, start_after, not_after, LOCALTIME_TO_UTC(timeframe_from) AS timeframe_from, LOCALTIME_TO_UTC(timeframe_to) AS timeframe_to, scan_start, scan_end, discovery_count, host_alive, assessment_count FROM scans WHERE deleted = 0 AND scan_end IS NULL AND not_after IS NOT NULL AND not_after < CURRENT_TIME]]
- 2020-04-01 12:34:15,872 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:15,872 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:15,879 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:15,880 INFO className[com.holedge.security.perimeterservice.JobManager] methodName[run] message[Found 0 latecomers jobs.]
- 2020-04-01 12:34:15,880 INFO className[com.holedge.security.perimeterservice.JobManager] methodName[run] message[Scheduling scan jobs.]
- 2020-04-01 12:34:15,880 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing SQL statement [INSERT INTO scans (owner, group_id, stages, queue, max_frequency, parents, perimeter, ports, protocols, start_after, not_after, timeframe_from, timeframe_to ) SELECT owner, id, stages, queue, max_frequency, parents + 1, perimeter, ports, protocols, start_after, not_after, timeframe_from, timeframe_to FROM scans WHERE deleted = 0 AND queue = 0 AND scan_end IS NOT NULL AND CURRENT_TIMESTAMP >= DATE_ADD(scan_start, INTERVAL GREATEST(1, COALESCE(max_frequency, 30)) DAY) AND id IN (SELECT MAX(id) FROM scans GROUP BY group_id)]]
- 2020-04-01 12:34:15,881 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:15,881 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:15,887 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:15,888 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[query] message[Executing SQL query [SELECT id, owner, group_id, deleted, stages, queue, max_frequency, parents, perimeter, ports, protocols, start_after, not_after, LOCALTIME_TO_UTC(timeframe_from) AS timeframe_from, LOCALTIME_TO_UTC(timeframe_to) AS timeframe_to, scan_start, scan_end, discovery_count, host_alive, assessment_count FROM scans WHERE deleted = 0 AND scan_start IS NULL AND CURRENT_TIMESTAMP > start_after AND perimeter_size = 0]]
- 2020-04-01 12:34:15,888 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:15,889 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:15,896 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:15,897 INFO className[com.holedge.security.perimeterservice.JobManager] methodName[run] message[Found 4 scans to start]
- 2020-04-01 12:34:15,897 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[batchUpdate] message[Executing SQL batch update [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:15,898 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:15,898 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:15,898 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:15,902 DEBUG className[org.springframework.jdbc.support.JdbcUtils] methodName[supportsBatchUpdates] message[JDBC driver supports batch updates]
- 2020-04-01 12:34:15,903 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:15,903 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[batchUpdate] message[Executing SQL batch update [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:15,903 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:15,904 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:15,904 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:15,908 DEBUG className[org.springframework.jdbc.support.JdbcUtils] methodName[supportsBatchUpdates] message[JDBC driver supports batch updates]
- 2020-04-01 12:34:15,908 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:15,909 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[batchUpdate] message[Executing SQL batch update [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:15,909 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:15,909 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:15,909 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:15,913 DEBUG className[org.springframework.jdbc.support.JdbcUtils] methodName[supportsBatchUpdates] message[JDBC driver supports batch updates]
- 2020-04-01 12:34:15,913 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:15,914 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[batchUpdate] message[Executing SQL batch update [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:15,914 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:15,914 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:15,915 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:15,918 DEBUG className[org.springframework.jdbc.support.JdbcUtils] methodName[supportsBatchUpdates] message[JDBC driver supports batch updates]
- 2020-04-01 12:34:15,919 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:15,919 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[update] message[Executing prepared SQL update]
- 2020-04-01 12:34:15,920 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [UPDATE scans SET perimeter_size = ? WHERE id = ?]]
- 2020-04-01 12:34:15,920 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:15,920 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:15,925 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:15,925 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[update] message[Executing prepared SQL update]
- 2020-04-01 12:34:15,926 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [UPDATE scans SET perimeter_size = ? WHERE id = ?]]
- 2020-04-01 12:34:15,926 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:15,926 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:15,931 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:15,931 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[update] message[Executing prepared SQL update]
- 2020-04-01 12:34:15,932 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [UPDATE scans SET perimeter_size = ? WHERE id = ?]]
- 2020-04-01 12:34:15,932 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:15,932 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:15,937 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:15,937 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[update] message[Executing prepared SQL update]
- 2020-04-01 12:34:15,938 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [UPDATE scans SET perimeter_size = ? WHERE id = ?]]
- 2020-04-01 12:34:15,938 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:15,938 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:15,943 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:15,943 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[update] message[Executing prepared SQL update]
- 2020-04-01 12:34:15,943 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [UPDATE scans SET scan_end = NOW() WHERE scan_end IS NULL AND perimeter_size > 0 AND perimeter_size = discovery_count AND (stages = ? OR host_alive = assessment_count)]]
- 2020-04-01 12:34:15,944 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:15,944 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:15,950 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:15,950 DEBUG className[com.holedge.security.perimeterservice.JobManager] methodName[run] message[End cycle - Going to sleep.]
- 2020-04-01 12:34:30,951 DEBUG className[com.holedge.security.perimeterservice.JobManager] methodName[run] message[Start job manager cycle.]
- 2020-04-01 12:34:30,951 INFO className[com.holedge.security.perimeterservice.JobManager] methodName[run] message[Looking for latecomers jobs.]
- 2020-04-01 12:34:30,951 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[query] message[Executing SQL query [SELECT id, owner, group_id, deleted, stages, queue, max_frequency, parents, perimeter, ports, protocols, start_after, not_after, LOCALTIME_TO_UTC(timeframe_from) AS timeframe_from, LOCALTIME_TO_UTC(timeframe_to) AS timeframe_to, scan_start, scan_end, discovery_count, host_alive, assessment_count FROM scans WHERE deleted = 0 AND scan_end IS NULL AND not_after IS NOT NULL AND not_after < CURRENT_TIME]]
- 2020-04-01 12:34:30,951 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:30,952 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:30,959 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:30,960 INFO className[com.holedge.security.perimeterservice.JobManager] methodName[run] message[Found 0 latecomers jobs.]
- 2020-04-01 12:34:30,960 INFO className[com.holedge.security.perimeterservice.JobManager] methodName[run] message[Scheduling scan jobs.]
- 2020-04-01 12:34:30,961 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing SQL statement [INSERT INTO scans (owner, group_id, stages, queue, max_frequency, parents, perimeter, ports, protocols, start_after, not_after, timeframe_from, timeframe_to ) SELECT owner, id, stages, queue, max_frequency, parents + 1, perimeter, ports, protocols, start_after, not_after, timeframe_from, timeframe_to FROM scans WHERE deleted = 0 AND queue = 0 AND scan_end IS NOT NULL AND CURRENT_TIMESTAMP >= DATE_ADD(scan_start, INTERVAL GREATEST(1, COALESCE(max_frequency, 30)) DAY) AND id IN (SELECT MAX(id) FROM scans GROUP BY group_id)]]
- 2020-04-01 12:34:30,961 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:30,961 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:30,967 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:30,968 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[query] message[Executing SQL query [SELECT id, owner, group_id, deleted, stages, queue, max_frequency, parents, perimeter, ports, protocols, start_after, not_after, LOCALTIME_TO_UTC(timeframe_from) AS timeframe_from, LOCALTIME_TO_UTC(timeframe_to) AS timeframe_to, scan_start, scan_end, discovery_count, host_alive, assessment_count FROM scans WHERE deleted = 0 AND scan_start IS NULL AND CURRENT_TIMESTAMP > start_after AND perimeter_size = 0]]
- 2020-04-01 12:34:30,968 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:30,968 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:30,976 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:30,977 INFO className[com.holedge.security.perimeterservice.JobManager] methodName[run] message[Found 4 scans to start]
- 2020-04-01 12:34:30,977 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[batchUpdate] message[Executing SQL batch update [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:30,977 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:30,977 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:30,977 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:30,981 DEBUG className[org.springframework.jdbc.support.JdbcUtils] methodName[supportsBatchUpdates] message[JDBC driver supports batch updates]
- 2020-04-01 12:34:30,981 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:30,982 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[batchUpdate] message[Executing SQL batch update [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:30,982 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:30,982 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:30,982 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:30,986 DEBUG className[org.springframework.jdbc.support.JdbcUtils] methodName[supportsBatchUpdates] message[JDBC driver supports batch updates]
- 2020-04-01 12:34:30,986 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:30,987 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[batchUpdate] message[Executing SQL batch update [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:30,987 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:30,987 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:30,987 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:30,991 DEBUG className[org.springframework.jdbc.support.JdbcUtils] methodName[supportsBatchUpdates] message[JDBC driver supports batch updates]
- 2020-04-01 12:34:30,991 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:30,992 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[batchUpdate] message[Executing SQL batch update [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:30,992 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [INSERT INTO dispatchers (owner, scan_id, queue, last_stage, target, ip, ports, protocols, timeframe_from, timeframe_to) VALUES (?, ?, ?, ?, ?, ?, ?, ?, UTC_TO_LOCALTIME(?), UTC_TO_LOCALTIME(?))]]
- 2020-04-01 12:34:30,992 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:30,993 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:30,996 DEBUG className[org.springframework.jdbc.support.JdbcUtils] methodName[supportsBatchUpdates] message[JDBC driver supports batch updates]
- 2020-04-01 12:34:30,997 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:30,997 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[update] message[Executing prepared SQL update]
- 2020-04-01 12:34:30,998 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [UPDATE scans SET perimeter_size = ? WHERE id = ?]]
- 2020-04-01 12:34:30,998 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:30,998 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:31,004 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:31,005 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[update] message[Executing prepared SQL update]
- 2020-04-01 12:34:31,005 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [UPDATE scans SET perimeter_size = ? WHERE id = ?]]
- 2020-04-01 12:34:31,005 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:31,005 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:31,010 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:31,011 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[update] message[Executing prepared SQL update]
- 2020-04-01 12:34:31,011 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [UPDATE scans SET perimeter_size = ? WHERE id = ?]]
- 2020-04-01 12:34:31,011 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:31,012 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:31,016 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:31,017 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[update] message[Executing prepared SQL update]
- 2020-04-01 12:34:31,017 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [UPDATE scans SET perimeter_size = ? WHERE id = ?]]
- 2020-04-01 12:34:31,018 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:31,018 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:31,022 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:31,023 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[update] message[Executing prepared SQL update]
- 2020-04-01 12:34:31,023 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[execute] message[Executing prepared SQL statement [UPDATE scans SET scan_end = NOW() WHERE scan_end IS NULL AND perimeter_size > 0 AND perimeter_size = discovery_count AND (stages = ? OR host_alive = assessment_count)]]
- 2020-04-01 12:34:31,023 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doGetConnection] message[Fetching JDBC Connection from DataSource]
- 2020-04-01 12:34:31,024 DEBUG className[org.springframework.jdbc.datasource.DriverManagerDataSource] methodName[getConnectionFromDriver] message[Creating new JDBC DriverManager Connection to [jdbc:mariadb://backend01-mysql:3306/perimeter_service?useServerPrepStmts=false&rewriteBatchedStatements=true]]
- 2020-04-01 12:34:31,029 DEBUG className[org.springframework.jdbc.datasource.DataSourceUtils] methodName[doReleaseConnection] message[Returning JDBC Connection to DataSource]
- 2020-04-01 12:34:31,030 DEBUG className[com.holedge.security.perimeterservice.JobManager] methodName[run] message[End cycle - Going to sleep.]
- 2020-04-01 12:34:41,883 DEBUG className[org.springframework.jdbc.core.JdbcTemplate] methodName[update] message[Executing prepared SQL update]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement