Above props is not extracting the fields at all but If I update the same code in opt splunk etc apps search local props the fields are extracting properly. I am not sure what could be reason for this behavior.
Is this a distributed deployment? If so, in what instance(s) are you editing this configuration?
You should run btool when your config is in /opt/splunk/etc/apps/appname/local to see if Splunk is picking it up and troubleshoot from there.