Difference between revisions of "Sumologic Collector"
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
``` | ``` | ||
$token="YOURTOKEN" | $token="YOURTOKEN" | ||
− | $clobber=False | + | $clobber="False" |
$install_dir="C:\tmp\sumo" | $install_dir="C:\tmp\sumo" | ||
$hostname=((hostname).tolower()) | $hostname=((hostname).tolower()) |
Revision as of 20:51, 19 July 2021
Linux Install
clobber=false token=<token> cd /tmp/ wget "https://collectors.sumologic.com/rest/download/linux/64" -O SumoCollector.sh && chmod +x collector_name=$(hostname | awk '{print tolower($0)}')_events; sudo /opt/sumo/SumoCollector.sh -q -Vclobber=$clobber "-Vcollector.name=${collector_name}" -Vsources=/opt/sumo/ -Vsumo.token_and_url=$token
Windows Install
$token="YOURTOKEN" $clobber="False" $install_dir="C:\tmp\sumo" $hostname=((hostname).tolower()) mkdir -p $install_dir [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls,Tls11,Tls12' Invoke-WebRequest 'https://collectors.us2.sumologic.com/rest/download/win64' -outfile 'C:\Windows\Temp\SumoCollector.exe' Invoke-WebRequest 'https://raw.githubusercontent.com/jeremybusk/sumologic/master/windows_default_sources.json' -outfile "$install_dir\sources.json" C:\Windows\Temp\SumoCollector.exe -console -q "-Vclobber=$clobber" "-Vsumo.token_and_url=$token" "-Vcollector.name=${hostname}_events" "-Vsources=$install_dir\"