# \[0\] "\_jsonparsefailure" how do you remove this?

**URL:** <https://discuss.elastic.co/t/0-jsonparsefailure-how-do-you-remove-this/298225>\
**Category:** Logstash\
**Created:** [February 24, 2022, 9:58pm UTC](https://discuss.elastic.co/t/0-jsonparsefailure-how-do-you-remove-this/298225 "2022-02-24T21:58:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![itschobot](https://avatars.discourse-cdn.com/v4/letter/i/439d5e/32.png) [@itschobot](https://discuss.elastic.co/u/itschobot)\
**Post date:** [February 24, 2022, 9:58pm UTC](https://discuss.elastic.co/t/0-jsonparsefailure-how-do-you-remove-this/298225/1 "2022-02-24T21:58:31Z")

</div>

how do you get rid of the [0] "\_jsonparsefailure?

```auto
{
                 "origin" => "some_platform",
              "ls-source" => "some_platform",
                   "port" => 1234,
                  "event" => {
        "severity" => 1
    },
               "@version" => "1",
              "breachUrl" => "",
                   "time" => 1645739629935,
                   "tags" => [
        [0] "_jsonparsefailure"
    ],
           "creationTime" => 1645739629935,
    "triggeredComponents" => [
        [0] {
            "triggeredFilters" => [
                [0] {
                           "trigger" => {
                        "value" => "Test filter value"
                    },

```

---

<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:** [February 24, 2022, 10:05pm UTC](https://discuss.elastic.co/t/0-jsonparsefailure-how-do-you-remove-this/298225/2 "2022-02-24T22:05:27Z")

</div>

If it is getting added by a json filter then you can prevent that using `tag_on_failure => []`. To remove it you could use

```
mutate { remove_tag => ["_jsonparsefailure"] }
```

---

<div class="post-metadata">

**Author:** ![itschobot](https://avatars.discourse-cdn.com/v4/letter/i/439d5e/32.png) [@itschobot](https://discuss.elastic.co/u/itschobot)\
**Post date:** [February 26, 2022, 3:37am UTC](https://discuss.elastic.co/t/0-jsonparsefailure-how-do-you-remove-this/298225/3 "2022-02-26T03:37:08Z")

</div>

what would be the causation of this error? where could I look?

I have one now with \_mutate\_error as well, but currently doing this.

```auto
mutate { remove_tag => ["_jsonparsefailure" ,"_mutate_error"] }
```

---

<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:** [February 26, 2022, 3:41am UTC](https://discuss.elastic.co/t/0-jsonparsefailure-how-do-you-remove-this/298225/4 "2022-02-26T03:41:51Z")

</div>

> [@itschobot](#):
>
> what would be the causation of this error? where could I look?

The json filter or codec will have logged "exception=\>#\<LogStash::Json::ParserError:" with a more specific error message in the logstash log.

---

<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:** [March 26, 2022, 3:42am UTC](https://discuss.elastic.co/t/0-jsonparsefailure-how-do-you-remove-this/298225/5 "2022-03-26T03:42:34Z")

</div>

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