- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ,
Can I have the fieldnames with spaces . i.e I have used the rename command in my search Query as follows..
my search ..| rename Prod_id as Product Details
This is throwing error..How can i use the rename command or is there any way to rename the fields with spaces included in the middle as shown above..
Please help..Thanks.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

yes, you just need double quotes around the name.
... | rename Prod_id as "Product Details"
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
But I cannot calculate that field with space by eval command..
How can I calculate field with name containing space ?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi luthfi49,
for fields name with space , you can use in eval statement using single quote notation.
i.e. for example :
1) eval 'Product Details' = 'Product Details' + " Field "
2) eval 'user count' = 'user count' * 20
where "user count" is the field name.
thanks,
Rakesh.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You don't. You leave the field name conversion until presentation time.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

yes, you just need double quotes around the name.
... | rename Prod_id as "Product Details"
