Activity Feed
- Karma Re: SVG specific version for dashboard studio cloropleth map ? for ryanoconnor. 10-22-2021 07:45 AM
- Posted Re: SVG specific version for dashboard studio cloropleth map ? on All Apps and Add-ons. 10-22-2021 07:43 AM
- Posted Re: SVG specific version for dashboard studio cloropleth map ? on All Apps and Add-ons. 10-22-2021 12:20 AM
- Posted Can someone confirm if this is a BUG in Dashboard studio?: Filling refresh parameters using #Number input causes blank on Dashboards & Visualizations. 09-03-2021 08:05 AM
- Posted SVG specific version for dashboard studio cloropleth map ? on All Apps and Add-ons. 09-02-2021 05:52 AM
- Posted Missing seconds in Realtime query with 10ms span on python-sdk on Splunk Search. 11-25-2020 02:07 AM
- Karma Re: Is there a way to set a timeout value to a splunk connection using python SDK ? for DavidHourani. 06-05-2020 12:50 AM
- Karma Re: Is there a way to set a timeout value to a splunk connection using python SDK ? for VatsalJagani. 06-05-2020 12:50 AM
- Posted Re: Is there a way to set a timeout value to a splunk connection using python SDK ? on Splunk Dev. 06-18-2019 08:21 AM
- Posted Re: Is there a way to set a timeout value to a splunk connection using python SDK ? on Splunk Dev. 06-18-2019 08:19 AM
- Posted Re: Is there a way to set a timeout value to a splunk connection using python SDK ? on Splunk Dev. 06-18-2019 08:15 AM
- Posted Re: Is there a way to set a timeout value to a splunk connection using python SDK ? on Splunk Dev. 06-18-2019 05:35 AM
- Posted Is there a way to set a timeout value to a Splunk connection using python SDK ? on Splunk Dev. 06-18-2019 01:47 AM
- Tagged Is there a way to set a timeout value to a Splunk connection using python SDK ? on Splunk Dev. 06-18-2019 01:47 AM
- Tagged Is there a way to set a timeout value to a Splunk connection using python SDK ? on Splunk Dev. 06-18-2019 01:47 AM
- Tagged Is there a way to set a timeout value to a Splunk connection using python SDK ? on Splunk Dev. 06-18-2019 01:47 AM
- Tagged Is there a way to set a timeout value to a Splunk connection using python SDK ? on Splunk Dev. 06-18-2019 01:47 AM
- Tagged Is there a way to set a timeout value to a Splunk connection using python SDK ? on Splunk Dev. 06-18-2019 01:47 AM
- Posted Re: How to set up my Splunk REST API with self-signed certificates and how to configure for the REST API 8089 port? on Getting Data In. 06-01-2018 01:39 AM
- Posted Re: How to set up my Splunk REST API with self-signed certificates and how to configure for the REST API 8089 port? on Getting Data In. 04-27-2018 02:08 AM
Topics I've Started
Subject | Karma | Author | Latest Post |
---|---|---|---|
0 | |||
0 | |||
0 | |||
0 | |||
0 |
10-22-2021
07:43 AM
Hey ! Thanks again for your response. Understood the functionnality of the <g> tag now ! Thank you ! , I guess i can say the the problem come from the svg document of France i found, be cause the whole "France" is in a <g> tag, and corsica island is in another <g> tag. <g> tag group the whole sub parameters forced on the same ID ( the g one) which make impossible to dissociate things sub to the <g> tag even if they are explicitly set on each <path> sub to <g>. But the "g" tag in the document i provided does not contains any id="", but path does, however its not working. Here's a dashboard code i wrote using the "raw" french map ( link i posted in the original post ) which should work but does not, since there is no id="" in <g> i dont understand why it does not work : https://pastebin.com/xXja5e9i Or maybe the fill="#8ad" in the "g" tag overwrite the whole "path" markup as id does ? EDIT : I tried to add fill=\"#000000\" stroke=\"#fff\" stroke-width=\".5\" Between each <path AND id="">, for instance, replacing : <path id=\"dep_2a\" BY <path fill=\"#000000\" stroke=\"#fff\" stroke-width=\".5\" id=\"dep_2a\" In the pastebin i pasted few lines ahead : And it works, what does explain this behaviour as "fill" "stroke" and "stroke-width" are already referenced in the <g> ahead. I don't understand I also verified that my france's SVG was valid, and he is : https://validator.w3.org/check?uri=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Fb%2Fb6%2FD%25C3%25A9partements_de_France-simple.svg&charset=%28detect+automatically%29&doctype=Inline&group=0 Have a good one !
... View more
10-22-2021
12:20 AM
Yep after deleting <g> tags everywhere and added "name=", "stroke-width=" "stroke=" and "fill=" in every <path>. A response from splunk team would be nice though.
... View more
09-03-2021
08:05 AM
Hello there,
I found what might be bug in dashboard studio.
I wanted to fill the "refresh" parameters on dataSource using a token from a Number input field.
When i edit the dashboard script to fill the "refresh" parameter with my token ($my_refresh_token$) and validate, i got a blank page, have to refresh the dashboard to make it work again, and the change is not saved ( when i fill the parameter with something like "60s" it works.)
Can someone confirm this ?
Best regards,
... View more
Labels
- Labels:
-
Dashboard Studio
09-02-2021
05:52 AM
Hello there, I have a question, i'm trying to import a custom SVG map in cloropleth map visualisation in dashboard studio. I had a problem with a classic svg map, a map of france : The svg files contains elements like <g> parts, which seems to not work with dashboard studio, i had to edit directly the .svg file and delete the <g> everywhere. And also had to add "name=", "stroke-width=" "stroke=" and "fill=" in every <path>, without them, the visualisation wasn't working. I wonder if there is a specific version / format of SVG files to use with dashboard studios ? Even import the map in InkScape and exporting like in the example ( documentation : https://www.splunk.com/en_us/blog/platform/painting-with-data-choropleth-svg.html ) didn't worked. The map of France i used ( before editing it ) : https://upload.wikimedia.org/wikipedia/commons/b/b6/D%C3%A9partements_de_France-simple.svg Best regards,
... View more
Labels
- Labels:
-
dashboard
11-25-2020
02:07 AM
Hi, i'm trying to get Splunk realtime results using splunk's python-sdk. Everything works well, but in the results, there is a missing second : I don't know whether there is a limitation or if I missed a parameter in the query? This is really embarrassing. Here's my python code : And here are the results: As you can see, the entire second : '2020-11-25T10:42:26' is missing, and will never appear in the results. Do you have any idea where this might come from? I even tried to "manually" create a timechart using ' search index=_internal bin _time span=10ms | chart count by _time'; and this this case, there is a missing millisecond (not second ). There is a missing second every 5-10 results I can't figure out why this is not working properly.
... View more
Labels
- Labels:
-
timechart
06-18-2019
08:21 AM
Hey, thank you very much. For the ones who have the same problem, here's the solution :
I created a hanlder, then put the handler in parameter of the connect method.
It would have been easier to have a "timeout" parameter in the connect method, but well.
connectionHanlder = binding.handler(timeout = self.SPLUNK_TIMEOUT)
try:
self.service = client.connect(
host=self.SPLUNKSERVER,
port=self.SPLUNKPORT,
username=self.SPLUNKUSERNAME,
password=self.SPLUNKPASSWORD,
handler = connectionHanlder
)
except Exception as e:
logging.info("Error connecting to the splunk platform : " + str(e))
... View more
06-18-2019
08:19 AM
Hello, thank's you for your reply, but the solution with the handler worked well, and i wont change my python sdk at every installation ( the code is for production, i will probably forgot to make this change at every deployment )
Cdt.
... View more
06-18-2019
08:15 AM
Hi, thank's all, the solution was, as said below, to code an hanlder like that :
connectionHanlder = binding.handler(timeout = self.SPLUNK_TIMEOUT)
and then adding the hanlder to the connect method.
I won't change the python SDK because my program is for production and i wont install pythonsdk with pip and then modify it at every installation.
Thank's for the reply, cdt.
... View more
06-18-2019
05:35 AM
Thank's for your response, for the others who are searching for the solution, I did this :
connectionHanlder = binding.handler(timeout = 1)
try:
self.service = client.connect(
host=self.SPLUNKSERVER,
port=self.SPLUNKPORT,
username=self.SPLUNKUSERNAME,
password=self.SPLUNKPASSWORD,
handler = connectionHanlder
)
except Exception as e:
logging.info("Error connecting to the splunk platform : " + str(e))
Would'nt it have been easier to set a "timeout = 1" parameter in the connect function ?
Have a nice day.
... View more
06-18-2019
01:47 AM
Hi, I have some problem to set a timeout value to Splunk connection with python SDK.
I'm using this :
self.service = client.connect(
host=self.SPLUNKSERVER,
port=self.SPLUNKPORT,
username=self.SPLUNKUSERNAME,
password=self.SPLUNKPASSWORD)
except Exception as e:
logging.info("Error connecting to the splunk platform : " + str(e))
But the default timeout value is 75 seconds, which is too long. Can't we set a timeout value in the parameters? Adding "timeout = 1" in the client.connect method's parameters doesn't have any effect.
Example: My Splunk server is at 192.168.1.10. When I try to connect 192.168.1.10 when the Splunk server is off, it takes 75 seconds to timeout, or if I set the IP to 192.168.1.11 ( a machine where there is no server at all ), it takes also 75 seconds to timeout.
The problem is that I have a UI where the user can type an IP address, and of course, i won't wait 75 seconds to inform the user that they typed a wrong IP address or that the server is not started.
I've searched on the Splunk documentation without results. Waiting for your help, thanks.
... View more
06-01-2018
01:39 AM
up please im still stuck
... View more
04-27-2018
02:08 AM
Up :
When i set the option "requireClientCert = false" instead of true, i can connect myself on the 8089 interface (https://localhost:8089) with my own certificate added on my computer. Then when i try to connect to "https://[myip]:8089" with another computer on the same local network, it request a valid certificate that the computer hasnt, so it cant connect
. But the splunkweb interface is still accesible via "https://[myi p]:8000" from any other computer.
I dont know how its works ??
... View more
04-25-2018
07:46 AM
Hello, after 2 days of trying hard on this problem, I finally give up and now I am posting it here.
Well, I need to set up my Splunk REST API with my own self-signed certificates. I've already configured the usage of my own self-signed certificates for SplunkWeb, but I'm stuck on the configuration for the REST API 8089 Port.
Here's the problem :
I've already generated my own server certificates thanks to the Splunk docs :
located in /Application/Splunk/etc/auth/myNewCerts
Here's my configuration file server.conf in /Applications/Splunk/etc/system/local
When I run commands to verify the matches between my certs and my keys, they match and when I start Splunk everything looks ok.
But when I check the log file at /Applications/Splunk/var/log/splunk/splunkd.log :
$ tail -f splunkd.log | grep ERR
04-25-2018 16:42:50.272 +0200 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/splunk_instrumentation/bin/on_splunk_start.py" ERROR:InstrumentationInit:[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:676)
04-25-2018 16:42:52.779 +0200 ERROR ExecProcessor - message from "python /Applications/Splunk/etc/apps/splunk_monitoring_console/bin/dmc_config.py" Socket error communicating with splunkd (error=[X509: KEY_VALUES_MISMATCH] key values mismatch (_ssl.c:2768)), path = /services/shcluster/config?output_mode=json
openssl version : OpenSSL 1.0.2o 27 Mar 2018
OS version : macOS Sierra Version 10.12.6 (16G29)
Python version : Python 2.7.14
Sorry for my bad English, waiting for help.
... View more