Hello
I have few services that today sends data some index via code.
We are going to remove this index and create new one but cannot change the code so i want to change the point with transforms.conf + props.conf using regex that extract the service name from source field and the environment from _raw
this is my transforms.conf file :
[service_extraction]
SOURCE_KEY = source
REGEX = \/var\/log\/pods\/(.+?)_
FORMAT = complaince_int_front::@service_$environment
DEST_KEY = _MetaData:Index
LOOKAHEAD = 40000
[environment_extraction]
SOURCE_KEY = sourcetype::kube:container:mockapiservice
REGEX = "Region":"(.+?)"
FORMAT = complaince_int_front::@service_$1
DEST_KEY = _MetaData:Index
LOOKAHEAD = 40000
i guess i did something wrong since its not working
Hi there,
Here's a breakdown of potential issues and solutions:
1. Regex Accuracy:
2. FORMAT Order:
FORMAT = complaince_int_front::@service_$1
3. Transform Order:
4. props.conf:
5. Troubleshooting Steps:
Additional Tips:
Remember:
~ If the reply helps, a Karma upvote would be appreciated