Skip to content

azureblob exporter: if has digital 2 in azureblob.blob_name_format.logs_format , 2 act as time-format #44650

@jfeng40

Description

@jfeng40

Component(s)

No response

What happened?

Description

[environment]:
OpenTelemetry collector deployed as pod in AKS
Azure AKS OS is Ubuntu Linux

[steps]:

  1. when has digital 2 in azureblob.blob_name_format.logs_format, as below code.
  2. There are multiple folders generated in Azure storageAccount , as below:
    cluster/test28/namespace/....
    cluster/test29/namespace/....
    cluster/test30/namespace/....
  3. Actually we only has 1 cluster=test2, only cluster/test2/namespace/... is expected.
  4. here front "2" in cluster/test2 is similar as latter "02" in 2006/01/02/15, it is thinked as time-format.
    the front"2" is thinked as time-format, it is NOT expected.
    the latter"2" is thinked as time-format, it is expected
  5. I tried following in azureblob.blob_name_format.logs_format, the problem still exist.
    cluster/test2_test/namespace/2006/01/02/15
    cluster/test2-test/namespace/2006/01/02/15
    cluster/test2test/namespace/2006/01/02/15
    exporters:
      azureblob:
        auth:
          client_id: ***
          type: user_managed_identity
        blob_name_format:
          logs_format: cluster/test2/namespace/2006/01/02/15
        container:
          logs: backup-logs
        format: json
        url: ***
```



## Steps to Reproduce

## Expected Result

## Actual Result

### Collector version

0.138.0

### Environment information

## Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")


### OpenTelemetry Collector configuration

```yaml

```

### Log output

```shell

```

### Additional context

_No response_

### Tip

<sub>[React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. Learn more [here](https://opentelemetry.io/community/end-user/issue-participation/).</sub>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions