diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ab92b9dca..d2a9816bf9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,11 +35,3 @@ your changes, such as: - [public] [both] [updated] add a new feature ## [Unreleased] - -- [public] [both] [updated] Enable enable_env_ref_in_config configuration to support system variable binding -- [public] [both] [fixed] When using the TagFieldsRename configuration in flusher_kafka_v2/flusher_pulsar, some fields in tags cannot be renamed -- [public] [both] [added] add new plugin type: extension -- [public] [both] [updated] http flusher support custom authenticator, filter and request circuit-breaker via the extension plugin mechanism -- [public] [both] [added] add new plugin: flusher_loki -- [public] [both] [updated] processor_split_key_value plugin support separating the key value when the value is surrounded by quotes -- [public] [both] [added] add new plugin: processor_string_replace diff --git a/Makefile b/Makefile index ef0cb27748..bd62eaf174 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ # limitations under the License. .DEFAULT_GOAL := all -VERSION ?= 1.4.0 +VERSION ?= 1.5.0 DOCKER_PUSH ?= false DOCKER_REPOSITORY ?= aliyun/ilogtail BUILD_REPOSITORY ?= aliyun/ilogtail_build diff --git a/changes/v1.5.0.md b/changes/v1.5.0.md new file mode 100644 index 0000000000..4872efdd9c --- /dev/null +++ b/changes/v1.5.0.md @@ -0,0 +1,32 @@ +# 1.5.0 +## Changes +All issues and pull requests are [here](https://github.com/alibaba/ilogtail/milestone/18). +### Features +- [public] [both] [updated] Enable enable\_env\_ref\_in\_config configuration to support system variable binding +- [public] [both] [added] add new plugin type: extension +- [public] [both] [updated] http flusher support custom authenticator, filter and request circuit-breaker via the extension plugin mechanism +- [public] [both] [added] add new plugin: flusher\_loki +- [public] [both] [updated] processor\_split\_key\_value plugin support separating the key value when the value is surrounded by quotes +- [public] [both] [added] add new plugin: processor\_string\_replace +- [public] [both] [added] support adding dynamic tag from file in accelerated mode +- [public] [both] [added] add switch policy for sls data server endpoint +- [public] [both] [added] add support for proxy through environment variables +- [public] [both] [added] windows compile scripts for both x86 and x86-64 +- [public] [both] [added] profiling supports goprofile pull mode +- [public] [both] [added] fully support OTLP Log in v2 pipeline +### Fixed +- [public] [both] [fixed] When using the TagFieldsRename configuration in flusher\_kafka\_v2/flusher\_pulsar, some fields in tags cannot be renamed +- [public] [both] [fixed] fix index when creating logstore in query mode +- [public] [both] [fixed] processor filter key should not filter log if key matches +### Doc +## Download +| **Filename** | **OS** | **Arch** | **SHA256 Checksum** | +| ---- | ---- | ---- | ---- | +|[ilogtail-1.5.0.linux-amd64.tar.gz](https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/1.5.0/ilogtail-1.5.0.linux-amd64.tar.gz)|Linux|x86-64|[ilogtail-1.5.0.linux-amd64.tar.gz.sha256](https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/1.5.0/ilogtail-1.5.0.linux-amd64.tar.gz.sha256)| +|[ilogtail-1.5.0.linux-arm64.tar.gz](https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/1.5.0/ilogtail-1.5.0.linux-arm64.tar.gz)|Linux|arm64|[ilogtail-1.5.0.linux-arm64.tar.gz.sha256](https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/1.5.0/ilogtail-1.5.0.linux-arm64.tar.gz.sha256)| +|[ilogtail-1.5.0.windows-amd64.zip](https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/1.5.0/ilogtail-1.5.0.windows-amd64.zip)|Windows|x86-64|[ilogtail-1.5.0.windows-amd64.zip.sha256](https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/1.5.0/ilogtail-1.5.0.windows-amd64.zip.sha256)| +## Docker Image +**Docker Pull Command** +``` bash +docker pull sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/ilogtail:1.5.0 +``` diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 4eaa7bd098..84b669ef49 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -22,7 +22,7 @@ option(ENABLE_STATIC_LINK_CRT "Build Logtail by linking CRT statically" OFF) # Name/Version information. if (NOT DEFINED LOGTAIL_VERSION) - set(LOGTAIL_VERSION "1.4.0") + set(LOGTAIL_VERSION "1.5.0") endif () message(STATUS "Version: ${LOGTAIL_VERSION}") diff --git a/docker/Dockerfile_build b/docker/Dockerfile_build index 5e3a6778db..9c47258aae 100644 --- a/docker/Dockerfile_build +++ b/docker/Dockerfile_build @@ -19,7 +19,7 @@ WORKDIR /src COPY . . ARG HOST_OS=Linux -ARG VERSION=1.4.0 +ARG VERSION=1.5.0 USER root diff --git a/docker/Dockerfile_development_part b/docker/Dockerfile_development_part index 97619692a3..babd76fa8a 100644 --- a/docker/Dockerfile_development_part +++ b/docker/Dockerfile_development_part @@ -15,7 +15,7 @@ FROM sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/ilogtail-build-linux:latest ARG HOST_OS=Linux -ARG VERSION=1.4.0 +ARG VERSION=1.5.0 USER root WORKDIR /ilogtail diff --git a/docker/Dockerfile_production b/docker/Dockerfile_production index 3e2b927e53..d6a6d26983 100644 --- a/docker/Dockerfile_production +++ b/docker/Dockerfile_production @@ -13,7 +13,7 @@ # limitations under the License. FROM --platform=$TARGETPLATFORM centos:centos7.9.2009 as build -ARG VERSION=1.4.0 +ARG VERSION=1.5.0 ARG TARGETPLATFORM WORKDIR /usr/local COPY dist/ilogtail-${VERSION}.linux-*.tar.gz . @@ -38,7 +38,7 @@ VOLUME [ "/sys/fs/cgroup" ] RUN yum update -y && yum upgrade -y && yum -y clean all && rm -fr /var/cache && rm -rf /core.* ARG HOST_OS=Linux -ARG VERSION=1.4.0 +ARG VERSION=1.5.0 ARG TARGETPLATFORM COPY --from=build /usr/local/ilogtail-${VERSION} /usr/local/ilogtail diff --git a/docs/cn/installation/release-notes.md b/docs/cn/installation/release-notes.md index 07c8ca2fdc..abb421824b 100644 --- a/docs/cn/installation/release-notes.md +++ b/docs/cn/installation/release-notes.md @@ -1,5 +1,53 @@ # 发布记录 +## 1.5.0 + +### 发布记录 + +发版日期:2023 年 5 月 1 日 + +新功能 + +* 新增插件Extension机制 [#648](https://github.com/alibaba/ilogtail/pull/648) +* flusher\_http插件通过Extension机制支持自定义鉴权、过滤、熔断 [#648](https://github.com/alibaba/ilogtail/pull/648) +* 新增Fusher插件: flusher\_loki [#259](https://github.com/alibaba/ilogtail/issues/259) +* 新增Processor插件: processor\_string\_replace [#757](https://github.com/alibaba/ilogtail/pull/757) +* 支持在C++加速模式下通过文件为数据自动添加Tag [#812](https://github.com/alibaba/ilogtail/issues/812) +* 为SLS Data Server Endpoint添加受控的切换策略 [#802](https://github.com/alibaba/ilogtail/issues/802) +* 支持iLogtail通过网络代理管控和发送数据 [#806](https://github.com/alibaba/ilogtail/issues/806) +* 添加Windows编译脚本支持编译x86和x86-64版本 [#327](https://github.com/alibaba/ilogtail/issues/327) +* Profiling功能支持goprofile拉取模式 [#730](https://github.com/alibaba/ilogtail/issues/730) +* V2流水线完整支持OTLP Log模型 [#779](https://github.com/alibaba/ilogtail/issues/779) + +优化 + +* 默认打开enable\_env\_ref\_in\_config选项以支持配置中环境变量替换 [#744](https://github.com/alibaba/ilogtail/issues/744) +* processor\_split\_key\_value插件性能优化并增加多字符引用符 [#762](https://github.com/alibaba/ilogtail/issues/762) + +问题修复 + +* 修复使用flusher\_kafka\_v2/flusher\_pulsar插件时,TagFieldsRename选项中部分Tag字段无法被重命名的问题 [#744](https://github.com/alibaba/ilogtail/issues/744) +* 修复创建query模式的logstore时,无法自动创建索引的问题 [#798](https://github.com/alibaba/ilogtail/issues/798) +* 修复processor\_filter\_key有多个key时即使匹配也过滤日志的问题 [#816](https://github.com/alibaba/ilogtail/issues/816) + +[详情和源代码](https://github.com/alibaba/ilogtail/blob/main/changes/v1.5.0.md) + +### 下载 + +| 文件名 | 系统 | 架构 | SHA256 校验码 | +| -------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------ | ---------------------------------------------------------------- | +| [ilogtail-1.5.0.linux-amd64.tar.gz](https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/1.5.0/ilogtail-1.5.0.linux-amd64.tar.gz) | Linux | x86-64 | ccb7e637bc7edc4e9fe22ab3ac79cedee63d80678711e0efc77122387ec73882 | +| [ilogtail-1.5.0.linux-arm64.tar.gz](https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/1.5.0/ilogtail-1.5.0.linux-arm64.tar.gz) | Linux | arm64 | f1d7940e08ee51f2c66d963d91c16903658ab1e0fc856002351248c94d0e6b0a | +| [ilogtail-1.5.0.windows-amd64.zip](https://ilogtail-community-edition.oss-cn-shanghai.aliyuncs.com/1.5.0/ilogtail-1.5.0.windows-amd64.zip) | Linux | x86-64 | f7ba5c913839f86d4b589b6573e4f87f13b36fa61db246abf652734500b76ec3 | + +### Docker 镜像 + +**Docker Pull 命令** + +``` +docker pull sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/ilogtail:1.5.0 +``` + ## 1.4.0 ### 发布记录 diff --git a/docs/en/guides/How-to-build-with-docker.md b/docs/en/guides/How-to-build-with-docker.md index 26ca074fd5..4559ed940b 100644 --- a/docs/en/guides/How-to-build-with-docker.md +++ b/docs/en/guides/How-to-build-with-docker.md @@ -13,13 +13,13 @@ make solib ### Build image. - The default {DOCKER_REPOSITORY} is `aliyun/ilogtail`. - - The default {VERSION} is `1.4.0`. + - The default {VERSION} is `1.5.0`. - The default {DOCKER_PUSH} is `false`. When the option is configured as true, the built images would also be pushed to the {DOCKER_REPOSITORY} with {VERSION} tag. ```shell DOCKER_PUSH={DOCKER_PUSH} DOCKER_REPOSITORY={DOCKER_REPOSITORY} VERSION={VERSION} make wholedocker ``` - So when you exec `make wholedocker` command, the built image named as `aliyun/ilogtail:1.4.0` would be stored in local repository. + So when you exec `make wholedocker` command, the built image named as `aliyun/ilogtail:1.5.0` would be stored in local repository. ## Build Pure Go image. @@ -27,10 +27,10 @@ If the features that you want to use only in Go part, such as collecting stdout ### Build image. - The default {DOCKER_REPOSITORY} is `aliyun/ilogtail`. - - The default {VERSION} is `1.4.0`. + - The default {VERSION} is `1.5.0`. - The default {DOCKER_PUSH} is `false`. When the option is configured as true, the built images would also be pushed to the {DOCKER_REPOSITORY} with {VERSION} tag. ```shell DOCKER_PUSH={DOCKER_PUSH} DOCKER_REPOSITORY={DOCKER_REPOSITORY} VERSION={VERSION} make docker ``` -So when you exec `make docker` command, the built image named as `aliyun/ilogtail:1.4.0` would be stored in local repository. \ No newline at end of file +So when you exec `make docker` command, the built image named as `aliyun/ilogtail:1.5.0` would be stored in local repository. \ No newline at end of file diff --git a/docs/en/guides/How-to-do-manual-test.md b/docs/en/guides/How-to-do-manual-test.md index 4f6c48e952..803c106121 100644 --- a/docs/en/guides/How-to-do-manual-test.md +++ b/docs/en/guides/How-to-do-manual-test.md @@ -114,8 +114,8 @@ program written by yourself. ### Run [Logtail AlibabaCloud](https://help.aliyun.com/document_detail/28979.html) on container 1. Run `make docker` to compile [Logtail AlibabaCloud](https://help.aliyun.com/document_detail/28979.html) docker - images named `aliyun/ilogtail:1.4.0`. -2. Rename `aliyun/ilogtail:1.4.0` to a custom name and push to the remotes, such - as `registry.cn-beijing.aliyuncs.com/aliyun/ilogtail:1.4.0`. + images named `aliyun/ilogtail:1.5.0`. +2. Rename `aliyun/ilogtail:1.5.0` to a custom name and push to the remotes, such + as `registry.cn-beijing.aliyuncs.com/aliyun/ilogtail:1.5.0`. 3. Replace the mirror of `logtail-ds` of [ACK](https://www.aliyun.com/product/list/alibabacloudnative) or your self platform and restart. diff --git a/scripts/docker_build.sh b/scripts/docker_build.sh index f7be737f2e..eef68ed30b 100755 --- a/scripts/docker_build.sh +++ b/scripts/docker_build.sh @@ -56,7 +56,7 @@ function check_docker_buildkit_support { ARCH=$(arch) CATEGORY=$1 GENERATED_HOME=$2 -VERSION=${3:-1.4.0} +VERSION=${3:-1.5.0} REPOSITORY=${4:-aliyun/ilogtail} PUSH=${5:-false} USE_DOCKER_BUILDKIT=${6:-${DOCKER_BUILD_USE_BUILDKIT:-$(check_docker_buildkit_support)}} diff --git a/scripts/gen_build_scripts.sh b/scripts/gen_build_scripts.sh index 8be2c1145d..b9a12fcd51 100755 --- a/scripts/gen_build_scripts.sh +++ b/scripts/gen_build_scripts.sh @@ -24,7 +24,7 @@ set -o pipefail # e2e: Build plugin dynamic lib with GOC and build the CPP part. CATEGORY=$1 GENERATED_HOME=$2 -VERSION=${3:-1.4.0} +VERSION=${3:-1.5.0} REPOSITORY=${4:-aliyun/ilogtail} OUT_DIR=${5:-output} EXPORT_GO_ENVS=${6:-${DOCKER_BUILD_EXPORT_GO_ENVS:-true}} diff --git a/scripts/plugin_build.sh b/scripts/plugin_build.sh index 9aad3475fb..2c0b7af054 100755 --- a/scripts/plugin_build.sh +++ b/scripts/plugin_build.sh @@ -27,7 +27,7 @@ function os() { MOD=${1:-mod} BUILDMODE=${2:-default} OUT_DIR=${3:-output} -VERSION=${4:-1.4.0} +VERSION=${4:-1.5.0} PLUGINS_CONFIG_FILE=${5:-${PLUGINS_CONFIG_FILE:-plugins.yml,external_plugins.yml}} GO_MOD_FILE=${6:-${GO_MOD_FILE:-go.mod}} NAME=ilogtail diff --git a/scripts/update_version.sh b/scripts/update_version.sh index c8eb921823..31392599c6 100755 --- a/scripts/update_version.sh +++ b/scripts/update_version.sh @@ -41,6 +41,7 @@ sed -i "s/VERSION=\${2:-.*}/VERSION=\${2:-$version}/g" scripts/*.sh sed -i "s/VERSION=\${3:-.*}/VERSION=\${3:-$version}/g" scripts/*.sh sed -i "s/VERSION=\${4:-.*}/VERSION=\${4:-$version}/g" scripts/*.sh sed -i "s/DIST_DIR=\${2:-ilogtail-.*}/DIST_DIR=\${2:-ilogtail-$version}/g" scripts/dist.sh +sed -i "s/^set ILOGTAIL_VERSION=.*/set ILOGTAIL_VERSION=$version/g" scripts/*.bat sed -i "s/image: aliyun\\/ilogtail:.*/image: aliyun\\/ilogtail:$version/g" test/engine/boot/compose.go # Docs diff --git a/scripts/windows32_build.bat b/scripts/windows32_build.bat index 9aa01881eb..f720a13bcb 100644 --- a/scripts/windows32_build.bat +++ b/scripts/windows32_build.bat @@ -6,7 +6,7 @@ REM 2. Build iLogtail. REM 3. Build iLogtail plugin. REM 4. Make package. -set ILOGTAIL_VERSION=1.4.0 +set ILOGTAIL_VERSION=1.5.0 if not "%1" == "" set ILOGTAIL_VERSION=%1 set CurrentPath=%~dp0 set P1Path= diff --git a/scripts/windows64_build.bat b/scripts/windows64_build.bat index a38aeb8dc8..e9fe49b297 100644 --- a/scripts/windows64_build.bat +++ b/scripts/windows64_build.bat @@ -6,7 +6,7 @@ REM 2. Build iLogtail. REM 3. Build iLogtail plugin. REM 4. Make package. -set ILOGTAIL_VERSION=1.4.0 +set ILOGTAIL_VERSION=1.5.0 if not "%1" == "" set ILOGTAIL_VERSION=%1 set CurrentPath=%~dp0 set P1Path= diff --git a/test/engine/boot/compose.go b/test/engine/boot/compose.go index a64b8e7d8e..a1d5d1584a 100644 --- a/test/engine/boot/compose.go +++ b/test/engine/boot/compose.go @@ -55,7 +55,7 @@ services: interval: 1s retries: 10 ilogtailC: - image: aliyun/ilogtail:1.4.0 + image: aliyun/ilogtail:1.5.0 hostname: ilogtail privileged: true pid: host