Kibana JSON input to exclude data in one chart

In the Discover view you add the filters you want and then store it as a saved search. When you create the visualisation you then choose this saved search instead of an index pattern when specifying what it is based on.