Hi Team,
I want to extract aws-region from host name.
host= "my-service-name-.ip-101-99-126-252-us-west-2c".
I want to extract us-west-2 from the host. How I can achieve this.
@smaran06 Try using the below command:
| rex field=host "\.\w+.\d+.\d+.\d+.\d+.(?P<aws_region>.*)"
Also, If this reply helps you, an upvote would be appreciated.