Skip to content

Commit

Permalink
[apache_tomcat] - Migrate to package-spec v3 (#8159)
Browse files Browse the repository at this point in the history
* [apache_tomcat] - removed dotted YAML keys from manifest

The format_version in the package manifest changed from 2.3.0 to 3.0.0. Removed
dotted YAML keys from package manifest. Added 'owner.type: elastic' to package
manifest.

[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -skip-format -fix-dotted-yaml-keys -add-owner-type packages/apache_tomcat

* Update packages/apache_tomcat/changelog.yml
  • Loading branch information
shmsr authored Oct 12, 2023
1 parent 3baf029 commit 1e8f627
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions packages/apache_tomcat/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: 0.14.0
changes:
- description: Update the package format_version to 3.0.0.
type: enhancement
link: https://github.com/elastic/integrations/pull/8159
- version: "0.13.0"
changes:
- description: Adapt fields for changes in file system info
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@
"version": "8.7.0"
},
"error": {
"stack_trace": "\n\nAn error occurred at line: [18] in the jsp file: [/hello.jsp]\nLogger cannot be resolved to a type\n15: application.\n16: \u003c/td\u003e\n17: \u003c/tr\u003e\n18: \u003c% Logger logger = Logger.getLogger(this.getClass().getName());%\u003e\n19: \u003c% String message = \"error\"; logger.info( message );%\u003e\n20: \u003c/table\u003e\n21: \n\n\nAn error occurred at line: [18] in the jsp file: [/hello.jsp]\nLogger cannot be resolved\n15: application.\n16: \u003c/td\u003e\n17: \u003c/tr\u003e\n18: \u003c% Logger logger = Logger.getLogger(this.getClass().getName());%\u003e\n19: \u003c% String message = \"error\"; logger.info( message );%\u003e\n20: \u003c/table\u003e\n21: \n\n\nStacktrace:] with root cause\n\torg.apache.jasper.JasperException: Unable to compile class for JSP: \n\nAn error occurred at line: [18] in the jsp file: [/hello.jsp]\nLogger cannot be resolved to a type\n15: application.\n16: \u003c/td\u003e\n17: \u003c/tr\u003e\n18: \u003c% Logger logger = Logger.getLogger(this.getClass().getName());%\u003e\n19: \u003c% String message = \"error\"; logger.info( message );%\u003e\n20: \u003c/table\u003e\n21: \n\n\nAn error occurred at line: [18] in the jsp file: [/hello.jsp]\nLogger cannot be resolved\n15: application.\n16: \u003c/td\u003e\n17: \u003c/tr\u003e\n18: \u003c% Logger logger = Logger.getLogger(this.getClass().getName());%\u003e\n19: \u003c% String message = \"error\"; logger.info( message );%\u003e\n20: \u003c/table\u003e\n21: \n\n\nStacktrace:\n\t\tat org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)\n\t\tat org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:213)\n\t\tat org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:600)\n\t\tat org.apache.jasper.compiler.Compiler.compile(Compiler.java:381)\n\t\tat org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)\n\t\tat org.apache.jasper.compiler.Compiler.compile(Compiler.java:335)\n\t\tat org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:597)\n\t\tat org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)\n\t\tat org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:383)\n\t\tat org.apache.jasper.servlet.JspServlet.service(JspServlet.java:331)\n\t\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:765)\n\t\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n\t\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\t\tat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n\t\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\t\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\t\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:177)\n\t\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n\t\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)\n\t\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n\t\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n\t\tat org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:698)\n\t\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n\t\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:367)\n\t\tat org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:639)\n\t\tat org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n\t\tat org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:885)\n\t\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1688)\n\t\tat org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n\t\tat org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n\t\tat org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n\t\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n\t\tat java.base/java.lang.Thread.run(Thread.java:829)"
"stack_trace": "\n\nAn error occurred at line: [18] in the jsp file: [/hello.jsp]\nLogger cannot be resolved to a type\n15: application.\n16: </td>\n17: </tr>\n18: <% Logger logger = Logger.getLogger(this.getClass().getName());%>\n19: <% String message = \"error\"; logger.info( message );%>\n20: </table>\n21: \n\n\nAn error occurred at line: [18] in the jsp file: [/hello.jsp]\nLogger cannot be resolved\n15: application.\n16: </td>\n17: </tr>\n18: <% Logger logger = Logger.getLogger(this.getClass().getName());%>\n19: <% String message = \"error\"; logger.info( message );%>\n20: </table>\n21: \n\n\nStacktrace:] with root cause\n\torg.apache.jasper.JasperException: Unable to compile class for JSP: \n\nAn error occurred at line: [18] in the jsp file: [/hello.jsp]\nLogger cannot be resolved to a type\n15: application.\n16: </td>\n17: </tr>\n18: <% Logger logger = Logger.getLogger(this.getClass().getName());%>\n19: <% String message = \"error\"; logger.info( message );%>\n20: </table>\n21: \n\n\nAn error occurred at line: [18] in the jsp file: [/hello.jsp]\nLogger cannot be resolved\n15: application.\n16: </td>\n17: </tr>\n18: <% Logger logger = Logger.getLogger(this.getClass().getName());%>\n19: <% String message = \"error\"; logger.info( message );%>\n20: </table>\n21: \n\n\nStacktrace:\n\t\tat org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)\n\t\tat org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:213)\n\t\tat org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:600)\n\t\tat org.apache.jasper.compiler.Compiler.compile(Compiler.java:381)\n\t\tat org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)\n\t\tat org.apache.jasper.compiler.Compiler.compile(Compiler.java:335)\n\t\tat org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:597)\n\t\tat org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)\n\t\tat org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:383)\n\t\tat org.apache.jasper.servlet.JspServlet.service(JspServlet.java:331)\n\t\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:765)\n\t\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n\t\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\t\tat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n\t\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\t\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\t\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:177)\n\t\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n\t\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)\n\t\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n\t\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n\t\tat org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:698)\n\t\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n\t\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:367)\n\t\tat org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:639)\n\t\tat org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n\t\tat org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:885)\n\t\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1688)\n\t\tat org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n\t\tat org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n\t\tat org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n\t\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n\t\tat java.base/java.lang.Thread.run(Thread.java:829)"
},
"event": {
"category": [
"web"
],
"kind": "event",
"module": "apache_tomcat",
"original": "17-Apr-2023 14:21:32.233 SEVERE [http-nio-8080-exec-1] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [jsp] in context with path [/sample] threw exception [Unable to compile class for JSP: \n\nAn error occurred at line: [18] in the jsp file: [/hello.jsp]\nLogger cannot be resolved to a type\n15: application.\n16: \u003c/td\u003e\n17: \u003c/tr\u003e\n18: \u003c% Logger logger = Logger.getLogger(this.getClass().getName());%\u003e\n19: \u003c% String message = \"error\"; logger.info( message );%\u003e\n20: \u003c/table\u003e\n21: \n\n\nAn error occurred at line: [18] in the jsp file: [/hello.jsp]\nLogger cannot be resolved\n15: application.\n16: \u003c/td\u003e\n17: \u003c/tr\u003e\n18: \u003c% Logger logger = Logger.getLogger(this.getClass().getName());%\u003e\n19: \u003c% String message = \"error\"; logger.info( message );%\u003e\n20: \u003c/table\u003e\n21: \n\n\nStacktrace:] with root cause\n\torg.apache.jasper.JasperException: Unable to compile class for JSP: \n\nAn error occurred at line: [18] in the jsp file: [/hello.jsp]\nLogger cannot be resolved to a type\n15: application.\n16: \u003c/td\u003e\n17: \u003c/tr\u003e\n18: \u003c% Logger logger = Logger.getLogger(this.getClass().getName());%\u003e\n19: \u003c% String message = \"error\"; logger.info( message );%\u003e\n20: \u003c/table\u003e\n21: \n\n\nAn error occurred at line: [18] in the jsp file: [/hello.jsp]\nLogger cannot be resolved\n15: application.\n16: \u003c/td\u003e\n17: \u003c/tr\u003e\n18: \u003c% Logger logger = Logger.getLogger(this.getClass().getName());%\u003e\n19: \u003c% String message = \"error\"; logger.info( message );%\u003e\n20: \u003c/table\u003e\n21: \n\n\nStacktrace:\n\t\tat org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)\n\t\tat org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:213)\n\t\tat org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:600)\n\t\tat org.apache.jasper.compiler.Compiler.compile(Compiler.java:381)\n\t\tat org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)\n\t\tat org.apache.jasper.compiler.Compiler.compile(Compiler.java:335)\n\t\tat org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:597)\n\t\tat org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)\n\t\tat org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:383)\n\t\tat org.apache.jasper.servlet.JspServlet.service(JspServlet.java:331)\n\t\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:765)\n\t\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n\t\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\t\tat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n\t\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\t\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\t\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:177)\n\t\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n\t\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)\n\t\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n\t\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n\t\tat org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:698)\n\t\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n\t\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:367)\n\t\tat org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:639)\n\t\tat org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n\t\tat org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:885)\n\t\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1688)\n\t\tat org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n\t\tat org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n\t\tat org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n\t\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n\t\tat java.base/java.lang.Thread.run(Thread.java:829)",
"original": "17-Apr-2023 14:21:32.233 SEVERE [http-nio-8080-exec-1] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [jsp] in context with path [/sample] threw exception [Unable to compile class for JSP: \n\nAn error occurred at line: [18] in the jsp file: [/hello.jsp]\nLogger cannot be resolved to a type\n15: application.\n16: </td>\n17: </tr>\n18: <% Logger logger = Logger.getLogger(this.getClass().getName());%>\n19: <% String message = \"error\"; logger.info( message );%>\n20: </table>\n21: \n\n\nAn error occurred at line: [18] in the jsp file: [/hello.jsp]\nLogger cannot be resolved\n15: application.\n16: </td>\n17: </tr>\n18: <% Logger logger = Logger.getLogger(this.getClass().getName());%>\n19: <% String message = \"error\"; logger.info( message );%>\n20: </table>\n21: \n\n\nStacktrace:] with root cause\n\torg.apache.jasper.JasperException: Unable to compile class for JSP: \n\nAn error occurred at line: [18] in the jsp file: [/hello.jsp]\nLogger cannot be resolved to a type\n15: application.\n16: </td>\n17: </tr>\n18: <% Logger logger = Logger.getLogger(this.getClass().getName());%>\n19: <% String message = \"error\"; logger.info( message );%>\n20: </table>\n21: \n\n\nAn error occurred at line: [18] in the jsp file: [/hello.jsp]\nLogger cannot be resolved\n15: application.\n16: </td>\n17: </tr>\n18: <% Logger logger = Logger.getLogger(this.getClass().getName());%>\n19: <% String message = \"error\"; logger.info( message );%>\n20: </table>\n21: \n\n\nStacktrace:\n\t\tat org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)\n\t\tat org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:213)\n\t\tat org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:600)\n\t\tat org.apache.jasper.compiler.Compiler.compile(Compiler.java:381)\n\t\tat org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)\n\t\tat org.apache.jasper.compiler.Compiler.compile(Compiler.java:335)\n\t\tat org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:597)\n\t\tat org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)\n\t\tat org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:383)\n\t\tat org.apache.jasper.servlet.JspServlet.service(JspServlet.java:331)\n\t\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:765)\n\t\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n\t\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\t\tat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\n\t\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\t\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\t\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:177)\n\t\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n\t\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)\n\t\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n\t\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n\t\tat org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:698)\n\t\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n\t\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:367)\n\t\tat org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:639)\n\t\tat org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n\t\tat org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:885)\n\t\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1688)\n\t\tat org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n\t\tat org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n\t\tat org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n\t\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n\t\tat java.base/java.lang.Thread.run(Thread.java:829)",
"timezone": "UTC",
"type": [
"error"
Expand Down
8 changes: 5 additions & 3 deletions packages/apache_tomcat/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
format_version: 2.3.0
format_version: "3.0.0"
name: apache_tomcat
title: Apache Tomcat
version: "0.13.0"
version: "0.14.0"
description: Collect and parse logs and metrics from Apache Tomcat servers with Elastic Agent.
categories: ["web", "observability"]
type: integration
conditions:
kibana.version: "^8.8.0"
kibana:
version: "^8.8.0"
policy_templates:
- name: Apache Tomcat
title: Apache Tomcat
Expand Down Expand Up @@ -121,3 +122,4 @@ screenshots:
type: image/png
owner:
github: elastic/obs-infraobs-integrations
type: elastic
3 changes: 3 additions & 0 deletions packages/apache_tomcat/validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
errors:
exclude_checks:
- SVR00004 # References in dashboards.

0 comments on commit 1e8f627

Please sign in to comment.