Any idea why I can't enable acceleration for this simple transformation:
sourcetype=iis tag::host="aDC" OR tag::host="bDC" OR tag::host="cDC" | timechart count by tag::host
This worked:
sourcetype=iis | eval hosttag = if("tag::host" == "c" OR "tag::host" == "b" OR "tag::host" == "c", "tag::host", null()) | timechart count by tag::host
if I try "| timechart count by hosttag" I get a count named NULL instead.
This worked:
sourcetype=iis | eval hosttag = if("tag::host" == "c" OR "tag::host" == "b" OR "tag::host" == "c", "tag::host", null()) | timechart count by tag::host
if I try "| timechart count by hosttag" I get a count named NULL instead.
In an eval command, the single quotes are used to enclose field names that have special characters on the right side of the equals sign (=).
I'm curious what happens if you try this:
sourcetype=iis
| eval hosttag=if('tag::host'=="aDC" OR 'tag::host'=="bDC" OR 'tag::host'=="cDC"),'tag::host',null())
| timechart count by hosttag
I don't know if the single quotes around tag::host are needed or if this will even work at all. Just curious.
The single quotes are needed, and I was able to enable acceleration just fine, thank you. Can you let me know why this way worked?
But interesting, that way the hosttag var is not populated.
Did it work or not?
If not, can you show me what event types make those tags? I can then craft the search without tags.
Hello jairjr,
please read here: http://docs.splunk.com/Documentation/Splunk/6.5.3/Knowledge/Manageacceleratedsearchsummaries#Restric...
specially this: "In addition, be careful when accelerating reports whose base searches include tags, event types, search macros, and other knowledge objects whose definitions can change independently of the report after the report is accelerated. If this happens, the accelerated report can return invalid results."
Hi adonio thank you for the answer, I know that using tags is not a good practice but this is just a warning, it should let me enable acceleration. Shouldn't it?
can you enable acceleration on any search? try index = * | timechart count by host
Yes, I can even go to another saved report and enable it.