30 Commits

Author SHA1 Message Date
Ryan Petrello
3c31e0ed16
some more minor callback cleanup and development tweaks 2020-01-27 17:18:09 -05:00
Ryan Petrello
e18639b26b
further optimize conf.settings access when logging is enabled
the callback receiver is still fairly slow when logging is enabled due
to constant setting lookups; this speeds things up considerably

related: https://github.com/ansible/awx/pull/5618
2020-01-22 16:17:33 -05:00
Ryan Petrello
b5225bd80d
record the parent WFJ ID for job events that originate from a WFJT 2019-09-13 08:28:32 -04:00
Ryan Petrello
dfd4cb55e5
add a unique UUID for identifying an AWX installation 2019-04-05 20:10:55 -04:00
AlanCoding
1ae4ed4922
migrate python-logstash license 2019-03-20 15:29:06 -04:00
AlanCoding
8a72a4d39d
Prune the python2 specific logic from log formatter 2019-03-20 15:29:06 -04:00
AlanCoding
127495b53d
remove things from base class that were never used 2019-03-20 15:29:05 -04:00
AlanCoding
017d367749
Remove dependency and insert class 2019-03-20 15:29:05 -04:00
Ryan Petrello
daeeaf413a
clean up unnecessary usage of the six library (awx only supports py3) 2019-01-25 00:19:48 -05:00
Ryan Petrello
1523feee91
send activity stream changes as raw JSON, not a JSON-ified string
see: https://github.com/ansible/awx/issues/2005
2018-11-06 14:28:57 -05:00
AlanCoding
ac20aa954a
Replace logging-related restart with dynamic handler
refactor existing handlers to be the related
  "real" handler classes, which are swapped
  out dynamically by external logger "proxy" handler class

real handler swapout only done on setting change

remove restart_local_services method
get rid of uWSGI fifo file

change TCP/UDP return type contract so that it mirrors
  the request futures object
add details to socket error messages
2018-05-02 09:47:22 -04:00
cclauss
c371b869dc basestring to six.string_types for Python 3 2018-02-09 16:28:36 +01:00
Chris Meyers
e33265e12c add job_id to fact cache log output 2018-01-17 10:19:27 -05:00
AlanCoding
9ee18d02c8 new method of performance logging 2017-10-10 14:38:45 -04:00
AlanCoding
613b9205b8 unit test fixes from 3.1.4 merge 2017-07-10 11:09:56 -04:00
AlanCoding
459c33d272 More consistently provide fields in job_events logger
* Change scheme from using event dict to JobEvent object
* Add processing to grok object fields
* Allow override of provided formatter in case of future issues
2017-07-10 10:34:04 -04:00
AlanCoding
c1ff41fa45 get logging test endpoint to work again
The handler and formatter classes are expecting an object
and the previous method passed a dict, so this change converts
the data into a mock settings object.
2017-06-28 15:10:18 -04:00
Chris Meyers
4c118159ed system_tracking logging for fact cache 2017-06-21 13:45:27 -04:00
Aaron Tan
95b09795a8 Handle 500 error with toggling log aggregator enable. 2017-05-08 15:47:58 -04:00
AlanCoding
8e6020436c modularization of inventory_import command
This separates file parsing logic that was mixed
in with other important code inside of the
inventory import command.

The logic around MemObject data structures was
moved to utils, and the file parsing was moved
to a legacy module. As of this commit, that
module can operate within the Tower environment
but it will be removed.

Also refactor the loggers to fix old bug and
work inside of the different contexts - the
Loader classes, mem objects, and hopefully
the inventory modules eventually.
2017-05-01 14:37:42 -04:00
Ryan Petrello
255d6afb49 fix a traceback if tower doesn't have LOG_AGGREGATOR_TOWER_UUID set
see: #5527
2017-03-07 16:48:51 -05:00
AlanCoding
0046421f05 set log formatter message type 2017-03-07 16:48:48 -05:00
Chris Meyers
427b484075 be forgiving in log api log message fields list 2017-02-21 19:24:27 -05:00
Chris Meyers
e78377dcfc remove formatters dependency on settings 2017-02-21 14:06:20 -05:00
Chris Meyers
60aa22b01b flake8 2017-02-21 11:05:30 -05:00
Chris Meyers
98c8ff3475 rename uuid field to trigger restart on update
* Since we trigger a restart on update, we can also cache the tower uuid
value in the formatter init. So do that.
2017-02-21 10:15:02 -05:00
Chris Meyers
31a79c331d move logger logic to formatter 2017-02-20 14:30:17 -05:00
Chris Meyers
0dada82b4b more general name for performance logger 2017-02-18 09:28:38 -05:00
Chris Meyers
af9975c6af add a new logger, awx.analytics.performance.api
* Used to log API timing information
2017-02-17 15:35:03 -05:00
AlanCoding
7848198b9f New awx.main.utils directory, distributed task to invalidate settings 2016-12-02 14:36:04 -05:00