java-rsyslog.yml 4.7 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
      - alipay-err
      - alipayNew
      - alipaywap
      - alipaywap-err
      - applepay
      - applepay-err
      - clearcache
      - consumer-clearcache
      - crfpay
      - crfpay-err
      - debug
      - gateway_access
      - gc
      - IP_LOGIN_MORE_LOG
      - login_low_clientType_record
      - memcache_montior_log
      - paymentBD
      - pcpay
      - pcpay-err
      - qqwallet
      - qqwallet-err
      - recommend
      - search_invoke_log
      - search_static_log
      - static_log
      - unionmpospay
      - unionmpospay-err
      - unionpay
      - unionpay-err
      - warn-log
      - wechatpay
      - wechatpay-err
      - wechatwap
      - wechatwap-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
      - applepay-err
      - calc-log
      - cart-query
      - change-refund-handle
      - collect-log
      - consumer-clearcache
      - coupon-match
      - crfpay
      - crfpay-err
      - debug-log
      - external-call
      - mq-producer
      - mq-consumer
      - offline-cashpay
      - offline-extern
      - offline-shopcart
      - order-audit
      - order-close
      - order-compensate
      - order-event
      - order-process-record
      - order-split
      - order-submit
      - pay-confirm
      - payment-bd
      - pcpay
      - pcpay-err
      - qqwallet
      - qqwallet-err
      - request-timeout
      - unionpay
      - unionpay-err
      - unionpaympos
      - unionpaympos-err
      - union-push
      - warn-log
      - wechatpay
      - wechatpay-err

  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
      - warn-log
      - use-coupons
      - acquire-coupons
      - bs-error-coupons
      - debug-log
      - warn-log
      - use-coupons
      - acquire-coupons
      - bs-error-coupons
      - debug-log
    
  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
      - browseSync
      - sso-relation-login
      - user-import
      - redis_operation
      - bind-mobile
      - signinbyopenid-login
      - user-cache
      - debug-log
      - register-big-data
      - warn-log
      - change-bind-mobile
      - phone-valid
    
  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
      - consumer-clearcache
      - clearcache
      - database-Statistic
      - interface-log
      - cache-Statistic
      - redis-Statistic
      - ehcache-Statistic
      - redis-warn
    
  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
      - 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
    
  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