# Remove timestamp where message have a string search?

**URL:** <https://discuss.elastic.co/t/remove-timestamp-where-message-have-a-string-search/316661>\
**Category:** Elasticsearch\
**Created:** [October 14, 2022, 4:22pm UTC](https://discuss.elastic.co/t/remove-timestamp-where-message-have-a-string-search/316661 "2022-10-14T16:22:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikolas1306](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikolas1306/32/111507_2.png) [@Nikolas1306](https://discuss.elastic.co/u/Nikolas1306)\
**Post date:** [October 14, 2022, 4:22pm UTC](https://discuss.elastic.co/t/remove-timestamp-where-message-have-a-string-search/316661/1 "2022-10-14T16:22:42Z")

</div>

i have this

```auto
|2022-09-30 15:10:15,151 ERROR [stderr] (default task-4) |at org.jboss.resteasy.resteasy-jaxrs@3.12.1.Final//org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:138)|
|---|---|
|2022-09-30 15:10:15,151 ERROR [stderr] (default task-4) |at org.jboss.resteasy.resteasy-jaxrs@3.12.1.Final//org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:543)|
|2022-09-30 15:10:15,151 ERROR [stderr] (default task-4) |at org.jboss.resteasy.resteasy-jaxrs@3.12.1.Final//org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:432)|
|2022-09-30 15:10:15,151 ERROR [stderr] (default task-4) |at org.jboss.resteasy.resteasy-jaxrs@3.12.1.Final//org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$0(ResourceMethodInvoker.java:393)|
|2022-09-30 15:10:15,151 ERROR [stderr] (default task-4) |at org.jboss.resteasy.resteasy-jaxrs@3.12.1.Final//org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:358)|
|2022-09-30 15:10:15,151 ERROR [stderr] (default task-4) |at org.jboss.resteasy.resteasy-jaxrs@3.12.1.Final//org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:395)|
|2022-09-30 15:10:15,151 ERROR [stderr] (default task-4) |at org.jboss.resteasy.resteasy-jaxrs@3.12.1.Final//org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:364)|
|2022-09-30 15:10:15,152 ERROR [stderr] (default task-4) |at org.jboss.resteasy.resteasy-jaxrs@3.12.1.Final//org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:337)|
|2022-09-30 15:10:15,152 ERROR [stderr] (default task-4) |at org.jboss.resteasy.resteasy-jaxrs@3.12.1.Final//org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:440)|
|2022-09-30 15:10:15,152 ERROR [stderr] (default task-4) |at org.jboss.resteasy.resteasy-jaxrs@3.12.1.Final//org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:229)|
|2022-09-30 15:10:15,152 ERROR [stderr] (default task-4) |at org.jboss.resteasy.resteasy-jaxrs@3.12.1.Final//org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:135)|
|2022-09-30 15:10:15,152 ERROR [stderr] (default task-4) |at org.jboss.resteasy.resteasy-jaxrs@3.12.1.Final//org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:358)|
|2022-09-30 15:10:15,152 ERROR [stderr] (default task-4) |at org.jboss.resteasy.resteasy-jaxrs@3.12.1.Final//org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:138)|
|2022-09-30 15:10:15,152 ERROR [stderr] (default task-4) |at org.jboss.resteasy.resteasy-jaxrs@3.12.1.Final//org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:215)|
|2022-09-30 15:10:15,152 ERROR [stderr] (default task-4) |at org.jboss.resteasy.resteasy-jaxrs@3.12.1.Final//org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:245)|
|2022-09-30 15:10:15,152 ERROR [stderr] (default task-4) |at org.jboss.resteasy.resteasy-jaxrs@3.12.1.Final//org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:61)|
|2022-09-30 15:10:15,152 ERROR [stderr] (default task-4) |at org.jboss.resteasy.resteasy-jaxrs@3.12.1.Final//org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)|
|2022-09-30 15:10:15,152 ERROR [stderr] (default task-4) |at javax.servlet.api@2.0.0.Final//javax.servlet.http.HttpServlet.service(HttpServlet.java:590)|

```

can be removed timestamp and insert all in 1 fields message multiline

```auto

filter {
    
 date {
       match => { "message" => "%[stderr] (default task%" }
  }
 
  mutate {
      remove_field => ['@timestamp']
  }
  
  
}

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 11, 2022, 4:23pm UTC](https://discuss.elastic.co/t/remove-timestamp-where-message-have-a-string-search/316661/2 "2022-11-11T16:23:36Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
