java-rsyslog.yml 3.89 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

  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

  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
    
  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
    
  remote_user: root
  roles:
    - java-rsyslog


# rsyslog config for java resources
- hosts: java-resources
  vars:
    rsyslog_module: resoucres
    rsyslog_files:
      - debug-log
      - warn-log
    
  remote_user: root
  roles:
    - java-rsyslog

# rsyslog config for java resources
- hosts: java-resources
  vars:
    rsyslog_module: resoucres
    rsyslog_files:
      - debug-log
      - warn-log
    
  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
    
  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
    
  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
    
  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

  remote_user: root
  roles:
    - java-rsyslog