- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
minkyuk
Explorer
06-26-2015
07:56 AM
Hello folks,
I am trying to combine two fields by string; however, I need to put quotation marks around one of the fields prior to combining.
A B
coc19 /afs/po101
coc20 D:
I want the output to look like:
COMBINED STRING
coc19 "/afs/po101"
coc20 "D:"
What should I do to eval combstr = A +" "+B
to add quotation marks?
I would appreciate your input
Thanks
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

richgalloway

SplunkTrust
06-26-2015
08:04 AM
This works for me:
eval combstr=A+" "+"\""+B+"\""
---
If this reply helps you, Karma would be appreciated.
If this reply helps you, Karma would be appreciated.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
chimell
Motivator
06-26-2015
08:42 AM
Hi
Try this search code
......|eval COMBINED_STRING=A." "."\"".B."\""
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

richgalloway

SplunkTrust
06-26-2015
08:04 AM
This works for me:
eval combstr=A+" "+"\""+B+"\""
---
If this reply helps you, Karma would be appreciated.
If this reply helps you, Karma would be appreciated.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
minkyuk
Explorer
06-26-2015
08:23 AM
Thank you sir
