Skip to content

Instantly share code, notes, and snippets.

@tomyam1
Last active March 4, 2016 14:36
Show Gist options
  • Save tomyam1/096f68b30f23e8b06943 to your computer and use it in GitHub Desktop.
Save tomyam1/096f68b30f23e8b06943 to your computer and use it in GitHub Desktop.
Data extraction scripts
// 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