I am uploading data to KV Store in the following format with spaces at the beginning of each line:
AAAAA
\s\sBBBBB
\s\s\s\sCCCCC
However after the data is uploaded and then running a lookup search the data is displayed without indentation spaces:
AAAAA
BBBBB
CCCCC
Is it possible to change this behaviour?
\s is for regex only.
Try quotes:
"AAAAA"
" BBBBB"
" CCCCC"
I have tried quotes as well - still not spaces at the beginning of the lines after the data is loaded to kv store. Looks like splunk strips them by default...
Hi,
Can you tell, why you want to preserve space?
Hello,
Indentation spaces have a very important role in network device configurations (e.g. Cisco). They define a parent-child relationship between configuration lines.
\s is for regex only.
Try quotes:
"AAAAA"
" BBBBB"
" CCCCC"