Place a file in cache or property source and read it in Groovy Script
Hello support team,
We are trying to place a JSON file in Cache or Property Source and trying to read the same.Can you please let us know how we can be able to achieve it? We are trying to load the class in Script using scriptCache = this.class.classLoader.loadClass("com.santaba.agent.util.script.ScriptCache").getCache(); but we are getting errors while doing the same.Can you please let us know,how we will be able to know the version of collector we are using ? Where can we find the same ?
Also,we are unable to read inputs from a JSON File present in the Property Source.Please assist us with the same.
LM User
·4 years agoI think that's the exact use case for script caching.
Mike Moniz
·5 years agoYou can check your collector version under Support > Collectors. Appears this feature requires an EA (early release) Collector version.
LM User
·5 years agoYes, you can write JSON content to a cached token since you can write any string object. I'm not sure what the character limit might be.
LM User
·5 years agoIf you need support, you should be reaching out to support through their channels. The community does not provide support on the product.
That said, have you tried the method described here?