|
1899 | 1899 | </fieldset>
|
1900 | 1900 | </form>
|
1901 | 1901 | </script>
|
| 1902 | + |
| 1903 | +<!-- Azure Blob Storage --> |
| 1904 | +<script type="text/x-magento-template" id="fastly-create-log-endpoint-template-azureblob"> |
| 1905 | + <div class="messages"> |
| 1906 | + <div class="message message-warning fastly-message-warning" style="display: none"> |
| 1907 | + <?php /* @noEscape */ echo __("You are about to clone your active version #x.")?> |
| 1908 | + <?php /* @noEscape */ echo __("Your log endpoint will be created in version #y.")?> |
| 1909 | + </div> |
| 1910 | + <div class="message message-error fastly-message-error" style="display: none"> |
| 1911 | + </div> |
| 1912 | + </div> |
| 1913 | + <form action="<?php /* @noEscape */ echo $block->getUrl('adminhtml/fastlyCdn_Vcl/upload'); ?>" |
| 1914 | + method="POST" |
| 1915 | + id="create-log-endpoint-form" |
| 1916 | + name="create-log-endpoint-form" |
| 1917 | + class="form-inline" |
| 1918 | + enctype="multipart/form-data"> |
| 1919 | + <fieldset class="admin__fieldset form-list question"> |
| 1920 | + <div class="admin__field field maintenance-checkbox-container"> |
| 1921 | + <label for="fastly_activate_log_endpoint" class="admin__field-label"> |
| 1922 | + <span><?php /* @noEscape */ echo __('Activate after the change')?></span> |
| 1923 | + </label> |
| 1924 | + <div class="admin__field-control"> |
| 1925 | + <div class="admin__field-option"> |
| 1926 | + <input class="admin__control-checkbox" |
| 1927 | + type="checkbox" |
| 1928 | + name="fastly_activate_log_endpoint" |
| 1929 | + id="fastly_activate_log_endpoint" |
| 1930 | + checked/> |
| 1931 | + <label class="admin__field-label" for="fastly_activate_log_endpoint"></label> |
| 1932 | + </div> |
| 1933 | + </div> |
| 1934 | + </div> |
| 1935 | + <div class="admin__field field"> |
| 1936 | + <label for="condition" class="admin__field-label"> |
| 1937 | + <span><?php /* @noEscape */ echo __("Condition") ?></span> |
| 1938 | + </label> |
| 1939 | + <div class="admin__field-control"> |
| 1940 | + <span id="attach_span" style> |
| 1941 | + This will happen all the time unless you <a id="attach" href="#">Attach a condition</a> |
| 1942 | + </span> |
| 1943 | + <select name="conditions" id="conditions" class="admin__control-select"></select> |
| 1944 | + <div class="admin__field-note"><a id="detach" href="#">Detach condition</a> <span id="sep">|</span> |
| 1945 | + <a id="create-response-condition" href="#">Create a new response condition</a> |
| 1946 | + </div> |
| 1947 | + <input type="hidden" name="condition_name" id="condition_name"/> |
| 1948 | + <input type="hidden" name="apply_if" id="apply_if"/> |
| 1949 | + <input type="hidden" name="condition_priority" id="condition_priority"/> |
| 1950 | + </div> |
| 1951 | + </div> |
| 1952 | + <input type="hidden" name="endpoint_type"> |
| 1953 | + <input type="hidden" name="old_name"> |
| 1954 | + <div class="admin__field field _required"> |
| 1955 | + <label for="log_endpoint[name]" class="admin__field-label"> |
| 1956 | + <span><?php /* @noEscape */ echo __("Name") ?></span> |
| 1957 | + </label> |
| 1958 | + <div class="admin__field-control"> |
| 1959 | + <input name="log_endpoint[name]" id="log_endpoint[name]" class="admin__control-text required-entry"> |
| 1960 | + <div class="admin__field-note"> |
| 1961 | + The name of your endpoint, such as <b>My endpoint</b>. |
| 1962 | + </div> |
| 1963 | + </div> |
| 1964 | + </div> |
| 1965 | + <div class="admin__field field __required"> |
| 1966 | + <label for="log_endpoint[format]" class="admin__field-label"> |
| 1967 | + <span><?php /* @noEscape */ echo __("Log format") ?></span> |
| 1968 | + </label> |
| 1969 | + <div class="admin__field-control"> |
| 1970 | + <textarea rows="6" name="log_endpoint[format]" id="log_endpoint[format]" class="admin__control-text required-entry"> |
| 1971 | + %h %l %u %t "%r" %>s %b</textarea> |
| 1972 | + <div class="admin__field-note"> |
| 1973 | + An Apache-style string or VCL variables to use for log formatting (the Apache Common Log format string appears by default). |
| 1974 | + 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>, |
| 1975 | + <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>, |
| 1976 | + 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. |
| 1977 | + </div> |
| 1978 | + </div> |
| 1979 | + </div> |
| 1980 | + <div class="admin__field field _required"> |
| 1981 | + <label for="log_endpoint[timestamp_format]" class="admin__field-label"> |
| 1982 | + <span><?php /* @noEscape */ echo __("Timestamp format") ?></span> |
| 1983 | + </label> |
| 1984 | + <div class="admin__field-control"> |
| 1985 | + <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"> |
| 1986 | + <div class="admin__field-note"> |
| 1987 | + The timestamp format on log files. The default is an strftime compatible string. |
| 1988 | + </div> |
| 1989 | + </div> |
| 1990 | + </div> |
| 1991 | + <div class="admin__field field _required"> |
| 1992 | + <label for="log_endpoint[account_name]" class="admin__field-label"> |
| 1993 | + <span><?php /* @noEscape */ echo __("Storage account name") ?></span> |
| 1994 | + </label> |
| 1995 | + <div class="admin__field-control"> |
| 1996 | + <input name="log_endpoint[account_name]" id="log_endpoint[account_name]" class="admin__control-text required-entry"> |
| 1997 | + <div class="admin__field-note"> |
| 1998 | + <?php /* @noEscape */ echo __("Storage account name") ?> |
| 1999 | + </div> |
| 2000 | + </div> |
| 2001 | + </div> |
| 2002 | + <div class="admin__field field _required"> |
| 2003 | + <label for="log_endpoint[container]" class="admin__field-label"> |
| 2004 | + <span><?php /* @noEscape */ echo __("Container") ?></span> |
| 2005 | + </label> |
| 2006 | + <div class="admin__field-control"> |
| 2007 | + <input name="log_endpoint[container]" id="log_endpoint[container]" class="admin__control-text required-entry"> |
| 2008 | + <div class="admin__field-note"> |
| 2009 | + <?php /* @noEscape */ echo __("Container") ?> |
| 2010 | + </div> |
| 2011 | + </div> |
| 2012 | + </div> |
| 2013 | + <div class="admin__field field __required"> |
| 2014 | + <label for="log_endpoint[sas_token]" class="admin__field-label"> |
| 2015 | + <span><?php /* @noEscape */ echo __("Sas token") ?></span> |
| 2016 | + </label> |
| 2017 | + <div class="admin__field-control"> |
| 2018 | + <textarea rows="6" name="log_endpoint[sas_token]" id="log_endpoint[sas_token]" class="admin__control-text required-entry masked"></textarea> |
| 2019 | + <div class="admin__field-note"> |
| 2020 | + 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. |
| 2021 | + <a href="https://docs.fastly.com/en/guides/log-streaming-azure-blob-storage">For more info check guide</a> |
| 2022 | + </div> |
| 2023 | + </div> |
| 2024 | + </div> |
| 2025 | + <div class="admin__field field _required"> |
| 2026 | + <label for="log_endpoint[period]" class="admin__field-label"> |
| 2027 | + <span><?php /* @noEscape */ echo __("Period") ?></span> |
| 2028 | + </label> |
| 2029 | + <div class="admin__field-control"> |
| 2030 | + <input name="log_endpoint[period]" id="log_endpoint[period]" class="admin__control-text required-entry" value="3600"> |
| 2031 | + <div class="admin__field-note"> |
| 2032 | + This manages how frequently in seconds to rotate your log files. Use numbers only in this field. |
| 2033 | + </div> |
| 2034 | + </div> |
| 2035 | + </div> |
| 2036 | + |
| 2037 | + <div class="admin__field field"> |
| 2038 | + <label class="admin__field-label"> |
| 2039 | + Advanced options |
| 2040 | + </label> |
| 2041 | + </div> |
| 2042 | + <div class="admin__field field"> |
| 2043 | + <label for="log_endpoint[message_type]" class="admin__field-label"> |
| 2044 | + <span><?php /* @noEscape */ echo __("Select a log line format") ?></span> |
| 2045 | + </label> |
| 2046 | + <div class="admin__field-control"> |
| 2047 | + <select name="log_endpoint[message_type]" id="log_endpoint[message_type]" class="admin__control-text"> |
| 2048 | + <option value="classic" selected>Classic</option> |
| 2049 | + <option value="loggly">Loggly</option> |
| 2050 | + <option value="logplex">Logplex</option> |
| 2051 | + <option value="blank">Blank</option> |
| 2052 | + </select> |
| 2053 | + <div class="admin__field-note"> |
| 2054 | + <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> |
| 2055 | + </div> |
| 2056 | + </div> |
| 2057 | + </div> |
| 2058 | + <div class="admin__field field"> |
| 2059 | + <label for="log_endpoint[placement]" class="admin__field-label"> |
| 2060 | + <span><?php /* @noEscape */ echo __("Placement") ?></span> |
| 2061 | + </label> |
| 2062 | + <div class="admin__field-control"> |
| 2063 | + <select name="log_endpoint[placement]" id="log_endpoint[placement]" class="admin__control-text"> |
| 2064 | + <option value="" selected>Format Version Default</option> |
| 2065 | + <option value="waf_debug">WAF Debug</option> |
| 2066 | + <option value="none">None</option> |
| 2067 | + </select> |
| 2068 | + <div class="admin__field-note"> |
| 2069 | + <a target="_blank" href="https://docs.fastly.com/api/logging" rel="noopener noreferrer">Learn more about changing logging call placement</a> |
| 2070 | + </div> |
| 2071 | + </div> |
| 2072 | + </div> |
| 2073 | + <div class="admin__field field"> |
| 2074 | + <label for="log_endpoint[gzip_level]" class="admin__field-label"> |
| 2075 | + <span><?php /* @noEscape */ echo __("Gzip level") ?></span> |
| 2076 | + </label> |
| 2077 | + <div class="admin__field-control"> |
| 2078 | + <input name="log_endpoint[gzip_level]" id="log_endpoint[gzip_level]" class="admin__control-text"> |
| 2079 | + <div class="admin__field-note"> |
| 2080 | + The level of gzip compression, if any, to apply to log files.<br> |
| 2081 | + 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). |
| 2082 | + </div> |
| 2083 | + </div> |
| 2084 | + </div> |
| 2085 | + </fieldset> |
| 2086 | + </form> |
| 2087 | +</script> |
1902 | 2088 | <!-- End Log endpoints creation overlay templates -->
|
1903 | 2089 |
|
1904 | 2090 | <!-- Create condition template -->
|
|
0 commit comments