Collector Scripted Installation - Sources?

Comments

4 comments

  • Avatar
    Kevin Keech

    Hi Steven,

    Few initial things to check. 

    1.) Make sure your JSON file is UTF-8 encoded. The Collector may not recognize the file if it's in another encoding (Windows likes to use UTF-16)

    3.) The supplied JSON is in a valid JSON format required.  

    2.) The path supplied in the -Vsources or -VsyncSources need to be escaped with double backslashes on Windows. So, for example, the path may need to be set as the following in your install command:

    -Vsources=C:\\Program Files\\Sumo Logic Collector\\sources.json

    Note: The -Vsources command is only used to create the Sources at the time of the initial install/registration of the Collector. Adding this file after the Collector is registered will have no effect. If you want to use the JSON file to manage Sources after install time you will have needed to use the -VsyncSources parameter at the time of the install OR you will need to change the parameter name in your user.properties to "syncSources=" and set the Collector to File Managed mode (setting under the Collector config in the UI) and then restart the Collector. 

    There are some additional troubleshooting steps in the following KB and hopefully one of these will help. 

    https://support.sumologic.com/hc/en-us/articles/360012911033-Collector-source-configuration-not-getting-updated-per-syncSources-json-config-file




    0
    Comment actions Permalink
  • Avatar
    Steven Robinson

    Thanks for the feedback, but there is still the problem of the path not existing yet at the time the installer is run. The Installer creates the directory. How do I get this json file packaged into the installer?

    C:\\Program Files\\Sumo Logic Collector\\
    0
    Comment actions Permalink
  • Avatar
    Kevin Keech

    You'll need to place this file in an existing path and point your parameters to that path. You could also pre-create that path before running the installer.  

    0
    Comment actions Permalink
  • Avatar
    Steven Robinson

    Thanks for the clarification.

    0
    Comment actions Permalink

Please sign in to leave a comment.