# Logstash-filter-verifier @timestamp issue

**URL:** <https://discuss.elastic.co/t/logstash-filter-verifier-timestamp-issue/177563>\
**Category:** Logstash\
**Created:** [April 19, 2019, 4:45am UTC](https://discuss.elastic.co/t/logstash-filter-verifier-timestamp-issue/177563 "2019-04-19T04:45:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SManorathna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/smanorathna/32/42626_2.png) [@SManorathna](https://discuss.elastic.co/u/SManorathna)\
**Post date:** [April 19, 2019, 4:45am UTC](https://discuss.elastic.co/t/logstash-filter-verifier-timestamp-issue/177563/1 "2019-04-19T04:45:36Z")

</div>

Hi,

I am trying to use logstash-filter-verifier ([https://github.com/magnusbaeck/logstash-filter-verifier](https://github.com/magnusbaeck/logstash-filter-verifier)) for verifying my logstash filter. There is a simple issue and I think that I am doing a simple mistake here, but still could not figure out this.

I have a simple filter here where it differentiates first name, last name, and age

```auto
filter {
grok {
match => ["message", "%{WORD:firstname} %{WORD:lastname} %{NUMBER:age}"]
overwrite => ["message"]
}
}

```

this is my test json file

```auto
{
"fields": {
"type": "syslog"
},
"input": [
"sameera manorathna 23"
],
"expected": [
{
"firstname": "sameera",
"lastname": "manorathna",
"host": "sameera-pc",
"message": "sameera manorathna 23",
"age": "23",
"type": "syslog"
}
]
}

```

And I am not providing any timestamp related values here in the test json file. But there is an error related to the timestamp

```auto
Running tests in input.json...
Comparing message 1 of 1 from input.json...
--- /tmp/286448667/input.json/1/expected	2019-04-19 09:30:59.747762719 +0530
+++ /tmp/286448667/input.json/1/actual	2019-04-19 09:30:59.747762719 +0530
@@ -1,4 +1,5 @@
 {
+ "@timestamp": "2019-04-19T04:00:58.461Z",
   "age": "23",
   "firstname": "sameera",
   "host": "sameera-pc",
Testcase failed, continuing with the rest: 1 message(s) did not match the expectations.
one or more testcases failed

```

This could be a stupid question. I know that this is a stupid question. But how the date filter works here?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 19, 2019, 2:10pm UTC](https://discuss.elastic.co/t/logstash-filter-verifier-timestamp-issue/177563/2 "2019-04-19T14:10:18Z")

</div>

I have never used it, but I think that is just telling you that the actual output includes the field @timestamp whilst your expected output does not. If you were parsing something like a line from syslog then you would expect to have a matching @timestamp, so the verifier cannot ignore it by default.

Can you try adding this to your json file

```
"ignore": ["@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:** [May 17, 2019, 2:10pm UTC](https://discuss.elastic.co/t/logstash-filter-verifier-timestamp-issue/177563/3 "2019-05-17T14:10:19Z")

</div>

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