Applicability
Splunk Enterprise
Description
When attempting to add a license to Splunk using the 'splunk add licenses' command, it may return this error:
<Path to license file> failed to parse license because: The license signature is not a base64-encoded string (2)
Investigation
The reason for this error is there is something wrong with the license file itself. Most likely this was caused by copying/pasting the text of the license into a file using software that does not accurately preserve the formatting of the whitespace characters in the text. This can also be caused by pasting the text through a web-based serial console provided by cloud hosting services like AWS.
Resolution
If possible, download the original license file rather than copy/pasting into a new file. This will eliminate the possibility of the file content being changed. The file can then be copied to the Splunk system and imported. With AWS, the file can be transferred via an S3 bucket if direct access via SSH is not available.
If copy/pasting is necessary, make sure to use a text editing application designed for code. These applications will preserve the original whitespace characters accurately. Examples include:
- Sublime Text
- Atom
- Notepad++
- VS Code
Do NOT use the default Notepad application in Windows, and avoid pasting the text into a file through a web-based serial console, as these are both known to cause problems with the file content.
Revision History
| Revision |
Publish Date |
Comments |
1.0 |
30-Sep-2026
|
Initial Release |