Splunk Search

I want to fetch the account name during configuration

PoojaDevi
Loves-to-Learn

I have custom validator class in which, Based on the input selected by the customer, i will update in the inputs conf file during configuration. But I encounter that, during configuration under name field the account name is sent, but during the data validation, it does not present in the dictionary,

Basically what i want is  I want to have the account name during configuration time.

Labels (1)
0 Karma

PoojaDevi
Loves-to-Learn

Any update on the query shared😀

0 Karma

isoutamo
SplunkTrust
SplunkTrust

In Splunk’s Slack user groups is an own channel for UCC. Maybe they could help you with this case? You can found it here https://splunkcommunity.slack.com/archives/C03SG3ZL4S1

0 Karma

livehybrid
Super Champion

Hi @PoojaDevi 

Are you using UCC Framework to build this app? Can you provide a little more of your code? Have you tried adding a log method to print out what is passed to the function? Can you share what is sent?

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

0 Karma

PoojaDevi
Loves-to-Learn

Yes Im using ucc framework to build the app.

Im using custom validator class  to the validate the configuration field. 

This is the data value sent to validate function. As I debug the code only the field data is set to the data during validate method invocation.

 

 

When I see the account validator python file where name is set as None. 

 

Basically my need is during the configuration validation, I want to know the account name. How to fetch this account name ?

 

 

PoojaDevi_1-1751463160659.png

PoojaDevi_0-1751463041583.png

Tags (1)
0 Karma

PoojaDevi
Loves-to-Learn

Yes let me explain it clear

Im using Python add on 

 

PoojaDevi_0-1751450571564.png

 This page will be shown during the configuration phase. Where Im getting the Input Data, Once customer chosen the input data, i will be added in the inputs.con file with the global account provided.

Its all happening in the custom json validator file. I want to get the global account name for saving the input details in the inputs.conf file. I could not able to get it in the data

def validate(self,value, data😞 
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @PoojaDevi ,

could you better detail your request? because nothing that said is clear for me:

  • what is the product you're using (Splunk Enterprise, an app, what else)?
  • are you speaking of the input phase or search?
  • what do you mean with dictionary?
  • what do you mean with data validation?
  • what do you mean with configuration time?

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Deep Dive into Federated Analytics: Unlocking the Full Power of Your Security Data

In today’s complex digital landscape, security teams face increasing pressure to protect sprawling data across ...

Your summer travels continue with new course releases

Summer in the Northern hemisphere is in full swing, and is often a time to travel and explore. If your summer ...

From Alert to Resolution: How Splunk Observability Helps SREs Navigate Critical ...

It's 3:17 AM, and your phone buzzes with an urgent alert. Wire transfer processing times have spiked, and ...