Activity Feed
- Posted Re: extracting the first 3 characters from a field? on Splunk Search. 10-29-2023 05:16 AM
- Tagged Re: extracting the first 3 characters from a field? on Splunk Search. 10-29-2023 05:16 AM
- Tagged Re: extracting the first 3 characters from a field? on Splunk Search. 10-29-2023 05:16 AM
- Tagged Re: extracting the first 3 characters from a field? on Splunk Search. 10-29-2023 05:16 AM
- Tagged Re: extracting the first 3 characters from a field? on Splunk Search. 10-29-2023 05:16 AM
- Tagged Re: extracting the first 3 characters from a field? on Splunk Search. 10-29-2023 05:16 AM
- Posted Re: Why am I receiving "dashboard version is missing." message after upgrading (on prem) from 8.2.6 to 9.0.0.1 on Dashboards & Visualizations. 01-24-2023 12:12 AM
- Karma Re: "dashboard version is missing." for mykol_j. 01-24-2023 12:12 AM
- Posted Re: Splunk eNcore not receiving any Data on All Apps and Add-ons. 09-25-2022 01:01 AM
- Posted Splunk Addon builder - How do I Update a stanza value after config? on All Apps and Add-ons. 03-12-2022 08:29 AM
- Karma Re: Splunk Add-On Builder: Is there any documentation or information about the helper functions? for cmeerbeek. 03-12-2022 08:05 AM
Topics I've Started
Subject | Karma | Author | Latest Post |
---|---|---|---|
0 |
10-29-2023
05:16 AM
I am not sure if this option was available in 2015 but as of today the easier way to do this would be with the use of one of the text functions with the EVAL command. Usage: substr(<str>,<start>,<length>) In your case: | eval n=substr("your_string", 1, 3)
... View more
01-24-2023
12:12 AM
Yes, as simple as that.
... View more
03-12-2022
08:29 AM
As part of an TA that I am building, I have a requirement to change a few of the values in /apps/my_app/local/inputs.conf during the code run time .
Scenario: My code will retrieve an oauth2_access_token and oauth2_refresh_token every hour and this needs to be updated in the inputs.conf. Any insight on how to achieve this?
As far as I have checked, no helper functions exist for the same.
An alternative would be to keep another file somewhere inside the TA's directory to keep the latest values for these tokens. But is there a way we could get the actual app directory path from the script? using os.get_cwd is giving me the path : "/". Is this only during testing and it will change accordingly during the actual run ?
... View more
Labels
- Labels:
-
development