- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
09-30-2021 08:25 AM - edited 09-30-2021 08:33 AM
Hi Everyone,
I have Cortex XSOAR with SplunkPY running and fetching incidents. I am using Splunk classifier and Splunk incoming mapper by default.
Drill down is being enriched successfully and i can see it parsed at both classifier & mapper stages - see below screenshot
However, context is not splitting drill down details , It's all coming in one chunk of data and cannot be used in any playbook. - Below screenshot
Any ideas what might be causing this? Is there anywhere else to check that might affect Drilldown parsing in context?
09-30-2021 12:35 PM
I think you have a transform issue.
Look at the following link on YouTube to MOD44's PCSAE - Palo Alto Networks - Certification- Training- Domain 1
Skip ahead to 34:15, I think this will help you.
10-03-2021 01:59 AM
@Strunce thank you for your reply.
This video discusses splitting data at classifier level, but I have that already applied in my classifier & mapper as per the above screenshots. No transformations are present within my classifier or mapper.
I just created a complete new account with fresh installation and integration with a totally different Splunk instance and the same issue persists.
Do you happen to know how data is filled into context and what controls this process? should I dig into automations for pre-processing rules?
10-04-2021 12:57 AM
Hi @Rawabdeh , the fields you are showing (incident -> labels -> drilldown) are not being mapped. By default, each mapper has a couple of fields mapped. The rest of the fields are copied verbatim into the context data under "labels". This setting can be disable (if you wanted to) under the settings of the mapper under Advanced:
All data under the labels will be as presented by the source technology. If you would like the data parsed, you would need to alter the Splunk incoming mapper to map that field.
Do you know how you would like the data presented? As a table perhaps?
Regards
Adam
10-05-2021 07:13 AM - edited 10-05-2021 07:23 AM
Thank you for your contribution @ABurt
Actually drill down is supposed to look like the first screenshot (I'm using it in my playbooks as Drilldown.[0].Country.[0] >> maps to: Saudi Arabia in the first screenshot)
I have tried checking that box you mentioned and indeed, it stopped throwing all JSON details under incident.labels and I was able to use the custom field (mapped with drilldown values) I created. But that means I have to create a field for each value in each alert coming from Splunk and i don't think that's a feasible solution.
What's confusing me is that context had drill down parsed just the way it's seen in mapper and I built my playbooks based on this format. Out of nowhere it noticed empty data in sub-playbooks and found out about this issue. No changes were applied on any account
10-05-2021 07:28 AM
During the classification and mapping this is generally the way data is processed:
It looks as if the incoming mapper in screenshot 1 is populating a field named "drilldown" in the incident. This would honour the transformation happening at the mapper (i.e. the parseJSON transformer). The second screenshot, when data ends up in the labels, does not undergo any mapper rules such as the parse JSON.
In the first screenshot, is the "drilldown" appearing in the incident as its own field or is this under the same "labels" as in the second screenshot?
10-06-2021 04:59 AM
@ABurt This is exactly what's happening, context is not picking up this exact JSON parser.
Drill down is coming under label as shown in this screenshot
Here i say it again, it was all parsed before and i built my playbooks based on these values.
10-06-2021 06:05 AM
Has anything else changed since you built the playbooks. Such as updating XSOAR or any changes to Splunk?
10-06-2021 07:36 AM
That's what I've been trying to find out. the only changes I've made are on playbook inputs and classification. I have no idea how context parsing started behaving like this
10-06-2021 08:06 AM
I have just created 4 fields and mapped their values to drill down details and it's working fine. I know this isn't the best practice to create custom fields for each alert coming from Splunk. This was only for testing purposes.
I can confirm that this isn't related to drill down fetching or mapping. issue is narrowed down to context display i believe.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!