Loggers & Events

Hello,

Are the loggers and their corresponding events in this chart correct?

Thanks

I got these list from awx-manage shell. Now only one question left to whom may interested. Are these events are exist ? I know login ones are exist but not sure about all.

pkg_resources.extern.packaging.tags
pkg_resources.extern.packaging
pkg_resources.extern
pkg_resources
django.dispatch
django
concurrent.futures
concurrent
asyncio
pyasn1
django_auth_ldap
django.utils.autoreload
django.utils
django.template
django.db.models
django.db
django.db.backends
django.request
django.server
django.test
oauthlib
django.db.backends.base
psycopg.pq
psycopg
psycopg.waiting
psycopg.generators
psycopg.transaction
django.db.backends.schema
awx.conf.registry
awx.conf
awx
awx.main.utils
awx.main
awx.main.utils.encryption
urllib3.util.retry
urllib3.util
urllib3
urllib3.connection
urllib3.response
urllib3.connectionpool
urllib3.poolmanager
charset_normalizer
requests
awx.main.utils.licensing
django_guid
opentelemetry.context
opentelemetry
opentelemetry.trace.status
opentelemetry.trace
opentelemetry.trace.span
opentelemetry.util._providers
opentelemetry.util
opentelemetry._logs._internal
opentelemetry._logs
grpc._cython.cygrpc
grpc._cython
grpc
grpc._observability
grpc._common
grpc.aio._call
grpc.aio
opentelemetry.attributes
opentelemetry.sdk.resources
opentelemetry.sdk
opentelemetry.sdk.trace.sampling
opentelemetry.sdk.trace
opentelemetry.exporter.otlp.proto.common._internal
opentelemetry.exporter.otlp.proto.common
opentelemetry.exporter.otlp.proto
opentelemetry.exporter.otlp
opentelemetry.exporter
opentelemetry.sdk._logs._internal
opentelemetry.sdk._logs
opentelemetry.metrics._internal.instrument
opentelemetry.metrics._internal
opentelemetry.metrics
opentelemetry.sdk.metrics._internal.instrument
opentelemetry.sdk.metrics._internal
opentelemetry.sdk.metrics
opentelemetry.sdk.metrics._internal.aggregation
opentelemetry.sdk.metrics._internal.export
opentelemetry.sdk.metrics._internal.view
opentelemetry.sdk.metrics._internal._view_instrument_match
opentelemetry.sdk.metrics._internal.metric_reader_storage
opentelemetry.util.re
opentelemetry.exporter.otlp.proto.grpc.exporter
opentelemetry.exporter.otlp.proto.grpc
opentelemetry.sdk._logs._internal.export
opentelemetry.exporter.otlp.proto.http._log_exporter
opentelemetry.exporter.otlp.proto.http
ansible_base
daphne
rest_framework.request
rest_framework
py.warnings
py
awx.conf.settings
awx.main.commands.run_callback_receiver
awx.main.commands
awx.main.dispatch
awx.main.consumers
awx.main.rsyslog_configurer
awx.main.cache_clear
awx.main.ws_heartbeat
awx.main.wsrelay
awx.main.commands.inventory_import
awx.main.tasks
awx.main.analytics
awx.main.scheduler
awx.main.access
awx.main.signals
awx.api.permissions
awx.api
awx.analytics
awx.analytics.broadcast_websocket
awx.analytics.performance
awx.analytics.job_lifecycle
social
system_tracking_migrations
rbac_migrations
django.security.csrf
django.security
MARKDOWN
rest_framework.fields
awx.conf.fields
ansible_base.resource_registry.apps
ansible_base.resource_registry
ansible_base.rbac.managed
ansible_base.rbac
ansible_base.rbac.permission_registry
oauthlib.oauth2.rfc6749.endpoints.base
oauthlib.oauth2.rfc6749.endpoints
oauthlib.oauth2.rfc6749
oauthlib.oauth2
oauthlib.oauth2.rfc6749.endpoints.authorization
oauthlib.oauth2.rfc6749.endpoints.introspect
oauthlib.oauth2.rfc6749.request_validator
oauthlib.oauth2.rfc6749.grant_types.base
oauthlib.oauth2.rfc6749.grant_types
oauthlib.oauth2.rfc6749.grant_types.authorization_code
oauthlib.oauth2.rfc6749.grant_types.client_credentials
oauthlib.oauth2.rfc6749.grant_types.implicit
oauthlib.oauth2.rfc6749.grant_types.refresh_token
oauthlib.oauth2.rfc6749.grant_types.resource_owner_password_credentials
oauthlib.oauth2.rfc6749.endpoints.revocation
oauthlib.oauth2.rfc6749.endpoints.token
oauthlib.oauth2.rfc6749.endpoints.metadata
oauthlib.oauth2.rfc6749.endpoints.resource
oauthlib.oauth2.rfc8628
oauth2_provider.models
oauth2_provider
openid.oidutil
openid
openid.kvform
crum
ansible_base.lib.utils.settings
ansible_base.lib.utils
ansible_base.lib
ansible_base.lib.utils.create_system_user
ansible_base.lib.utils.encryption
ansible_base.lib.utils.models
ansible_base.lib.abstract_models.common
ansible_base.lib.abstract_models
ansible_base.rbac.models
ansible_base.rbac.management
awx.main.fields
awx.main.migrations._dab_rbac
awx.main.migrations
awx.main.models.rbac
awx.main.models
awx.main.utils.execution_environments
awx.main.models.mixins
awx.main.models.unified_jobs
awx.main.models.credential
botocore
botocore.compat
bcdocs
botocore.awsrequest
urllib3.contrib.pyopenssl
urllib3.contrib
botocore.httpsession
botocore.utils
botocore.waiter
botocore.parsers
botocore.history
botocore.hooks
botocore.response
botocore.httpchecksum
botocore.endpoint
botocore.auth
botocore.endpoint_provider
botocore.regions
botocore.args
botocore.compress
botocore.tokens
botocore.credentials
botocore.discovery
botocore.paginate
botocore.retries.special
botocore.retries
botocore.retries.standard
botocore.retries.adaptive
botocore.client
botocore.retryhandler
botocore.handlers
botocore.monitoring
botocore.configprovider
botocore.loaders
botocore.session
boto3.resources.model
boto3.resources
boto3
boto3.resources.action
boto3.resources.base
boto3.resources.collection
boto3.resources.factory
azure.core.pipeline.policies._base
azure.core.pipeline.policies
azure.core.pipeline
azure.core
azure
azure.core.exceptions
azure.core.pipeline.transport._base
azure.core.pipeline.transport
azure.core.pipeline.policies._redirect
azure.core.pipeline.policies._retry
azure.core.pipeline.policies._distributed_tracing
azure.core.pipeline.policies._universal
azure.core.pipeline.policies._retry_async
azure.core.pipeline._base
azure.core._pipeline_client
azure.core._pipeline_client_async
azure.keyvault.secrets._generated._serialization
azure.keyvault.secrets._generated
azure.keyvault.secrets
azure.keyvault
azure.core.paging
azure.core.async_paging
azure.core.polling._poller
azure.core.polling
azure.core.polling._async_poller
azure.keyvault.secrets._shared._polling
azure.keyvault.secrets._shared
msal.oauth2cli.authcode
msal.oauth2cli
msal
msal.oauth2cli.assertion
msal.authority
msal.mex
msal.wstrust_request
msal.token_cache
msal.telemetry
msal.region
msal.cloudshell
msal.application
azure.identity._internal.utils
azure.identity._internal
azure.identity
azure.identity._persistent_cache
azure.identity._internal.decorators
azure.identity._internal.interactive
azure.identity._internal.get_token_mixin
azure.identity._credentials.azure_powershell
azure.identity._credentials
azure.identity._credentials.chained
azure.identity._credentials.environment
azure.identity._credentials.managed_identity
azure.identity._internal.linux_vscode_adapter
azure.identity._credentials.default
msrest.pipeline
msrest
msrest.exceptions
msrest.universal_http
msrest.universal_http.requests
msrest.http_logger
msrest.pipeline.universal
oauthlib.oauth1.rfc5849.signature
oauthlib.oauth1.rfc5849
oauthlib.oauth1
oauthlib.oauth1.rfc5849.endpoints.access_token
oauthlib.oauth1.rfc5849.endpoints
oauthlib.oauth1.rfc5849.endpoints.request_token
oauthlib.oauth1.rfc5849.endpoints.resource
oauthlib.oauth1.rfc5849.endpoints.signature_only
requests_oauthlib.oauth1_auth
requests_oauthlib
requests_oauthlib.oauth1_session
requests_oauthlib.oauth2_session
msrest.pipeline.requests
msrest.service_client
msrest.serialization
msrestazure.tools
msrestazure
msrestazure.azure_configuration
msrestazure.azure_cloud
awx.main.managers
awx.analytics.job_events
awx.main.models.events
slack_sdk.models.blocks.basic_components
slack_sdk.models.blocks
slack_sdk.models
slack_sdk
slack_sdk.models.blocks.block_elements
slack_sdk.models.blocks.blocks
slack_sdk.models.views
slack_sdk.proxy_env_variable_loader
awx.main.notifications.slack_backend
awx.main.notifications
twilio.http_client
twilio
awx.main.notifications.twilio_backend
awx.main.notifications.pagerduty_backend
awx.main.notifications.webhook_backend
awx.main.notifications.mattermost_backend
awx.main.notifications.grafana_backend
awx.main.notifications.rocketchat_backend
jaraco.stream.buffer
jaraco.stream
jaraco
irc.client
irc
awx.main.notifications.irc_backend
awx.main.notifications.awssns_backend
awx.main.models.notifications
awx.main.models.jobs
awx.main.utils.ansible
awx.main.models.inventory
awx.main.models.ad_hoc_commands
awx.main.models.schedule
ansible-runner.display
ansible-runner
ansible-runner.debug
base64io
awx.main.models.ha
awx.main.models.workflow
awx.sso.common
awx.sso
awx.main.models.oauth
awx.main.tasks.host_metrics
git.util
git
git.config
git.cmd
git.objects.submodule.base
git.objects.submodule
git.objects
git.objects.commit
git.objects.submodule.root
git.remote
git.repo.base
git.repo
awx.main.tasks.signals
awx.main.tasks.utils
awx.main.tasks.callback
filelock
awx.main.tasks.receptor
awx.main.tasks.facts
awx.analytics.system_tracking
setuptools.extern.packaging.tags
setuptools.extern.packaging
setuptools.extern
setuptools
setuptools.config._apply_pyprojecttoml
setuptools.config
setuptools.config.pyprojecttoml
ansible_base.resources_api.rest_client
ansible_base.resources_api
awx.main.utils.reload
awx.main.tasks.system
awx.main.tasks.jobs
awx.analytics.activity_stream
awx.conf.signals
awx.main.conf
ansible_base.rbac.caching
ansible_base.rbac.triggers
ansible_base.lib.dynamic_config.dynamic_urls
ansible_base.lib.dynamic_config
ansible_base.jwt_consumer.common.cache
ansible_base.jwt_consumer.common
ansible_base.jwt_consumer
ansible_base.jwt_consumer.common.cert
ansible_base.jwt_consumer.common.auth
ansible_base.jwt_consumer.awx.auth
ansible_base.jwt_consumer.awx
awx.api.authentication
ansible_base.lib.utils.views.ansible_base
ansible_base.lib.utils.views
ansible_base.lib.utils.views.django_app_api
ansible_base.jwt_consumer.common.util
ansible_base.lib.uitls.requests
ansible_base.lib.uitls
awx.main.scheduler.dependency_graph
awx.api.serializers
awx.api.generics
ansible_base.jwt_consumer.views
ansible_base.jwt_consumer.urls
ansible_base.serializers
ansible_base.resource_registry.views
ansible_base.resource-urls
ansible_base.lib.routers.association_resource_router
ansible_base.lib.routers
ansible_base.rbac.api.permissions
ansible_base.rbac.api
ansible_base.lib.serializers.validation
ansible_base.lib.serializers
ansible_base.lib.serializers.common
awx.api.views.mixin
awx.api.views
awx.api.views.root
awx.api.views.analytics
awx.api.views.organization
awx.api.views.webhooks
awx.sso.views

Anyone knows how these handlers works?

LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'filters': {
        'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'},
        'require_debug_true': {'()': 'django.utils.log.RequireDebugTrue'},
        'require_debug_true_or_test': {'()': 'awx.main.utils.RequireDebugTrueOrTest'},
        'external_log_enabled': {'()': 'awx.main.utils.filters.ExternalLoggerEnabled'},
        'dynamic_level_filter': {'()': 'awx.main.utils.filters.DynamicLevelFilter'},
        'guid': {'()': 'awx.main.utils.filters.DefaultCorrelationId'}
    },
    'formatters': {
        'simple': {'format': '%(asctime)s %(levelname)-8s [%(guid)s] %(name)s %(message)s'},
        'json': {'()': 'awx.main.utils.formatters.LogstashFormatter'},
        'timed_import': {'()': 'awx.main.utils.formatters.TimeFormatter', 'format': '%(relativeSeconds)9.3f %(levelname)-8s %(message)s'},
        'dispatcher': {'format': '%(asctime)s %(levelname)-8s [%(guid)s] %(name)s PID:%(process)d %(message)s'}
    },
    'handlers': {
        'console': {
            '()': 'logging.StreamHandler',
            'level': 'DEBUG',
            'filters': ['dynamic_level_filter', 'guid'],
            'formatter': 'simple'
        },
        'null': {'class': 'logging.NullHandler'},
        'file': {'class': 'logging.NullHandler', 'formatter': 'simple'},
        'syslog': {
            'level': 'WARNING',
            'filters': ['require_debug_false'],
            'class': 'logging.NullHandler',
            'formatter': 'simple'
        },
        'inventory_import': {
            'level': 'DEBUG',
            'class': 'logging.StreamHandler',
            'formatter': 'timed_import'
        },
        'external_logger': {
            'class': 'awx.main.utils.handlers.RSysLogHandler',
            'formatter': 'json',
            'address': '/var/run/awx-rsyslog/rsyslog.sock',
            'filters': ['external_log_enabled', 'dynamic_level_filter', 'guid']
        },
        'otel': {'class': 'logging.NullHandler'},
        'tower_warnings': {
            'filters': ['dynamic_level_filter', 'guid'],
            'formatter': 'simple',
            'class': 'logging.NullHandler'
        },
        'callback_receiver': {
            'filters': ['dynamic_level_filter', 'guid'],
            'formatter': 'simple',
            'class': 'logging.NullHandler'
        },
        'dispatcher': {
            'filters': ['dynamic_level_filter', 'guid'],
            'formatter': 'dispatcher',
            'class': 'logging.NullHandler'
        },
        'wsrelay': {
            'filters': ['dynamic_level_filter', 'guid'],
            'formatter': 'simple',
            'class': 'logging.NullHandler'
        },
        'task_system': {
            'filters': ['dynamic_level_filter', 'guid'],
            'formatter': 'simple',
            'class': 'logging.NullHandler'
        },
        'rbac_migrations': {
            'filters': ['dynamic_level_filter', 'guid'],
            'formatter': 'simple',
            'class': 'logging.NullHandler'
        },
        'job_lifecycle': {
            'filters': ['dynamic_level_filter', 'guid'],
            'formatter': 'simple',
            'class': 'logging.NullHandler'
        },
        'rsyslog_configurer': {
            'filters': ['dynamic_level_filter', 'guid'],
            'formatter': 'simple',
            'class': 'logging.NullHandler'
        },
        'cache_clear': {
            'filters': ['dynamic_level_filter', 'guid'],
            'formatter': 'simple',
            'class': 'logging.NullHandler'
        },
        'ws_heartbeat': {
            'filters': ['dynamic_level_filter', 'guid'],
            'formatter': 'simple',
            'class': 'logging.NullHandler'
        }
    },
    'loggers': {
        'django': {'handlers': ['console']},
        'django.request': {
            'handlers': ['console', 'file', 'tower_warnings'],
            'level': 'WARNING'
        },
        'ansible_base': {'handlers': ['console', 'file', 'tower_warnings']},
        'daphne': {
            'handlers': ['console', 'file', 'tower_warnings'],
            'level': 'INFO'
        },
        'rest_framework.request': {
            'handlers': ['console', 'file', 'tower_warnings'],
            'level': 'WARNING',
            'propagate': False
        },
        'py.warnings': {'handlers': ['console']},
        'awx': {
            'handlers': ['console', 'file', 'tower_warnings', 'external_logger'],
            'level': 'DEBUG'
        },
        'awx.conf': {'handlers': ['null'], 'level': 'WARNING'},
        'awx.conf.settings': {'handlers': ['null'], 'level': 'WARNING'},
        'awx.main': {'handlers': ['null']},
        'awx.main.commands.run_callback_receiver': {
            'handlers': ['callback_receiver'],
            'level': 'INFO'
        },
        'awx.main.dispatch': {'handlers': ['dispatcher']},
        'awx.main.consumers': {
            'handlers': ['console', 'file', 'tower_warnings'],
            'level': 'INFO'
        },
        'awx.main.rsyslog_configurer': {'handlers': ['rsyslog_configurer']},
        'awx.main.cache_clear': {'handlers': ['cache_clear']},
        'awx.main.ws_heartbeat': {'handlers': ['ws_heartbeat']},
        'awx.main.wsrelay': {'handlers': ['wsrelay']},
        'awx.main.commands.inventory_import': {
            'handlers': ['inventory_import'],
            'propagate': False
        },
        'awx.main.tasks': {
            'handlers': ['task_system', 'external_logger', 'console'],
            'propagate': False
        },
        'awx.main.analytics': {
            'handlers': ['task_system', 'external_logger', 'console'],
            'level': 'INFO',
            'propagate': False
        },
        'awx.main.scheduler': {
            'handlers': ['task_system', 'external_logger', 'console'],
            'propagate': False
        },
        'awx.main.access': {'level': 'INFO'},
        'awx.main.signals': {'level': 'INFO'},
        'awx.api.permissions': {'level': 'INFO'},
        'awx.analytics': {
            'handlers': ['external_logger'],
            'level': 'INFO',
            'propagate': False
        },
        'awx.analytics.broadcast_websocket': {
            'handlers': ['console', 'file', 'wsrelay', 'external_logger'],
            'level': 'INFO',
            'propagate': False
        },
        'awx.analytics.performance': {
            'handlers': ['console', 'file', 'tower_warnings', 'external_logger'],
            'level': 'DEBUG',
            'propagate': False
        },
        'awx.analytics.job_lifecycle': {
            'handlers': ['console', 'job_lifecycle'],
            'level': 'DEBUG',
            'propagate': False
        },
        'django_auth_ldap': {
            'handlers': ['console', 'file', 'tower_warnings'],
            'level': 'DEBUG'
        },
        'social': {
            'handlers': ['console', 'file', 'tower_warnings'],
            'level': 'DEBUG'
        },
        'system_tracking_migrations': {
            'handlers': ['console', 'file', 'tower_warnings'],
            'level': 'DEBUG'
        },
        'rbac_migrations': {
            'handlers': ['console', 'file', 'tower_warnings'],
            'level': 'DEBUG'
        }
    }
}

Are you ok? What are you trying to do? Your second post looks like a big list of python modules and your questions don’t make any sense.

If you dont understand yet you are qualified.

A- You can ask me to elaborate.
B- Pass.

Thanks.

1 Like