Splunk IT Service Intelligence

Ho to create custom image from ITSI Backup

daniel_splunk
Splunk Employee
Splunk Employee

I lost some of the custom image and would like to recreate it from ITSI backup, are there any procedure to do that.

Labels (2)
0 Karma

daniel_splunk
Splunk Employee
Splunk Employee

Inside the ITSI backup, there is a file called SA-ITOA_files_glass_table_images_0.json which contain the custom image in base64 format.

Suppose you need to recreate an image called xxx-logo.png from the backup, use below procedure.

  1. Open SA-ITOA_files_glass_table_images_0.json with an editor, locate below line.

    {"_time": 1550538337.309857, "acl": {"can_share_user": true, "can_share_app": true, "can_change_perms": true, "perms": {"read": [""], "write": [""]}, "modifiable": true, "sharing": "user", "owner": "p123456", "can_share_global": true, "can_write": true}, "created_by": "nobody", "metadata": {"version": "V1"}, "_key": "5c60016a5d0c321c3625c1e1", "name": "bank-logo.png", "created_on": 1550538337.309851, "_user": "nobody", "type": "image/png", "data": "xxxx....xxxx"}

The actual image is inside the data in base64 format. In this example, simplified as "xxxx....xxxx". Save the content into a file, say, called image-base64.txt

Then, decode the base64 file into image file.

cat image-base64.txt | base64 -D > image.png

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...