Somehow removing the source ended up fixing the problem. The answer I was looking for was changing stats to eventstats. I only had two backslashes in my search, but because it was in a string in JavaScript it needed 4.
source="G:\\AutoIndex\\spending\\Catalog Report - 8758 Devices.csv"
should've been
source="G:\\\\AutoIndex\\\\spending\\\\Catalog Report - 8758 Devices.csv"
... View more