java-rsyslog.yml 6.35 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
      - shopping-ticket

  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
      - shopping-ticket
      - mq-consumer
      - mq-producer
    
  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
      - request-timeout
      - request-stat
      - user_redpac
    
  remote_user: root
  roles:
    - java-rsyslog


# rsyslog config for java resources
- hosts: java-resources
  vars:
    rsyslog_module: resources
    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

- hosts: java-message
  vars:
    rsyslog_module: yoho-message-controller
    rsyslog_files:
      - debug-log
      - gc
      - miniAllUidSend
      - warn-log

  remote_user: root
  roles:
    - java-rsyslog

- hosts: java-message
  vars:
    rsyslog_module: yoho-message-sender
    rsyslog_files:
      - debug-log
      - gc
      - inboxMsgSend
      - miniMsgSend
      - smsSend
      - wechatMsgSend
      - warn-log

  remote_user: root
  roles:
    - java-rsyslog


- hosts: java-message
  vars:
    rsyslog_module: task
    rsyslog_files:
      - debug
      - gc
      - warn

  remote_user: root
  roles:
    - java-rsyslog

- hosts: java-message
  vars:
    rsyslog_module: push
    rsyslog_files:
      - debug
      - android_push_failed
      - android_push
      - error
      - gc
      - ios_push
      - push-consumer
      - push-important
      - push-producer
      - warn
      
  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
      - request-timeout
      - request-stat

  remote_user: root
  roles:
    - java-rsyslog

- hosts: java-union
  vars:
    rsyslog_module: nginx
    rsyslog_files:
      - nginx_error
      - access_union
  remote_user: root
  roles:
    - java-rsyslog

- hosts: java-union
  vars:
    rsyslog_module: union
    rsyslog_files:
      - ACTIVE_DINGDANG
      - ACTIVE_UNION
      - CLICK_UNION
      - debug-log
      - gc
      - IP_MATCH
      - NOCHECK_ACTIVE
      - request-stat
      - request-timeout
      - UDID_POOL
      - warn-log
      - cps_settlement
      - cps_mq
  remote_user: root
  roles:
    - java-rsyslog