Activity Feed
- Got Karma for search in background. 07-25-2022 07:02 AM
- Got Karma for Re: query for a list of hosts. 05-18-2021 10:32 AM
- Got Karma for Re: query for a list of hosts. 09-22-2020 09:05 AM
- Karma Re: how to open localhost splunk using putty? for jkat54. 06-05-2020 12:48 AM
- Got Karma for How to add autoRun=false, and only run a search when I click on a submit button in an HTML dashboard?. 06-05-2020 12:48 AM
- Got Karma for How can I add icons that replace the cell.value on my table without using rangemap?. 06-05-2020 12:47 AM
- Got Karma for How can I add icons that replace the cell.value on my table without using rangemap?. 06-05-2020 12:47 AM
- Got Karma for How to color lines in a table by clicking a cell?. 06-05-2020 12:47 AM
- Got Karma for Re: query for a list of hosts. 06-05-2020 12:47 AM
- Posted Re: how to higlight cell within html dashboards on splunk 7 ? on Dashboards & Visualizations. 10-22-2018 12:48 AM
- Posted Re: how to higlight cell within html dashboards on splunk 7 ? on Dashboards & Visualizations. 09-25-2018 01:43 AM
- Posted Re: How do you add a field/column to an existing kvstore? on Knowledge Management. 09-25-2018 01:35 AM
- Posted Re: Javascript for dashboard not working in Splunk 7 on Dashboards & Visualizations. 09-14-2018 06:45 AM
- Posted Re: Javascript for dashboard not working in Splunk 7 on Dashboards & Visualizations. 09-13-2018 07:55 AM
- Posted Re: Javascript for dashboard not working in Splunk 7 on Dashboards & Visualizations. 09-12-2018 06:36 AM
- Posted Re: how to higlight cell within html dashboards on splunk 7 ? on Dashboards & Visualizations. 09-10-2018 09:15 AM
- Posted Re: how to higlight cell within html dashboards on splunk 7 ? on Dashboards & Visualizations. 09-10-2018 09:13 AM
- Posted Re: how to higlight cell within html dashboards on splunk 7 ? on Dashboards & Visualizations. 09-10-2018 09:11 AM
- Posted Re: how to higlight cell within html dashboards on splunk 7 ? on Dashboards & Visualizations. 09-10-2018 09:10 AM
- Posted Re: how to higlight cell within html dashboards on splunk 7 ? on Dashboards & Visualizations. 09-06-2018 12:33 AM
Topics I've Started
Subject | Karma | Author | Latest Post |
---|---|---|---|
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 | |||
0 |
10-22-2018
12:48 AM
anyone can help for this topic ?
... View more
09-25-2018
01:43 AM
hi @Justinboucher0
i update an app to show us what's my problem
i try to color the cell "id" on click event.
https://splunkbase.splunk.com/app/4184/release/2.0.0/download/?origin=asc
the app is pending approval and is not yet publicly visible but your are able to download it
... View more
09-25-2018
01:35 AM
if still not working can you show us your conf?
... View more
09-14-2018
06:45 AM
@niketnilay, i submit an app exemple (xml and html dashboards)
my objectif is simple, if i click on cell "id" i need to highlight the value.
you are able to download/edit the app https://splunkbase.splunk.com/app/4184/
if you have any solution for me i'm interested
... View more
09-13-2018
07:55 AM
@niketnilay yes of course i bump and debug/refresh ^^
when i add setTimeout() nothing change.
and yes i use console.log to show where i am and i found that any render() function not loaded.
but sometime it work but make a lot a lot of time :(.
... View more
09-12-2018
06:36 AM
i have the same problem and i don't find any solution.
nothing work (xml or html) dashboard.
splunk wont execute tableView.on('rendered', function() {
i tryed with the delay but nothing happen 😞
what's happen with splunk 7 ? why is being complicated for splunkjs stack right there
... View more
09-10-2018
09:15 AM
i use your solution from the beginning but the problem that the render function not loaded
... View more
09-10-2018
09:13 AM
i tryied setTimeout() delay but nothing change.
the render function wont load
... View more
09-10-2018
09:11 AM
<dashboard script="jsrender.js">
<label>tryrender</label>
<row>
<panel>
<html>
<h3>list of data</h3>
<div id="table_search"></div>
</html>
</panel>
</row>
</dashboard>
... View more
09-10-2018
09:10 AM
i have a lot of html dashboards.
when i try to use simple xml with js extension i can't retrieve the data from my handle event.
e.data return undefined.
/* jsrender.js */
require([
"jquery",
"splunkjs/mvc",
"splunkjs/mvc/searchmanager",
"splunkjs/mvc/tableview",
"splunkjs/mvc/simplexml/ready!"
],
function($, mvc, SearchManager, TableView) {
new SearchManager({
id: "search_resulttable",
search: "|inputlookup kv_data",
preview: false,
cache:true
});
new TableView({
id: "table_search",
managerid: "search_resulttable",
drilldown: "none",
wrap: true,
el: $("#table_search")
}).render();
$("#table_search").on("click", function(e) {
e.preventDefault();
console.log(e.data);
});
});
... View more
09-06-2018
12:33 AM
thx for your reply i tryied your code.
but the problem is the same, the range-cell added only if i switch the paginator 😞
the message into console : table Renderer not show up directly
so the function tableView.on('rendered', function() { not called correctly
splunk 7 make me crazy
... View more
09-05-2018
08:44 AM
that's what i'm using but the problem is not here. you can refer to my report below
... View more
09-05-2018
07:16 AM
this is my dashboard html
in my dashboard i try to call a function within a loader load.js
i edited the application : https://splunkbase.splunk.com/app/1603/
table_row_highlighting.js
if (value == 1) {
$td.addClass('range-cell').addClass('range-elevated');
}
to highlight 'active_hist_searches' when the value equal to 2.
the highlight should work only if the handler "onclick" is done.
but not work 😞
... View more
09-05-2018
05:06 AM
thx for your reply i investigate and i found the problem is not in the event handler but in event render
if you run the dashboard : custom_table_row_highlighting
from : https://splunkbase.splunk.com/app/1603/
the render for highlight called by the js not work in splunk 7
... View more
09-05-2018
02:22 AM
hi,
i upgraded the splunk version from 6.4 to 7
i use a lot of html dashboards and i have some eventlistener "onlick" to highlight cells and rows.
that's work perfectly with splunk 6.4 but not on version 7.
why? how can i fix that ?
... View more
05-28-2018
02:08 PM
hi,
i have some experience with splunk search but i have some trouble with dynamic search.
i will make a simple exemple :
i have a dashboard where i use a panel table element containing a search based on indexsearch and kv store lookup.
my data is from and hadoop environnement. (so i can't use realtime search with map reduce i know it)
but now, if we are 4 users and someone update a value of a kv store. the both other users should know automatically the change.
how can i do that ?
... View more
02-23-2018
12:55 AM
hi VsplunkV,
for my problem to color a specific value within multivalued field, i overwrite the html content in source code by javascript implement.
require([
'underscore',
'jquery',
'splunkjs/mvc',
'splunkjs/mvc/tableview',
'splunkjs/mvc/simplexml/ready!'
], function (_, $, mvc, TableView) {
var CustomRangeRenderer = TableView.BaseCellRenderer.extend({
canRender: function (cell) {
// Enable this custom cell renderer for both the active_hist_searches and the active_realtime_searches field
return _(['fieldName1', 'fieldName2']).contains(cell.field);
},
render: function ($td, cell) {
if (cell.field === 'fieldName1') {
var valueDx = String(cell.value)
var html_content = "";
var tokens = [];
var separators = ['\\,'];
tokens = valueDx.split(new RegExp(separators.join('|'), 'g'));
for (var i = 0; i < tokens.length; i++) {
var numbers = parseFloat(tokens[i].split(":")[1]);
if (numbers == 7888) {
html_content = html_content + "<div tabindex=\"0\" class=\"multivalue-subcell\" style=\"color:#E80C0C;\" data-mv-index=\"" + i + "\">" + tokens[i] + "</div>";
} else {
html_content = html_content + "<div tabindex=\"0\" class=\"multivalue-subcell\" data-mv-index=\"" + i + "\">" + tokens[i] + "</div>";
}
}
$td.html(html_content).addClass('string');
}
}
});
mvc.Components.get("tableName").getVisualization(function (tableView) {
// Add custom cell renderer, the table will re-render automatically.
tableView.addCellRenderer(new CustomRangeRenderer());
});
});
... View more
02-22-2018
01:44 PM
hi yes i did it.
i will add the answer tomorow
it's not difficult, i use the same cellrender for highlight and i overwrite the html content to get the good class.
so it's only javascript and css, don't worry about the version of splunk.
my solution work on 6.3.3 to 7
... View more
02-21-2018
07:45 AM
hi
the format option still does not work in html.
i need to use a scale coloration for a dynamic table. but it's impossible for me to define a value.
... View more
11-28-2017
01:19 AM
hi
i triyed this solution but splunk return error
mySearch.data is not a function
... View more
06-13-2017
02:39 AM
yes i have this app but there is nothing around my question.
so thx for your reply
... View more
06-12-2017
04:09 AM
i found something but really what i want
document.getElementsByClassName("single-result-unit")[0].style.fill = "red";
... View more
06-12-2017
02:25 AM
in 2017 we can't do more with css?
... View more
06-12-2017
01:43 AM
ok this is what we have i we use a simple singlevalue, the result is alpha and the unit is F1
normal single value
now i need to get something like this :
the aim
but nothing work with css i think it's svg coloration.
... View more
06-09-2017
04:51 AM
i have a single value using nunber format (unit)
and i need to change color of only number format, not all result.
how can i do that?
... View more
- Tags:
- hunk
- singlevalue