java-rsyslog.yml 5.26 KB
# rsyslog config for java gateway


- hosts: java-nginx
  vars:
    rsyslog_module: nginx
    rsyslog_files:
      - api.yoho.cn_access
      - api.yoho.cn_error
      - nginx_error
      - access_union
  remote_user: root
  roles:
    - java-rsyslog


- hosts: java-gateway
  vars:
    rsyslog_module: gateway
    rsyslog_files:
      - alipay-err
      - alipay
      - alipayNew   
      - alipaywap-err
      - alipaywap
      - applepay
      - applepay-err
      - crfpay-err
      - crfpay
      - debug
      - paymentBD
      - pcpay
      - pcpay-err
      - qqwallet
      - qqwallet-err
      - recommend
      - wechatwap
      - wechatwap-err
      - wechatpay
      - wechatpay-err
      - warn-log
      - unionpay
      - unionpay-err
      - unionmpospay
      - unionmpospay-err
      - login_low_clientType_record
      - clearcache
      - trace
      - consumer-clearcache
      - search_invoke_log
      - alipayNew
      - gateway_access
      - static_log
      - gc
      - search_static_log
      - memcache_montior_log
      - IP_LOGIN_MORE_LOG

  remote_user: root
  roles:
    - java-rsyslog


# rsyslog config for java order
- hosts: java-order
  vars:
    rsyslog_module: order
    rsyslog_files:
      - add-payment-compute
      - alipay
      - alipay-err
      - applepay-err
      - applepay
      - calc-log
      - calc-query
      - change-refund-handle
      - collect-log
      - crfpay
      - offline-extern
      - offline-shopcart
      - offline-cashpay
      - debug-log
      - wechatpay
      - wechatpay-err
      - warn-log
      - union-push
      - unionpaympos
      - unionpaympos-err
      - unionpay
      - unionpay-err
      - request-timeout
      - qqwallet
      - qqwallet-err
      - pcpay
      - pcpay-err
      - payment-bd
      - pay-confirm
      - order-submit
      - order-split
      - order-process-record
      - order-event
      - order-compensate
      - order-close
      - order-audit
      - external-call
      - database-timeout
      - crfpay-err
      - trace
      - consumer-clearcache
      - database-stat
      - mq-producer
      - cart-query
      - mq-consumer
      - coupon-match
      - request-stat

  remote_user: root
  roles:
    - java-rsyslog


# rsyslog config for java promotion
- hosts: java-promotion
  vars:
    rsyslog_module: promotion
    rsyslog_files:
      - acquire-coupons
      - bs-error-coupons
      - debug-log
      - info
      - use-coupons
      - warn-log
      - coupon-match
      - database-timeout
      - trace
      - redis-timeout
      - database-stat
      - request-stat
      - mq-consumer
      - request-timeout
      - cache-statistic

    
  remote_user: root
  roles:
    - java-rsyslog


# rsyslog config for java user
- hosts: java-users
  vars:
    rsyslog_module: users
    rsyslog_files:
      - bind-mobile
      - browerSync
      - change-bind-mobile
      - debug-log
      - login
      - phone-valid
      - instalment
      - register
      - register-big-data
      - signinbyopenid-login
      - user-import
      - user_sign
      - valid_pwd_err_log
      - verify_student
      - warn-log
      - yohocoin_red
      - database-timeout
      - sso-relation-login
      - trace
      - browseSync
      - redis_operation
      - database-stat
      - request-stat
      - user-cache
      - request-timeout

  remote_user: root
  roles:
    - java-rsyslog


# rsyslog config for java resources
- hosts: java-resources
  vars:
    rsyslog_module: resoucres
    rsyslog_files:
      - debug-log
      - warn-log
      - database-timeout
      - request-timeout
      - database-stat
      - request-stat
      - trace
    
  remote_user: root
  roles:
    - java-rsyslog


# rsyslog config for java product
- hosts: java-product
  vars:
    rsyslog_module: product
    rsyslog_files:
      - debug-log
      - warn-log
      - storage
      - externalCallLog
      - interface-log
      - consumer-clearcache
      - clearcache
      - trace
      - database-timeout
      - redis-timeout
      - database-stat
      - database-Statistic
      - request-stat
      - mq-consumer
      - redis-Statistic
      - ehcache-Statistic
      - request-timeout
      - redis-warn
      - cache-Statistic

  remote_user: root
  roles:
    - java-rsyslog

# rsyslog config for java message
- hosts: java-message
  vars:
    rsyslog_module: message
    rsyslog_files:
      - debug-log
      - warn-log
      - smsSend
      - database-timeout
      - request-timeout
      - request-stat
      - trace
      - redisSelectUser
    
  remote_user: root
  roles:
    - java-rsyslog

# rsyslog config for java sns
- hosts: java-sns
  vars:
    rsyslog_module: sns
    rsyslog_files:
      - debug
      - warn
      - sns-guang-log
      - mq-consumer
      - database-timeout
      - request-timeout
      - database-stat
      - trace
    
  remote_user: root
  roles:
    - java-rsyslog


- hosts: java-uic
  vars:
    rsyslog_module: uic
    rsyslog_files:
      - debug-log
      - bind-log
      - login-log
      - register-log
      - warn-log
      - userImport-log
      - uic-login-log
      - uic-access-log
      - session-log
      - verifiedGraphic-log
      - database-timeout
      - trace
      - database-stat
      - request-stat
      - kpi-event
      - request-timeout

  remote_user: root
  roles:
    - java-rsyslog