The customer is uploading images for products, but some images don’t get linked to the products.
Image name is with article number. The file gets uploaded and but not getting linked automatically to product
Following is the setting in appSettings.json
"ProductMediaMapper": {
"MediaRootFolder": "ArticleFiles",
"ArticleNameMatchLength": 1,
"AllowedImageTypes": [
"gif",
"jpg",
"png",
"jpeg"
],
"FieldImageMappers": [
{
"Prefix": "",
"Suffix": "",
"Templatefieldname": "_images"
},
{
"Prefix": "",
"Suffix": "_1",
"Templatefieldname": "_images"
},
{
"Prefix": "",
"Suffix": "_2",
"Templatefieldname": "_images"
},
{
"Prefix": "",
"Suffix": "_3",
"Templatefieldname": "_images"
},
{
"Prefix": "",
"Suffix": "_4",
"Templatefieldname": "_images"
},
{
"Prefix": "",
"Suffix": "_5",
"Templatefieldname": "_images"
},
{
"Prefix": "",
"Suffix": "_6",
"Templatefieldname": "_images"
},
{
"Prefix": "",
"Suffix": "_7",
"Templatefieldname": "_images"
},
{
"Prefix": "",
"Suffix": "_8",
"Templatefieldname": "_images"
},
{
"Prefix": "",
"Suffix": "_9",
"Templatefieldname": "_images"
},
{
"Prefix": "",
"Suffix": "_10",
"Templatefieldname": "_images"
}
]
This is what i get in litium insights
{
"_index": ".ds-logs-lsc.apps-0a2f4s.prod-2024.04.30-000001",
"_type": "_doc",
"_id": "0pf4k5IB46iVmNSySCQK",
"_version": 1,
"_score": 1,
"_source": {
"data_stream": {
"dataset": "lsc.apps",
"type": "logs",
"namespace": "0a2f4s.prod"
},
"transaction": {
"id": "00-e79849d42242d5c028a10f142274b689-e1d27d09c98c689c-00"
},
"@timestamp": "2024-10-16T06:16:12.004Z",
"parent": {},
"log": {
"logger": "Litium.AddOns.ProductMediaMapper.ProductMediaMapper",
"offset": 503481032,
"level": "Info",
"file": {
"path": "/logs/dotnet.json"
}
},
"agent": {
"version": "7.17.6",
"name": "litium--app-lc-litium-container-dotnet-b7b5b77b5-pbhhf",
"ephemeral_id": "0885adb1-8975-44ab-a386-19b25465a724",
"hostname": "litium--app-lc-litium-container-dotnet-b7b5b77b5-pbhhf",
"type": "filebeat",
"id": "6916135b-4e97-4c6c-9146-76530e207010"
},
"message": "Starting to map: 1 files to to articles",
"ecs": {
"version": "1.12.0"
},
"trace": {
"id": "e79849d42242d5c028a10f142274b689"
},
"process": {
"pgid": "01"
},
"tags": [
"lsc.apps",
"beats_input_codec_json_applied"
],
"client": {
"user": {}
},
"@version": "1",
"event": {
"timezone": "Etc/UTC",
"created": "2024-10-16T06:16:14.021Z"
},
"span": {
"id": "e1d27d09c98c689c"
},
"service": {
"version": "8.18.1"
},
"host": {
"name": "litium--app-lc-litium-container-dotnet-b7b5b77b5-pbhhf"
},
"properties": {
"json": "{ \"Count\": 1 }"
},
"input": {
"type": "filestream"
},
"@timestamp_nano": "2024-10-16T06:16:12.0040544Z",
"lsc": {
"app": {
"version": "3.0.0",
"type": "litium-platform",
"id": "litium"
},
"environment": {
"name": "Prod",
"id": "prod"
},
"subscription": {
"name": "El-Björn AB",
"id": "0a2f4s"
},
"resource": {
"version": "3.0.0",
"name": "app",
"type": "litium-container-dotnet",
"id": "app"
}
},
"error": {},
"type": "lsc.apps"
},
"fields": {
"input.type.keyword": [
"filestream"
],
"process.pgid.keyword": [
"01"
],
"type": [
"lsc.apps"
],
"lsc.subscription.name": [
"El-Björn AB"
],
"log.logger": [
"Litium.AddOns.ProductMediaMapper.ProductMediaMapper"
],
"lsc.environment.name": [
"Prod"
],
"agent.hostname.keyword": [
"litium--app-lc-litium-container-dotnet-b7b5b77b5-pbhhf"
],
"transaction.id": [
"00-e79849d42242d5c028a10f142274b689-e1d27d09c98c689c-00"
],
"agent.type": [
"filebeat"
],
"trace.id": [
"e79849d42242d5c028a10f142274b689"
],
"lsc.app.type": [
"litium-platform"
],
"lsc.resource.id": [
"app"
],
"@version": [
"1"
],
"log.level": [
"Info"
],
"agent.name": [
"litium--app-lc-litium-container-dotnet-b7b5b77b5-pbhhf"
],
"host.name": [
"litium--app-lc-litium-container-dotnet-b7b5b77b5-pbhhf"
],
"event.timezone": [
"Etc/UTC"
],
"properties.json": [
"{ \"Count\": 1 }"
],
"@timestamp_nano": [
"2024-10-16T06:16:12.0040544Z"
],
"data_stream.namespace": [
"0a2f4s.prod"
],
"lsc.subscription.id": [
"0a2f4s"
],
"span.id": [
"e1d27d09c98c689c"
],
"@version.keyword": [
"1"
],
"input.type": [
"filestream"
],
"lsc.app.id": [
"litium"
],
"lsc.resource.name": [
"app"
],
"log.offset": [
503481032
],
"agent.hostname": [
"litium--app-lc-litium-container-dotnet-b7b5b77b5-pbhhf"
],
"message": [
"Starting to map: 1 files to to articles"
],
"process.pgid": [
"01"
],
"data_stream.type": [
"logs"
],
"tags": [
"lsc.apps",
"beats_input_codec_json_applied"
],
"lsc.app.type.keyword": [
"litium-platform"
],
"properties.json.keyword": [
"{ \"Count\": 1 }"
],
"@timestamp": [
"2024-10-16T06:16:12.004Z"
],
"service.version": [
"8.18.1"
],
"agent.id": [
"6916135b-4e97-4c6c-9146-76530e207010"
],
"ecs.version": [
"1.12.0"
],
"log.file.path": [
"/logs/dotnet.json"
],
"lsc.app.version": [
"3.0.0"
],
"data_stream.dataset": [
"lsc.apps"
],
"event.created": [
"2024-10-16T06:16:14.021Z"
],
"agent.ephemeral_id": [
"0885adb1-8975-44ab-a386-19b25465a724"
],
"agent.version": [
"7.17.6"
],
"lsc.environment.id": [
"prod"
],
"lsc.resource.version": [
"3.0.0"
],
"lsc.resource.type": [
"litium-container-dotnet"
]
}
}
Litium version: [8.18.0] React Accelerator Project