SumoLogic / sumologic-gsuitealertcenter

Collection for G Suite Alert Center
Apache License 2.0
2 stars 5 forks source link

Error with Gsuite integration #8

Open YorchN opened 4 years ago

YorchN commented 4 years ago

When I am Configuring the script based collection for G Suite Alert Center if i test this command "python -m sumogsuitealertscollector.main" I get this message with errors :

root@vagrant-yorch:~# python -m sumogsuitealertscollector.main
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 163, in _run_module_as_main
    mod_name, _Error)
  File "/usr/lib/python2.7/runpy.py", line 119, in _get_module_details
    code = loader.get_code(mod_name)
  File "/usr/lib/python2.7/pkgutil.py", line 281, in get_code
    self.code = compile(source, self.filename, 'exec')
  File "/usr/local/lib/python2.7/dist-packages/sumogsuitealertscollector/main.py", line 73
    'filter': f'''create_time >= \"{convert_epoch_to_utc_date(start_time_epoch, self.DATE_FORMAT)}\" AND create_time <= \"{convert_epoch_to_utc_date(end_time_epoch, self.DATE_FORMAT)}\" AND type = \"{alert_type}\"''',
                                                                                                                                                                                                                       ^
SyntaxError: invalid syntax
root@vagrant-yorch:~#
himanshu219 commented 4 years ago

can you try using python3?