opened
jamtur01
username_0
Run:

```bash
amtool --alertmanager.url=http://localhost:9093 silence -o json > silence.json
```

Contents of `silence.json`

```json
[{"id":"0430a422-3463-42cd-b48b-d6ca2dea6cfb","matchers":[{"name":"severity","value":"critical","isRegex":false}],"startsAt":"2018-01-02T18:36:22.012871381Z","endsAt":"2018-01-02T21:29:53.922Z","updatedAt":"2018-01-02T18:36:22.012882047Z","createdBy":"Werner Heisenberg","comment":"Silence is a virtue","status":{"state":"active"}}]
```

Try to re-import:

```bash
amtool --alertmanager.url=http://localhost:9093 silence import silence.json
Error: [bad_data] bad matcher format
```

Expected the import to work...

version:

```
alertmanager, version 0.12.0 (branch: HEAD, revision: fc33cc78036f82ef8d4734c197a96f7cb6c952a3)
  build user:       root@c9169eb10d06
  build date:       20171215-14:14:51
  go version:       go1.9.2
```

alertmanager logs:

```
level=error ts=2018-01-02T18:58:24.285561981Z caller=api.go:780 msg="API error" err="bad_data: bad matcher format"
```
[amtool] Import of silences not working
issue
created
stuartnelson3
username_1
I wasn't able to reproduce this unfortunately. I used the contents of your `silence.json` (updating the times), and it worked. I also did the whole process of creating a silence, exporting it, wiping the data, and then importing it.
comment
closed
jamtur01
username_0
issue
created
jamtur01
username_0
Okay - I'll try to see if I can narrow down why it might be impacting me. I'll re-open if I can replicate it with further information.
comment