Alan V

Results 17 comments of Alan V

Let me check after one week, thank you for idea, i just not found any information in documentation about `timestamp`.

Hey, here documentation about [log_to_metric](https://vector.dev/docs/reference/configuration/transforms/log_to_metric/) and based on example I should do transformation like: ``` log_to_metric: inputs: [ "trans_cf_mimir_json" ] type: "log_to_metric" metrics: - type: "histogram" field: "EdgeResponseStatus" tags: ZoneName...

Now I got you. I prepared `transforms` case, let's spin some time, ill inform you about results. Thank you! ``` trans_cf_mimir_json: inputs: - trans_cf_full_json_throttle source: | if .custom_log_type == "http_requests"...

No success, I forward all to vector console, and I see: **Json with prepared for log_to_metric** ``` { "ClientCountry": "fr", "ClientIP": "1.2.3.4", "ClientRequestHost": "d.dd.com", "EdgeResponseBytes": 6147, "EdgeResponseStatus": 200, "ZoneName": "dd.com",...

Hey, I made many tests and had long playing with timestamps and time formats, but no success. Last what I tested ``` "timestamp" : now() ``` should work, but no....

``` # cat /etc/vector/vector.yaml api: address: 0.0.0.0:8686 enabled: true playground: false data_dir: /vector-data-dir sinks: out_websec_mimir: endpoint: http://websec-logwrap-general-haproxy.websec-logwrap-general.svc.cluster.local/api/v1/push healthcheck: enabled: false inputs: - log_to_metric - vector_metrics type: prometheus_remote_write out_websec_opensearch: auth: password:...

I'm very sad, but not work... log from console, no any additional timestamp ``` 2024-03-07T06:40:25.087086166Z EdgeResponseStatus{ClientIP="1.1.1.1",ClientRequestHost="d.dd.com",ZoneName="dd.com"} + histogram 1@202 2024-03-07T06:40:25.087086166Z EdgeResponseBytes{ClientIP="1.1.1.1",ClientRequestHost="d.dd.com",ZoneName="dd.com"} = 743 2024-03-07T06:40:25.087086166Z ClientCountry{ClientIP="1.1.1.1",ClientRequestHost="d.dd.com",ZoneName="dd.com"} + kr ``` error from...

No problem, I'm on Light's side ;) 1. All solution work on Kubernetes, now upgraded to latest version `vector 0.36.0 (x86_64-unknown-linux-gnu a5e48bb 2024-02-13 14:43:11.911392615)` 2. Test config ``` # cat...

Hi, may be I'm wrong... You are right, if I use `native_json` in console I see normal json with timestamp. Here https://github.com/vectordotdev/vector/issues/19754#issuecomment-1923444818 I made workaround with haproxy to solve problem...