Hello All, I have log file which has the following content in json format, I would like to parse the timestamp and convert it to "%m-%d-%Y %H:%M:%S.%3N" and assign it to the same field timestamp. C...
See more...
Hello All, I have log file which has the following content in json format, I would like to parse the timestamp and convert it to "%m-%d-%Y %H:%M:%S.%3N" and assign it to the same field timestamp. Can someone assist me on this on what should be props.conf and transforms.conf. i tried to use _json sourcetype but it producing none for the timestamp field. Note: I'm trying to test this locally. ``` {"level":"warn","service":"resource-sweeper","timestamp":1744302465965,"message":"1 nodes are not allocated"} {"level":"warn","service":"resource-sweeper","timestamp":1744302475969,"message":"1 nodes are not allocated"} {"level":"warn","service":"resource-sweeper","timestamp":1744302858869,"message":"1 nodes are not allocated"} {"level":"warn","service":"resource-sweeper","timestamp":1744304731808,"message":"1 nodes are not allocated"} {"level":"warn","service":"resource-sweeper","timestamp":1744304774636,"message":"1 nodes are not allocated"} ```