Activity Feed
- Karma Re: Splunk REST Modular Input - POST requests? for Damien_Dallimor. 06-05-2020 12:46 AM
- Karma Re: starting with javascript sdk for Neeraj_Luthra. 06-05-2020 12:46 AM
- Karma Monitor directory containing zip files for gelica. 06-05-2020 12:46 AM
- Karma Re: Minimal capabilities required for adding events via Splunk REST API for LukeMurphey. 06-05-2020 12:46 AM
- Karma Re: DB Connect does not work when enableSplunkdSSL=false for araitz. 06-05-2020 12:46 AM
- Got Karma for Re: Logging into Splunk SDK gives 404 error. 06-05-2020 12:46 AM
- Got Karma for Get events into splunk using Javascript SDK - Internet Explorer 8. 06-05-2020 12:46 AM
- Got Karma for DB Connect does not work when enableSplunkdSSL=false. 06-05-2020 12:46 AM
- Got Karma for DB Connect does not work when enableSplunkdSSL=false. 06-05-2020 12:46 AM
- Got Karma for DB Connect does not work when enableSplunkdSSL=false. 06-05-2020 12:46 AM
- Got Karma for DB Connect does not work when enableSplunkdSSL=false. 06-05-2020 12:46 AM
- Posted Re: Get events into splunk using Javascript SDK - Internet Explorer 8 on Splunk Dev. 10-17-2013 11:03 AM
- Posted Re: DB Connect does not work when enableSplunkdSSL=false on Splunk Search. 09-11-2013 10:05 AM
- Posted Re: DB Connect does not work when enableSplunkdSSL=false on Splunk Search. 08-02-2013 04:00 AM
- Posted Re: Get events into splunk using Javascript SDK - Internet Explorer 8 on Splunk Dev. 08-02-2013 03:33 AM
- Posted DB Connect does not work when enableSplunkdSSL=false on Splunk Search. 07-26-2013 03:18 AM
- Tagged DB Connect does not work when enableSplunkdSSL=false on Splunk Search. 07-26-2013 03:18 AM
- Tagged DB Connect does not work when enableSplunkdSSL=false on Splunk Search. 07-26-2013 03:18 AM
- Tagged DB Connect does not work when enableSplunkdSSL=false on Splunk Search. 07-26-2013 03:18 AM
- Tagged DB Connect does not work when enableSplunkdSSL=false on Splunk Search. 07-26-2013 03:18 AM
Topics I've Started
Subject | Karma | Author | Latest Post |
---|---|---|---|
4 | |||
0 | |||
1 | |||
0 | |||
0 |
10-17-2013
11:03 AM
Do you try to run it under a web server, or a local html placed in file://...?
If using a web server, you should be able to open a Web Developer Console (F12 or something) and see whether the browser create a GET request for this js file or not. If yes, you should get HTTP "200 OK" or "404 Not Found".
... View more
09-11-2013
10:05 AM
hi.
a new version of dbx (1.1) was released, but this constraint is still alive.
won't this issue be fix sometime? is there any significant rationale for this?
... View more
08-02-2013
04:00 AM
Hi. do you have any time estimation for this to be solved and officially released?
... View more
08-02-2013
03:33 AM
i'm able to reproduce it. where should I open a bug?
... View more
07-26-2013
03:18 AM
4 Karma
Hi.
For some reasons, I turned off SSL for Splunk REST API. Everything is fine, except the Splunk DB Connect app.
jbridge is failing to start, after the SSL change:
DEBUG Setting up java Environment: app=dbx, cfg_name=java, cfg_stanza=java, java_home=None
DEBUG JAVA_HOME=C:\Program Files\Java\jre7
INFO Checking for obsolete java libraries in C:\Program Files\Splunk\etc\apps\dbx\bin\lib
DEBUG Starting JavaBridgeServer...
DEBUG Executing (native) CMD C:\Program Files\Java\jre7\bin\java.exe -cp .....
-Dsplunk.app.ctx=dbx com.splunk.bridge.JavaBridgeServer 1368
INFO Started JavaBridgeServer PID=3868
DEBUG win32 handler registered
ERROR Java process returned error code 1! Error: initializing Splunk context...
Exception in thread "main" com.splunk.config.SplunkConfigurationException:
IO Error while reading configuration from Splunkd: javax.net.ssl.SSLException:
Unrecognized SSL message, plaintext connection?
at com.splunk.config.rest.RESTAdapter.request(RESTAdapter.java:195)
at com.splunk.config.rest.RESTAdapter.readConfig(RESTAdapter.java:203)
...
at com.splunk.env.SplunkContext.getConfigStanza(SplunkContext.java:313)
at com.splunk.env.SplunkContext.initialize(SplunkContext.java:128)
at com.splunk.bridge.JavaBridgeServer.main(JavaBridgeServer.java:34)
...
DEBUG JavaBridgeServer terminated
Did I miss a config options for dbx app, which sets SSL to false?
If there's no such options, is this case a known issue?
Any suggested work around?
... View more
07-11-2013
10:54 AM
can somebody reproduce this, in order to confirm that it's not a special case of me?
... View more
07-09-2013
01:33 PM
It's working, thank you!
BTW, "edit_tcp" is not so indicative description... 😕
... View more
07-09-2013
11:15 AM
ineeman,
pasting it here is limited in charcters amount, so I'll edit the original question, if you don't care.
... View more
07-09-2013
10:13 AM
Hi,
I'm trying to add events into an existing index, via the REST API (specifically, using javascript-sdk).
Everything works fine when using a powerful user/role.
Now, I'm trying to limit the capabilities of that user, but cannot find any relevant capability for adding data into index, via the REST API.
What are the "least privileges" in this case?
... View more
- Tags:
- capability
- events
- rest
07-08-2013
11:45 PM
1 Karma
If this code is running from server-side, the HttpProxy is not required. you can use a pure splunkjs.Http object as the first parameter to Service creation.
... View more
07-08-2013
12:12 PM
what a quick response! i'll test it in a day or two. thanks!
... View more
07-08-2013
11:53 AM
1 Karma
Hi,
I'm trying to send data into splunk index, using splunkjs.Service.Index.submitEvent method, as shown in the example (look for "To add data directly to an index" paragraph). It works fine under FF and Chrome, but not in IE8.
When trying to execute myindexes.item("test_index") , the myindexes is null. I verified that it is OK and non-null before the fetch callback is executed.
In the console, I see an error saying "Error in parsing JSON" , without any additional data/params.
Any ideas?
Edit:
I have no IE8 to reproduce it right now. When running in IE10 everything is working fine (like FF and Chrome). But, when choosing compatibility view (which simulates IE7), the problem does occur. This can be reproduced easily, no specific configuration is required.
the code is very simple (almost purely copied from the example):
var http = new splunkjs.ProxyHttp("/proxy");
// Create a Service instance and log in
var service = new splunkjs.Service(http, {
username: "admin",
password: "changeme",
scheme: "https",
host: "localhost",
port:"8089",
version:"5.0"
});
// Get the collection of indexes
var myindexes = service.indexes();
// Get an index to send events to
myindexes.fetch(function(err, myindexes) {
var myindex = myindexes.item("main");
// Submit an event to the index
myindex.submitEvent("A new event", {
sourcetype: "mysourcetype"
}, function(err, result, myindex) {
console.log("Submitted event: ", result);
});
});
The normal network traffic goes like this ("output_mode=json" is omitted for readability):
(1) POST /proxy/services/auth/login
request body contains username and password
response contains a sessionKey
(2) GET /proxy/services/data/indexes?count=0
response contains a list of indexes details
(3) POST /proxy/services/receivers/simple?sourcetype=mysourcetype&index=main
request body contains the text of the event to be indexed
response contains a confirmation about the indexed event
When fails, the network traffic stops after the first request. the response seems to be alright: {"sessionKey":"................................"}
... View more
07-08-2013
11:31 AM
Hi!
The REST API Modular Input App is really good!
However, I suffer from a situation where the application suddenly stops working. Well, The app itself does work, but the process which have to poll my REST API stops, and the only way to get it to continue polling, is to restart Splunk..
It happens when the site it have to poll is temporary down. I hold about 40 such input tasks, so this situation is likely to happen often.
When diving into the code, it seems that the "while True" catches very specific exceptions. In my case, requests.exceptions.ConnectionError is thrown from the first step ( requests.get ), so the whole loop is broken out.
Maybe, there should be a more robust mode (configurable), so no exception will break the loop?
... View more
06-24-2013
10:46 AM
Hi,
The new Splunk REST modular input (which is still beta) is very nice and usefull. I'm using it to poll jmx via Jolokia webapp, and it works great.
But, there are some cases you want to poll the REST interface by using POST request. for example, if I want to query multiple MBeans. Jolokia supports this only via POST request. I'm sure that there are many more examples.
How can I solve it?
REST API Modular Input App
... View more