Discard data values from Graphite Listener Template

I am pushing “Graphite” data into InfluxDB database by using the Graphite Listener template “[[graphite]]” in the InfluxDB config file.
I understand that the template can segregate and separate the data received at the port, but is there a method where once the data is received one can discard based that it’s either a junk value or doesn’t fit the template?

Does InfluxDB config provide functionality to reject certain data once its received by graphite listener?