I'm brand new to SumoLogic and couldn't find the answer to my question after doing a few searches here.
I'm trying to script installation of the Collector agent for Windows, and I can't seem to get the sources aspect correct.
The command line instructions say to use:
SumoCollector_windows-x64_19_253-14.exe -console -q "-Vsumo.accessid=xxxxx" "-Vsumo.accesskey=xxmorexxxx" "-Vsources=filepath"
The problem I have is with the -Vsources switch. I created a JSON file and put it in the directory where I ran the installer exe, but it gave the error that the file wasn't in the Program Files/Sumo Logic COllector/ directory.
Since that directory gets created during the setup, I wasn't sure how to get the json file's there, so in the command like for -vsources, I referenced the location of the json file directly. However, it didn't actually create the sources in the Dashboard. It only added the collectior and the configuration files user.properties still reference the actual initial location of the json file.
I thought that creating this json file and using it during installation would cause the installer to create the sources during installation, but that doesn't seem to work. How do I create an installer script that will create the desired sources during the installation correctly?
Please sign in to leave a comment.