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.

Revisions

  1. tomyam1 revised this gist Mar 4, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion logz.io.js
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    // Prints the
    // 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() {
  2. tomyam1 created this gist Mar 4, 2016.
    10 changes: 10 additions & 0 deletions logz.io.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    // Prints the

    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'));