Giter VIP home page Giter VIP logo

quasar's People

Contributors

adobe-dx-seceng avatar basepi avatar cedwards avatar dmcteer avatar jettero avatar mew1033 avatar zxjinn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

quasar's Issues

Splunk indexer should be able to accept an array of parameters

For Pulsar and Nova, but this error is just for Nova

When specifying an array of indexers it throws an error

[INFO    ] Options: {"index": "hubble_audit", "token": "TOOOP-SEEC-REET-TOE-KENNNNN", "sourcetype": "hubble_audit", "indexer": ["hostname1.fqdn.tld", "hostname2.fqdn.tld"]}
[ERROR   ] Unhandled exception running hubble.audit
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/salt/utils/schedule.py", line 557, in handle_func
    self.returners[ret_str](ret)
  File "/var/cache/salt/minion/extmods/returners/splunk_nova_return.py", line 49, in returner
    hec = http_event_collector(http_event_collector_key, http_event_collector_host)
  File "/var/cache/salt/minion/extmods/returners/splunk_nova_return.py", line 204, in __init__
    self.server_uri = "".join(buildURI)
TypeError: sequence item 1: expected string, list found

I would expect it to jump randomly between all entries for load balancing, until one is found that works (doesn't timeout or otherwise throw an error).

Splunk Nebula returner doesn't work when nebula is run with verbose=True

2016-08-22 16:20:31,430 [salt.minion                                          ][ERROR   ][496] The return failed for job 20160822162030254018 string indices must be integers, not str
2016-08-22 16:20:31,431 [salt.minion                                          ][ERROR   ][496] Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/salt/minion.py", line 1418, in _thread_return
    )](ret)
  File "/var/cache/salt/minion/extmods/returners/splunk_nebula_return.py", line 59, in returner
    for query_result in query_results['data']:
TypeError: string indices must be integers, not str

splunk_nova_return stacktraces when handed an error from nova

If nova can't fetch the data, it will return (False, 'No nova modules/data have been loaded.โ€™), which stacktraces splunk_nova_return:

[ERROR   ] An un-handled exception was caught by salt's global exception handler:
AttributeError: 'tuple' object has no attribute 'get'
Traceback (most recent call last):
  File "hubble.py", line 5, in <module>
  File "hubblestack/daemon.py", line 52, in run
  File "hubblestack/daemon.py", line 75, in main
  File "hubblestack/daemon.py", line 249, in run_function
  File "/opt/hubble/hubble-libs/hubblestack/extmods/returners/splunk_nova_return.py", line 90, in returner
    for fai in data.get('Failure', []):
AttributeError: 'tuple' object has no attribute 'get'
Traceback (most recent call last):
  File "hubble.py", line 5, in <module>
  File "hubblestack/daemon.py", line 52, in run
  File "hubblestack/daemon.py", line 75, in main
  File "hubblestack/daemon.py", line 249, in run_function
  File "/opt/hubble/hubble-libs/hubblestack/extmods/returners/splunk_nova_return.py", line 90, in returner
    for fai in data.get('Failure', []):
AttributeError: 'tuple' object has no attribute 'get'
Failed to execute script hubble

Should be easy to fix, just need to check for the tuple.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.