Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Script that runs a query against all logs in account and prints results in csv file

Notifications You must be signed in to change notification settings

LogentriesCommunity/Logentries-Log-Usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Logentries-Log-Usage

Script that generates a CSV file that shows the Account usage for a given account from a given point in time (DD.MM.YYYY) in humanized form that can help you establish which of your logs is sending the most data to your account.

To use the script you must supply your Account Key and a Read-Write or Read-Only key. API key is also retrieved from $LOGENTRIES_API_KEY.

To Run
  • Install requirements
  • run $ python query_all_logs.py [params]

example:

$ LOGENTRIES_API_KEY=aaa-bbb-ccc-ddd python query_all_logs.py --account-key aaa-bbb-ccc-ddd --from-date 15.01.2017 --to-date 15.03.2017 --host-name "Webserver Logs"

Results will be stored in a csv file (default: results.csv) in the same directory where the script is saved.

About

Script that runs a query against all logs in account and prints results in csv file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages