NDR Sensor CLI

get log-file <log-file-arg> follow

Display the last 10 lines of the specified log file and all new messages that are written to the log file.

Parameters:

Option Description
<filename> Log file name


Example:

ndr-sensor> get log-file sensor-client-service.log follow <30>1 2025-08-21T17:56:56.560Z ndr-sensor-589b7182 NSX 1642 Sensor 2025-08-21T17:56:56.001Z WARN main WebSecurity 8 You are asking Spring Security to ignore Ant [pattern='/ws/**']. This is not recommended -- please use permitAll via HttpSecurity#authorizeHttpRequests instead. <30>1 2025-08-21T17:56:56.561Z ndr-sensor-589b7182 NSX 1642 Sensor 2025-08-21T17:56:56.002Z INFO main DefaultSecurityFilterChain 8 Will not secure Ant [pattern='/ws/**'] <30>1 2025-08-21T17:56:56.806Z ndr-sensor-589b7182 NSX 1642 Sensor 2025-08-21T17:56:56.076Z INFO main DefaultSecurityFilterChain 8 Will secure any request with [org.springframework.security.web.session.DisableEncodeUrlFilter@3cb8c8ce, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@1fde0371, org.springframework.security.web.context.SecurityContextPersistenceFilter@7c8f9c2e, org.springframework.security.web.header.HeaderWriterFilter@8f2098e, org.springframework.security.web.authentication.logout.LogoutFilter@7187bac9, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@3cbf1ba4, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@7c1e32c9, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@70c0a3d5, org.springframework.security.web.session.SessionManagementFilter@6631cb64, org.springframework.security.web.access.ExceptionTranslationFilter@7fd8c559, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@66213a0d] <30>1 2025-08-21T17:56:56.800Z ndr-sensor-589b7182 NSX 1642 Sensor 2025-08-21T17:56:56.726Z INFO main EndpointLinksResolver 8 Exposing 1 endpoint(s) beneath base path '/actuator' <30>1 2025-08-21T17:56:56.006Z ndr-sensor-589b7182 NSX 1642 Sensor 2025-08-21T17:56:56.759Z INFO main Http11NioProtocol 8 Starting ProtocolHandler ["http-nio-8080"] <30>1 2025-08-21T17:56:56.886Z ndr-sensor-589b7182 NSX 1642 Sensor 2025-08-21T17:56:56.790Z INFO main TomcatWebServer 8 Tomcat started on port(s): 8080 (http) with context path '' <30>1 2025-08-21T17:56:56.450Z ndr-sensor-589b7182 NSX 1642 Sensor 2025-08-21T17:56:56.808Z INFO main SensorClientServiceApplication 8 Started SensorClientServiceApplication in 6.572 seconds (JVM running for 8.685). . .