Last active
March 4, 2016 14:36
-
-
Save tomyam1/096f68b30f23e8b06943 to your computer and use it in GitHub Desktop.
Data extraction scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Prints the s3 buckets defiend as log sources in a tab delimited format you can paste in excel | |
// https://app.logz.io/#/dashboard/data-sources/ | |
var settings = []; | |
$('.s3-settings-section').each(function() { | |
var sectionEl = $(this); | |
var bucket = sectionEl.find('[ng-model="settings.bucket"]').val(); | |
var prefix = sectionEl.find('[ng-model="settings.prefix"]').val(); | |
settings.push(bucket + '\t' + prefix); | |
}); | |
console.log(settings.join('\n')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment