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
SplunkTrust
SplunkTrust

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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...