|
| 1 | +<!-- Azure Blob Storage --> |
| 2 | +<script type="text/x-magento-template" id="fastly-create-log-endpoint-template-azureblob"> |
| 3 | + <div class="messages"> |
| 4 | + <div class="message message-warning fastly-message-warning" style="display: none"> |
| 5 | + <?php /* @noEscape */ echo __("You are about to clone your active version #x.")?> |
| 6 | + <?php /* @noEscape */ echo __("Your log endpoint will be created in version #y.")?> |
| 7 | + </div> |
| 8 | + <div class="message message-error fastly-message-error" style="display: none"> |
| 9 | + </div> |
| 10 | + </div> |
| 11 | + <form action="<?php /* @noEscape */ echo $block->getUrl('adminhtml/fastlyCdn_Vcl/upload'); ?>" |
| 12 | + method="POST" |
| 13 | + id="create-log-endpoint-form" |
| 14 | + name="create-log-endpoint-form" |
| 15 | + class="form-inline" |
| 16 | + enctype="multipart/form-data"> |
| 17 | + <fieldset class="admin__fieldset form-list question"> |
| 18 | + <div class="admin__field field maintenance-checkbox-container"> |
| 19 | + <label for="fastly_activate_log_endpoint" class="admin__field-label"> |
| 20 | + <span><?php /* @noEscape */ echo __('Activate after the change')?></span> |
| 21 | + </label> |
| 22 | + <div class="admin__field-control"> |
| 23 | + <div class="admin__field-option"> |
| 24 | + <input class="admin__control-checkbox" |
| 25 | + type="checkbox" |
| 26 | + name="fastly_activate_log_endpoint" |
| 27 | + id="fastly_activate_log_endpoint" |
| 28 | + checked/> |
| 29 | + <label class="admin__field-label" for="fastly_activate_log_endpoint"></label> |
| 30 | + </div> |
| 31 | + </div> |
| 32 | + </div> |
| 33 | + <div class="admin__field field"> |
| 34 | + <label for="condition" class="admin__field-label"> |
| 35 | + <span><?php /* @noEscape */ echo __("Condition") ?></span> |
| 36 | + </label> |
| 37 | + <div class="admin__field-control"> |
| 38 | + <span id="attach_span" style> |
| 39 | + This will happen all the time unless you <a id="attach" href="#">Attach a condition</a> |
| 40 | + </span> |
| 41 | + <select name="conditions" id="conditions" class="admin__control-select"></select> |
| 42 | + <div class="admin__field-note"><a id="detach" href="#">Detach condition</a> <span id="sep">|</span> |
| 43 | + <a id="create-response-condition" href="#">Create a new response condition</a> |
| 44 | + </div> |
| 45 | + <input type="hidden" name="condition_name" id="condition_name"/> |
| 46 | + <input type="hidden" name="apply_if" id="apply_if"/> |
| 47 | + <input type="hidden" name="condition_priority" id="condition_priority"/> |
| 48 | + </div> |
| 49 | + </div> |
| 50 | + <input type="hidden" name="endpoint_type"> |
| 51 | + <input type="hidden" name="old_name"> |
| 52 | + <div class="admin__field field _required"> |
| 53 | + <label for="log_endpoint[name]" class="admin__field-label"> |
| 54 | + <span><?php /* @noEscape */ echo __("Name") ?></span> |
| 55 | + </label> |
| 56 | + <div class="admin__field-control"> |
| 57 | + <input name="log_endpoint[name]" id="log_endpoint[name]" class="admin__control-text required-entry"> |
| 58 | + <div class="admin__field-note"> |
| 59 | + The name of your endpoint, such as <b>My endpoint</b>. |
| 60 | + </div> |
| 61 | + </div> |
| 62 | + </div> |
| 63 | + <div class="admin__field field __required"> |
| 64 | + <label for="log_endpoint[format]" class="admin__field-label"> |
| 65 | + <span><?php /* @noEscape */ echo __("Log format") ?></span> |
| 66 | + </label> |
| 67 | + <div class="admin__field-control"> |
| 68 | + <textarea rows="6" name="log_endpoint[format]" id="log_endpoint[format]" class="admin__control-text required-entry"> |
| 69 | + %h %l %u %t "%r" %>s %b</textarea> |
| 70 | + <div class="admin__field-note"> |
| 71 | + An Apache-style string or VCL variables to use for log formatting (the Apache Common Log format string appears by default). |
| 72 | + See <a target="_blank" href="https://docs.fastly.com/en/guides/setting-up-remote-log-streaming" rel="noopener noreferrer" class="external-link">Fastly's log files docs</a>, |
| 73 | + <a target="_blank" href="https://www.varnish-cache.org/docs/2.1/reference/vcl.html#variables" rel="noopener noreferrer" class="external-link">Varnish's descriptions of VCL variables</a>, |
| 74 | + and <a target="_blank" href="https://docs.fastly.com/vcl/variables/" rel="noopener noreferrer" class="external-link">Fastly's available VCL variables</a> for more info. |
| 75 | + </div> |
| 76 | + </div> |
| 77 | + </div> |
| 78 | + <div class="admin__field field _required"> |
| 79 | + <label for="log_endpoint[timestamp_format]" class="admin__field-label"> |
| 80 | + <span><?php /* @noEscape */ echo __("Timestamp format") ?></span> |
| 81 | + </label> |
| 82 | + <div class="admin__field-control"> |
| 83 | + <input name="log_endpoint[timestamp_format]" id="log_endpoint[timestamp_format]" class="admin__control-text required-entry" value="%Y-%m-%dT%H:%M:%S.000"> |
| 84 | + <div class="admin__field-note"> |
| 85 | + The timestamp format on log files. The default is an strftime compatible string. |
| 86 | + </div> |
| 87 | + </div> |
| 88 | + </div> |
| 89 | + <div class="admin__field field _required"> |
| 90 | + <label for="log_endpoint[account_name]" class="admin__field-label"> |
| 91 | + <span><?php /* @noEscape */ echo __("Storage account name") ?></span> |
| 92 | + </label> |
| 93 | + <div class="admin__field-control"> |
| 94 | + <input name="log_endpoint[account_name]" id="log_endpoint[account_name]" class="admin__control-text required-entry"> |
| 95 | + <div class="admin__field-note"> |
| 96 | + <?php /* @noEscape */ echo __("Storage account name") ?> |
| 97 | + </div> |
| 98 | + </div> |
| 99 | + </div> |
| 100 | + <div class="admin__field field _required"> |
| 101 | + <label for="log_endpoint[container]" class="admin__field-label"> |
| 102 | + <span><?php /* @noEscape */ echo __("Container") ?></span> |
| 103 | + </label> |
| 104 | + <div class="admin__field-control"> |
| 105 | + <input name="log_endpoint[container]" id="log_endpoint[container]" class="admin__control-text required-entry"> |
| 106 | + <div class="admin__field-note"> |
| 107 | + <?php /* @noEscape */ echo __("The name of the Azure Blob Storage container in which to store logs.") ?> |
| 108 | + </div> |
| 109 | + </div> |
| 110 | + </div> |
| 111 | + <div class="admin__field field __required"> |
| 112 | + <label for="log_endpoint[sas_token]" class="admin__field-label"> |
| 113 | + <span><?php /* @noEscape */ echo __("Sas token") ?></span> |
| 114 | + </label> |
| 115 | + <div class="admin__field-control"> |
| 116 | + <textarea rows="6" name="log_endpoint[sas_token]" id="log_endpoint[sas_token]" class="admin__control-text required-entry masked"></textarea> |
| 117 | + <div class="admin__field-note"> |
| 118 | + The Microsoft Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. |
| 119 | + <a href="https://docs.fastly.com/en/guides/log-streaming-azure-blob-storage">For more info check guide</a> |
| 120 | + </div> |
| 121 | + </div> |
| 122 | + </div> |
| 123 | + <div class="admin__field field _required"> |
| 124 | + <label for="log_endpoint[period]" class="admin__field-label"> |
| 125 | + <span><?php /* @noEscape */ echo __("Period") ?></span> |
| 126 | + </label> |
| 127 | + <div class="admin__field-control"> |
| 128 | + <input name="log_endpoint[period]" id="log_endpoint[period]" class="admin__control-text required-entry" value="3600"> |
| 129 | + <div class="admin__field-note"> |
| 130 | + This manages how frequently in seconds to rotate your log files. Use numbers only in this field. |
| 131 | + </div> |
| 132 | + </div> |
| 133 | + </div> |
| 134 | + |
| 135 | + <div class="admin__field field"> |
| 136 | + <label class="admin__field-label"> |
| 137 | + Advanced options |
| 138 | + </label> |
| 139 | + </div> |
| 140 | + <div class="admin__field field"> |
| 141 | + <label for="log_endpoint[path]" class="admin__field-label"> |
| 142 | + <span><?php /* @noEscape */ echo __("Path") ?></span> |
| 143 | + </label> |
| 144 | + <div class="admin__field-control"> |
| 145 | + <input name="log_endpoint[path]" id="log_endpoint[path]" class="admin__control-text"> |
| 146 | + </div> |
| 147 | + </div> |
| 148 | + <div class="admin__field field"> |
| 149 | + <label for="log_endpoint[message_type]" class="admin__field-label"> |
| 150 | + <span><?php /* @noEscape */ echo __("Select a log line format") ?></span> |
| 151 | + </label> |
| 152 | + <div class="admin__field-control"> |
| 153 | + <select name="log_endpoint[message_type]" id="log_endpoint[message_type]" class="admin__control-text"> |
| 154 | + <option value="classic" selected>Classic</option> |
| 155 | + <option value="loggly">Loggly</option> |
| 156 | + <option value="logplex">Logplex</option> |
| 157 | + <option value="blank">Blank</option> |
| 158 | + </select> |
| 159 | + <div class="admin__field-note"> |
| 160 | + <a target="_blank" href="https://docs.fastly.com/en/guides/changing-log-line-formats" rel="noopener noreferrer" class="external-link">Learn more about changing log line formats</a> |
| 161 | + </div> |
| 162 | + </div> |
| 163 | + </div> |
| 164 | + <div class="admin__field field"> |
| 165 | + <label for="log_endpoint[placement]" class="admin__field-label"> |
| 166 | + <span><?php /* @noEscape */ echo __("Placement") ?></span> |
| 167 | + </label> |
| 168 | + <div class="admin__field-control"> |
| 169 | + <select name="log_endpoint[placement]" id="log_endpoint[placement]" class="admin__control-text"> |
| 170 | + <option value="" selected>Format Version Default</option> |
| 171 | + <option value="waf_debug">WAF Debug</option> |
| 172 | + <option value="none">None</option> |
| 173 | + </select> |
| 174 | + <div class="admin__field-note"> |
| 175 | + <a target="_blank" href="https://docs.fastly.com/api/logging" rel="noopener noreferrer">Learn more about changing logging call placement</a> |
| 176 | + </div> |
| 177 | + </div> |
| 178 | + </div> |
| 179 | + <div class="admin__field field __required"> |
| 180 | + <label for="log_endpoint[public_key]" class="admin__field-label"> |
| 181 | + <span><?php /* @noEscape */ echo __("PGP public key") ?></span> |
| 182 | + </label> |
| 183 | + <div class="admin__field-control"> |
| 184 | + <textarea rows="6" name="log_endpoint[public_key]" id="log_endpoint[public_key]" class="admin__control-text masked"></textarea> |
| 185 | + <div class="admin__field-note"> |
| 186 | + A PGP Public Key that Fastly will use to encrypt your log files before writing them to disk. You will only be able to read the contents by decrypting them with your private key. The PGP key should be in <a target="_blank" href="https://en.wikipedia.org/wiki/Privacy-enhanced_Electronic_Mail" rel="noopener noreferrer" class="external-link">PEM (Privacy Enhanced Mail) format</a>. |
| 187 | + </div> |
| 188 | + </div> |
| 189 | + </div> |
| 190 | + |
| 191 | + <div class="admin__field field"> |
| 192 | + <label for="log_endpoint[compression_codec]" class="admin__field-label"> |
| 193 | + <span><?php /* @noEscape */ echo __("Compression") ?></span> |
| 194 | + </label> |
| 195 | + <div class="admin__field-control"> |
| 196 | + <select name="log_endpoint[compression_codec]" id="log_endpoint[compression_codec]" class="admin__control-text"> |
| 197 | + <option value="" selected>None</option> |
| 198 | + <option value="zstd">Zstandard</option> |
| 199 | + <option value="snappy">Snappy</option> |
| 200 | + <option value="gzip">Gzip</option> |
| 201 | + </select> |
| 202 | + <div class="admin__field-note"> |
| 203 | + <a href="https://docs.fastly.com/en/guides/changing-log-compression-options" target="_blank"> |
| 204 | + Learn more about changing compression formats |
| 205 | + </a> |
| 206 | + </div> |
| 207 | + </div> |
| 208 | + </div> |
| 209 | + |
| 210 | + <div class="admin__field field"> |
| 211 | + <label for="log_endpoint[gzip_level]" class="admin__field-label"> |
| 212 | + <span><?php /* @noEscape */ echo __("Gzip level") ?></span> |
| 213 | + </label> |
| 214 | + <div class="admin__field-control"> |
| 215 | + <input name="log_endpoint[gzip_level]" id="log_endpoint[gzip_level]" class="admin__control-text"> |
| 216 | + <div class="admin__field-note"> |
| 217 | + The level of gzip compression, if any, to apply to log files.<br> |
| 218 | + The setting defaults to 0 (no compression). You can specify any whole number from 1 (fastest and least compressed) to 9 (slowest and most compressed). |
| 219 | + </div> |
| 220 | + </div> |
| 221 | + </div> |
| 222 | + </fieldset> |
| 223 | + </form> |
| 224 | +</script> |
0 commit comments