|
|
@ -48,8 +48,16 @@ notes:
|
|
|
|
- Requires the LogEntries agent which can be installed following the instructions at logentries.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 name=nginx-access-log
|
|
|
|
# Track nginx logs
|
|
|
|
- logentries: path=/var/log/nginx/error.log state=absent
|
|
|
|
- logentries:
|
|
|
|
|
|
|
|
path: /var/log/nginx/access.log
|
|
|
|
|
|
|
|
state: present
|
|
|
|
|
|
|
|
name: nginx-access-log
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Stop tracking nginx logs
|
|
|
|
|
|
|
|
- logentries:
|
|
|
|
|
|
|
|
path: /var/log/nginx/error.log
|
|
|
|
|
|
|
|
state: absent
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
def query_log_status(module, le_path, path, state="present"):
|
|
|
|
def query_log_status(module, le_path, path, state="present"):
|
|
|
|