1. 接口描述
接口请求域名: tsf.tencentcloudapi.com 。
标准输出日志搜索
默认接口请求频率限制:20次/秒。
推荐使用 API Explorer
点击调试
API Explorer 提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力。您可查看每次调用的请求内容和返回结果以及自动生成 SDK 调用示例。
2. 输入参数
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
参数名称 | 必选 | 类型 | 描述 |
---|---|---|---|
Action | 是 | String | 公共参数,本接口取值:SearchStdoutLog。 |
Version | 是 | String | 公共参数,本接口取值:2018-03-26。 |
Region | 是 | String | 公共参数,详见产品支持的 地域列表。 |
InstanceId | 否 | String | 机器实例ID 示例值:msjw-uniform-payment-5ffb678dbf-mctr7 |
Limit | 否 | Integer | 单页请求配置数量,取值范围[1, 500],默认值为100 示例值:100 |
SearchWords.N | 否 | Array of String | 检索关键词 |
StartTime | 否 | Timestamp | 查询起始时间 示例值:2019-05-29 14:14:42 |
GroupId | 否 | String | 部署组ID |
EndTime | 否 | Timestamp | 查询结束时间 |
Offset | 否 | Integer | 请求偏移量,取值范围大于等于0,默认值为 0 |
OrderBy | 否 | String | 排序规则,默认值"time" |
OrderType | 否 | String | 排序方式,取值"asc"或"desc",默认 值"desc" |
SearchWordType | 否 | String | 检索类型,取值"LUCENE", "REGEXP", "NORMAL" |
BatchType | 否 | String | 批量请求类型,取值"page"或"scroll",默认 值"page" |
ScrollId | 否 | String | 游标ID |
3. 输出参数
参数名称 | 类型 | 描述 |
---|---|---|
Result | TsfPageStdoutLogV2 | 标准输出日志列表 注意:此字段可能返回 null,表示取不到有效值。 |
RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
4. 示例
示例1 标准输出日志搜索
输入示例
https://tsf.tencentcloudapi.com/?Action=SearchStdoutLog
&Limit=100
&StartTime=2019-05-29 14:14:42
&InstanceId=msjw-uniform-payment-5ffb678dbf-mctr7
&<公共请求参数>
输出示例
{
"Response": {
"RequestId": "273aa44b-85d2-4279-9840-91b742eed7d0",
"Result": {
"TotalCount": 165,
"Content": [
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.933][main] INFO o.s.b.c.e.t.TomcatEmbeddedServletContainer - Tomcat started on port(s): 8080 (http)",
"Timestamp": 1559114131428
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.947][main] INFO o.s.c.c.s.ConsulServiceRegistry - Registering service with consul: TsfNewService{id='msjw-uniform-payment-5ffb678dbf-mctr7', name='msjw-uniform-payment', tags=[contextPath=/msjwUniformPay], address='172.16.0.93', port=8080, meta={TSF_INSTNACE_ID=msjw-uniform-payment-5ffb678dbf-mctr7, TSF_PROG_VERSION=20190528175713, TSF_GROUP_ID=group-py5479ja, TSF_API_METAS=H4sIAAAAAAAAAO1bS3PbNhD+Kxq2R8pynEwPvjmKM+OJI2ssuzl0eoDIlYiEBBgAtKpm9Iv6E3rLL+sC1IMPgHrGqRLN+CJ+i8Vi8",
"Timestamp": 1559114131428
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:28.061][main] INFO cn.gov.szga.Application - Started Application in 12.068 seconds (JVM running for 12.71)",
"Timestamp": 1559114131428
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:26.641][elasticsearch[Achilles][clusterService#updateTask][T#1]] INFO org.elasticsearch.gateway - [Achilles] recovered [0] indices into cluster_state",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.044][main] INFO c.n.c.sources.URLConfigurationSource - URLs to be used as dynamic configuration source: [jar:file:/data/tsf_default/msjw-uniform-payment.jar!/BOOT-INF/classes!/config.properties]",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.247][main] INFO o.s.j.e.a.AnnotationMBeanExporter - Registering beans for JMX exposure on startup",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.468][main] INFO o.s.c.s.DefaultLifecycleProcessor - Starting beans in phase -3",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.468][main] INFO s.d.s.w.p.DocumentationPluginsBootstrapper - Context refreshed",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.486][main] INFO s.d.s.w.p.DocumentationPluginsBootstrapper - Found 1 custom documentation plugin(s)",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.525][main] INFO s.d.s.w.s.ApiListingReferenceScanner - Scanning for api listing references",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.741][main] INFO o.s.c.s.DefaultLifecycleProcessor - Starting beans in phase -2",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.896][main] INFO o.a.coyote.http11.Http11NioProtocol - Starting ProtocolHandler [\"http-nio-8080\"]",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:26.522][elasticsearch[Achilles][clusterService#updateTask][T#1]] INFO org.elasticsearch.cluster.service - [Achilles] new_master {Achilles}{XE4pHz4UQkmc4B-UaRzRtg}{local}{local[1]}{local=true}, reason: local-disco-initial_connect(master)",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:26.529][main] INFO org.elasticsearch.node - [Achilles] started",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.026][main] INFO c.n.c.sources.URLConfigurationSource - URLs to be used as dynamic configuration source: [jar:file:/data/tsf_default/msjw-uniform-payment.jar!/BOOT-INF/classes!/config.properties]",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.249][main] INFO o.s.j.e.a.AnnotationMBeanExporter - Bean with name 'dataSource' has been autodetected for JMX exposure",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.259][main] INFO o.s.j.e.a.AnnotationMBeanExporter - Bean with name 'refreshScope' has been autodetected for JMX exposure",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.262][main] INFO o.s.j.e.a.AnnotationMBeanExporter - Located managed bean 'environmentManager': registering with JMX server as MBean [org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager]",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.275][main] INFO o.s.j.e.a.AnnotationMBeanExporter - Located managed bean 'refreshScope': registering with JMX server as MBean [org.springframework.cloud.context.scope.refresh:name=refreshScope,type=RefreshScope]",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.885][main] INFO o.s.c.s.DefaultLifecycleProcessor - Starting beans in phase 0",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.904][main] INFO o.a.tomcat.util.net.NioSelectorPool - Using a shared selector for servlet write/read",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:26.513][main] INFO org.elasticsearch.discovery - [Achilles] elasticsearch/XE4pHz4UQkmc4B-UaRzRtg",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.258][main] INFO o.s.j.e.a.AnnotationMBeanExporter - Bean with name 'configurationPropertiesRebinder' has been autodetected for JMX exposure",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.259][main] INFO o.s.j.e.a.AnnotationMBeanExporter - Bean with name 'environmentManager' has been autodetected for JMX exposure",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.288][main] INFO o.s.j.e.a.AnnotationMBeanExporter - Located managed bean 'configurationPropertiesRebinder': registering with JMX server as MBean [org.springframework.cloud.context.properties:name=configurationPropertiesRebinder,context=2b2948e2,type=ConfigurationPropertiesRebinder]",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.294][main] INFO o.s.j.e.a.AnnotationMBeanExporter - Located MBean 'dataSource': registering with JMX server as MBean [com.alibaba.druid.pool:name=dataSource,type=DruidDataSource]",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:27.885][main] INFO o.s.c.s.DefaultLifecycleProcessor - Starting beans in phase -1",
"Timestamp": 1559114131427
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:22.608][main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped \"{[/payNote/scheduler],methods=[POST],produces=[application/json]}\" onto public java.lang.String cn.gov.szga.uniform.payment.rest.PaymNoteScheduler.scheduler()",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:23.218][main] INFO o.s.w.s.h.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:24.174][main] INFO org.elasticsearch.node - [Achilles] version[2.4.6], pid[15], build[5376dca/2017-07-18T12:17:44Z]",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:24.212][main] INFO org.elasticsearch.env - [Achilles] using [1] data paths, mounts [[/ (none)]], net usable_space [171.5gb], net total_space [196.7gb], spins? [possibly], types [aufs]",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:24.213][main] INFO org.elasticsearch.env - [Achilles] heap size [1.7gb], compressed ordinary object pointers [true]",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "OpenJDK 64-Bit Server VM warning: You have loaded library /tmp/jna2267817740774765773.tmp which might have disabled stack guard. The VM will try to fix the stack guard now.",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:26.507][main] INFO org.elasticsearch.node - [Achilles] starting ...",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:22.613][main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped \"{[/swagger-resources/configuration/security]}\" onto public org.springframework.http.ResponseEntity<springfox.documentation.swagger.web.SecurityConfiguration> springfox.documentation.swagger.web.ApiResourceController.securityConfiguration()",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:23.089][main] INFO o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2b2948e2: startup date [Wed May 29 15:15:17 CST 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@dcf3e99",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:23.162][main] INFO o.s.w.s.h.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:23.882][main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)]",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:26.510][main] INFO org.elasticsearch.transport - [Achilles] publish_address {local[1]}, bound_addresses {local[1]}",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:22.613][main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped \"{[/swagger-resources]}\" onto public org.springframework.http.ResponseEntity<java.util.List<springfox.documentation.swagger.web.SwaggerResource>> springfox.documentation.swagger.web.ApiResourceController.swaggerResources()",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:22.614][main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped \"{[/swagger-resources/configuration/ui]}\" onto public org.springframework.http.ResponseEntity<springfox.documentation.swagger.web.UiConfiguration> springfox.documentation.swagger.web.ApiResourceController.uiConfiguration()",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:22.617][main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped \"{[/error],produces=[text/html]}\" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:22.617][main] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped \"{[/error]}\" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:23.162][main] INFO o.s.w.s.h.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:23.906][main] INFO c.t.t.s.a.TsfSwaggerAutoConfiguration - [tsf-swagger] application main class:cn.gov.szga.Application, auto detect swagger scan package:cn.gov.szga ",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:24.174][main] INFO org.elasticsearch.node - [Achilles] initializing ...",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:24.180][main] INFO org.elasticsearch.plugins - [Achilles] modules [], plugins [], sites []",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:26.507][main] INFO org.elasticsearch.node - [Achilles] initialized",
"Timestamp": 1559114131426
},
{
"InstanceId": "msjw-uniform-payment-5ffb678dbf-mctr7",
"InstanceIp": "172.16.0.93",
"Content": "[2019/05/29 15:15:21.762][localhost-startStop-1] INFO o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'requestContextFilter' to: [/*]",
"Timestamp": 1559114131425
}
]
}
}
}
5. 开发者资源
腾讯云 API 平台
腾讯云 API 平台 是综合 API 文档、错误码、API Explorer 及 SDK 等资源的统一查询平台,方便您从同一入口查询及使用腾讯云提供的所有 API 服务。
API Inspector
用户可通过 API Inspector 查看控制台每一步操作关联的 API 调用情况,并自动生成各语言版本的 API 代码,也可前往 API Explorer 进行在线调试。
SDK
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
- Tencent Cloud SDK 3.0 for Python: GitHub Gitee
- Tencent Cloud SDK 3.0 for Java: GitHub Gitee
- Tencent Cloud SDK 3.0 for PHP: GitHub Gitee
- Tencent Cloud SDK 3.0 for Go: GitHub Gitee
- Tencent Cloud SDK 3.0 for Node.js: GitHub Gitee
- Tencent Cloud SDK 3.0 for .NET: GitHub Gitee
- Tencent Cloud SDK 3.0 for C++: GitHub Gitee
- Tencent Cloud SDK 3.0 for Ruby: GitHub Gitee
命令行工具
6. 错误码
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
错误码 | 描述 |
---|---|
FailedOperation.TsfPrivilegeError | TSF权限模块异常,请联系系统管理员。。 |
InternalError.TsfApmEsResponseStatusException | TSF应用性能管理ES客户端响应状态异常。 |
InternalError.UnhandledException | [%s]模块未处理异常。。 |
InvalidParameter.TsfApmStdoutSearchRequestParamError | TSF应用性能管理标准输出日志搜索请求参数错误。 |
ResourceNotFound.MicroserviceOffline | 目标微服务已离线[%s]。。 |