|
|
@ -20,10 +20,10 @@ DOCUMENTATION = '''
|
|
|
|
---
|
|
|
|
---
|
|
|
|
module: logentries
|
|
|
|
module: logentries
|
|
|
|
author: Ivan Vanderbyl
|
|
|
|
author: Ivan Vanderbyl
|
|
|
|
short_description: Log aggregation service
|
|
|
|
short_description: Module for tracking logs via logentries.com
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Sends logs to LogEntries in realtime
|
|
|
|
- Sends logs to LogEntries in realtime
|
|
|
|
version_added: "1.0"
|
|
|
|
version_added: "1.6"
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
path:
|
|
|
|
path:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
@ -36,7 +36,7 @@ options:
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: present
|
|
|
|
default: present
|
|
|
|
notes:
|
|
|
|
notes:
|
|
|
|
- Requires the LogEntries agent which can be installed following the instructions at logentires.com
|
|
|
|
- Requires the LogEntries agent which can be installed following the instructions at logentries.com
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
EXAMPLES = '''
|
|
|
|
EXAMPLES = '''
|
|
|
|
- logentries: path=/var/log/nginx/access.log state=present
|
|
|
|
- logentries: path=/var/log/nginx/access.log state=present
|
|
|
@ -124,7 +124,7 @@ def main():
|
|
|
|
elif p["state"] in ["absent", "unfollowed"]:
|
|
|
|
elif p["state"] in ["absent", "unfollowed"]:
|
|
|
|
unfollow_log(module, le_path, logs)
|
|
|
|
unfollow_log(module, le_path, logs)
|
|
|
|
|
|
|
|
|
|
|
|
# this is magic, see lib/ansible/module_common.py
|
|
|
|
# import module snippets
|
|
|
|
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
|
|
|
from ansible.module_utils.basic import *
|
|
|
|
|
|
|
|
|
|
|
|
main()
|
|
|
|
main()
|
|
|
|