<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Why is search syntax highlighting not working in Splunk 6.5.2? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-search-syntax-highlighting-not-working-in-Splunk-6-5-2/m-p/367871#M108450</link>
    <description>&lt;P&gt;Our search heads syntax highlighting does not function for any of search commands. This is with search_syntax_highlighting = true for the user prefs. I'm on Splunk version 6.5.2.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;[general]&lt;BR /&gt;
search_syntax_highlighting = 1&lt;BR /&gt;
search_assistant = compact&lt;BR /&gt;
infodelivery_enabled = 0&lt;BR /&gt;
infodelivery_show_ad_modal = 1&lt;BR /&gt;
infodelivery_show_configure_modal = 1&lt;BR /&gt;
datasets:showInstallDialog = 1&lt;/EM&gt; &lt;/P&gt;

&lt;P&gt;What I do see if I look at the browser console output is this:&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Uncaught TypeError: Cannot read property 'forEach' of undefined&lt;BR /&gt;
at SPLHighlightRules.buildCommandTokens (&lt;A href="https://mysearchhead:8000/en-US/static/@67571ef4b87d/js/contrib/ace-editor/mode-spl.js:20:27" target="_blank"&gt;https://mysearchhead:8000/en-US/static/@67571ef4b87d/js/contrib/ace-editor/mode-spl.js:20:27&lt;/A&gt;)&lt;BR /&gt;
at SPLHighlightRules.buildRules (&lt;A href="https://mysearchhead:8000/en-US/static/@67571ef4b87d/js/contrib/ace-editor/mode-spl.js:82:76" target="_blank"&gt;https://mysearchhead:8000/en-US/static/@67571ef4b87d/js/contrib/ace-editor/mode-spl.js:82:76&lt;/A&gt;)&lt;BR /&gt;
at new SPLHighlightRules (&lt;A href="https://mysearchhead:8000/en-US/static/@67571ef4b87d/js/contrib/ace-editor/mode-spl.js:339:10" target="_blank"&gt;https://mysearchhead:8000/en-US/static/@67571ef4b87d/js/contrib/ace-editor/mode-spl.js:339:10&lt;/A&gt;)&lt;BR /&gt;
... SNIP ...&lt;BR /&gt;
at _require (eval at module.exports (&lt;A href="https://mysearchhead:8000/en-US/static/@A0893C21C54BF1F3227A8F08%E2%80%A62162F01813C1C30FC75598EC33A535BB92086/build/pages/enterprise/common.js:1:1" target="_blank"&gt;https://mysearchhead:8000/en-US/static/@A0893C21C54BF1F3227A8F08…2162F01813C1C30FC75598EC33A535BB92086/build/pages/enterprise/common.js:1:1&lt;/A&gt;), :88:37)&lt;BR /&gt;
at req (eval at module.exports (&lt;A href="https://mysearchhead:8000/en-US/static/@A0893C21C54BF1F3227A8F08%E2%80%A62162F01813C1C30FC75598EC33A535BB92086/build/pages/enterprise/common.js:1:1" target="_blank"&gt;https://mysearchhead:8000/en-US/static/@A0893C21C54BF1F3227A8F08…2162F01813C1C30FC75598EC33A535BB92086/build/pages/enterprise/common.js:1:1&lt;/A&gt;), :138:24)&lt;/EM&gt; &lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/190177-456780-nohighlighting.png" alt="alt text" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:18:50 GMT</pubDate>
    <dc:creator>sylim_splunk</dc:creator>
    <dc:date>2020-09-29T13:18:50Z</dc:date>
    <item>
      <title>Why is search syntax highlighting not working in Splunk 6.5.2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-search-syntax-highlighting-not-working-in-Splunk-6-5-2/m-p/367871#M108450</link>
      <description>&lt;P&gt;Our search heads syntax highlighting does not function for any of search commands. This is with search_syntax_highlighting = true for the user prefs. I'm on Splunk version 6.5.2.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;[general]&lt;BR /&gt;
search_syntax_highlighting = 1&lt;BR /&gt;
search_assistant = compact&lt;BR /&gt;
infodelivery_enabled = 0&lt;BR /&gt;
infodelivery_show_ad_modal = 1&lt;BR /&gt;
infodelivery_show_configure_modal = 1&lt;BR /&gt;
datasets:showInstallDialog = 1&lt;/EM&gt; &lt;/P&gt;

&lt;P&gt;What I do see if I look at the browser console output is this:&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Uncaught TypeError: Cannot read property 'forEach' of undefined&lt;BR /&gt;
at SPLHighlightRules.buildCommandTokens (&lt;A href="https://mysearchhead:8000/en-US/static/@67571ef4b87d/js/contrib/ace-editor/mode-spl.js:20:27" target="_blank"&gt;https://mysearchhead:8000/en-US/static/@67571ef4b87d/js/contrib/ace-editor/mode-spl.js:20:27&lt;/A&gt;)&lt;BR /&gt;
at SPLHighlightRules.buildRules (&lt;A href="https://mysearchhead:8000/en-US/static/@67571ef4b87d/js/contrib/ace-editor/mode-spl.js:82:76" target="_blank"&gt;https://mysearchhead:8000/en-US/static/@67571ef4b87d/js/contrib/ace-editor/mode-spl.js:82:76&lt;/A&gt;)&lt;BR /&gt;
at new SPLHighlightRules (&lt;A href="https://mysearchhead:8000/en-US/static/@67571ef4b87d/js/contrib/ace-editor/mode-spl.js:339:10" target="_blank"&gt;https://mysearchhead:8000/en-US/static/@67571ef4b87d/js/contrib/ace-editor/mode-spl.js:339:10&lt;/A&gt;)&lt;BR /&gt;
... SNIP ...&lt;BR /&gt;
at _require (eval at module.exports (&lt;A href="https://mysearchhead:8000/en-US/static/@A0893C21C54BF1F3227A8F08%E2%80%A62162F01813C1C30FC75598EC33A535BB92086/build/pages/enterprise/common.js:1:1" target="_blank"&gt;https://mysearchhead:8000/en-US/static/@A0893C21C54BF1F3227A8F08…2162F01813C1C30FC75598EC33A535BB92086/build/pages/enterprise/common.js:1:1&lt;/A&gt;), :88:37)&lt;BR /&gt;
at req (eval at module.exports (&lt;A href="https://mysearchhead:8000/en-US/static/@A0893C21C54BF1F3227A8F08%E2%80%A62162F01813C1C30FC75598EC33A535BB92086/build/pages/enterprise/common.js:1:1" target="_blank"&gt;https://mysearchhead:8000/en-US/static/@A0893C21C54BF1F3227A8F08…2162F01813C1C30FC75598EC33A535BB92086/build/pages/enterprise/common.js:1:1&lt;/A&gt;), :138:24)&lt;/EM&gt; &lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/190177-456780-nohighlighting.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:18:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-search-syntax-highlighting-not-working-in-Splunk-6-5-2/m-p/367871#M108450</guid>
      <dc:creator>sylim_splunk</dc:creator>
      <dc:date>2020-09-29T13:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why is search syntax highlighting not working in Splunk 6.5.2?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-search-syntax-highlighting-not-working-in-Splunk-6-5-2/m-p/367872#M108451</link>
      <description>&lt;P&gt;This case turned out to be caused by malformatted searchbnf.conf in a few custom apps, like it lacks mandatory field of "SYNTAX". - If you have the same issue I would recommend you to check if you have custom searchbnf.conf - Strangely, the small mistakes affect the whole feature to stop working which will be improved in the next version of 6.5.4 onward - it would ignore and work around the mistakes and continue to work for the other good commands.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 22:19:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-search-syntax-highlighting-not-working-in-Splunk-6-5-2/m-p/367872#M108451</guid>
      <dc:creator>sylim_splunk</dc:creator>
      <dc:date>2017-03-20T22:19:33Z</dc:date>
    </item>
  </channel>
</rss>

