<?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 Re: How to highlight values from the iplocation command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-values-from-the-iplocation-command/m-p/395799#M114923</link>
    <description>&lt;P&gt;Just to mention it, there's no need to &lt;CODE&gt;| dedup Country&lt;/CODE&gt;, cause after a &lt;CODE&gt;stats by Country&lt;/CODE&gt; there won't be any duplicates for that field ever. To setup an alert, add a filter for your relevant countries (like &lt;CODE&gt;| where Country="yourcountry"&lt;/CODE&gt;), and then just have the alert fire when there is more than 0 results. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 May 2018 23:05:11 GMT</pubDate>
    <dc:creator>xpac</dc:creator>
    <dc:date>2018-05-10T23:05:11Z</dc:date>
    <item>
      <title>How to highlight values from the iplocation command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-values-from-the-iplocation-command/m-p/395792#M114916</link>
      <description>&lt;P&gt;I want to setup a search that determines which countries have connected to my network over the past "x" hours, and then I want to highlight the table line if a specified country shows up. Here is the search I have so far:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=cisco:asa dest_ip="X.X.0.0/16" NOT "Failover primary closed" | iplocation src_ip | stats count by Country | sort - count | dedup Country | highlight "CountryName"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get the table, but the highlighting never happens even if I pick a country that shows up in the table. Last, I would like for this search to trigger an alert and email the alert if the specified country is in the table.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;BR /&gt;
Jon&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 15:46:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-values-from-the-iplocation-command/m-p/395792#M114916</guid>
      <dc:creator>jon_d_irish_ctr</dc:creator>
      <dc:date>2018-05-10T15:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight values from the iplocation command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-values-from-the-iplocation-command/m-p/395793#M114917</link>
      <description>&lt;P&gt;@jon.d.irish.ctr, &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Highlight"&gt;highlight&lt;/A&gt; would work only with Raw Events List not with transforming commands. You probably need a JavaScript Extension based solution to highlight specific text in your Table. Refer to one of following answers where TextBox filter is applied and highlighted.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/636948/how-to-add-css-class-to-table-field-by-input-in-sp.html"&gt;https://answers.splunk.com/answers/636948/how-to-add-css-class-to-table-field-by-input-in-sp.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 17:04:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-values-from-the-iplocation-command/m-p/395793#M114917</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-10T17:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight values from the iplocation command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-values-from-the-iplocation-command/m-p/395794#M114918</link>
      <description>&lt;P&gt;Despite being in the documentation (which I've never noticed before) it does not appear to work at all. I just tried a very simple case that matches the sample search and... nothing. Sounds like you should report this as a bug.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/Highlight%5Blink"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/Highlight[link&lt;/A&gt; text]&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/Highlight"&gt;1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 17:19:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-values-from-the-iplocation-command/m-p/395794#M114918</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2018-05-10T17:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight values from the iplocation command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-values-from-the-iplocation-command/m-p/395795#M114919</link>
      <description>&lt;P&gt;Thanks for the suggestion, I will give this a shot.&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 17:23:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-values-from-the-iplocation-command/m-p/395795#M114919</guid>
      <dc:creator>jon_d_irish_ctr</dc:creator>
      <dc:date>2018-05-10T17:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight values from the iplocation command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-values-from-the-iplocation-command/m-p/395796#M114920</link>
      <description>&lt;P&gt;@wrangler2x highlight works with Raw Events when you display the same as list. It will not work with Transforming command like stats, table etc.&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 17:36:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-values-from-the-iplocation-command/m-p/395796#M114920</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-10T17:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight values from the iplocation command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-values-from-the-iplocation-command/m-p/395797#M114921</link>
      <description>&lt;P&gt;Here is another thought. What is I wrote out the results of the iplookup command to a lookup file via the outputlookup command. Next, if I do a search against that lookup file with the lookup command, would I then be able to use the highlight command?&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 18:06:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-values-from-the-iplocation-command/m-p/395797#M114921</guid>
      <dc:creator>jon_d_irish_ctr</dc:creator>
      <dc:date>2018-05-10T18:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight values from the iplocation command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-values-from-the-iplocation-command/m-p/395798#M114922</link>
      <description>&lt;P&gt;Oh, I see. Yes, when I click the Events tab I do see the highlighting.&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 18:16:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-values-from-the-iplocation-command/m-p/395798#M114922</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2018-05-10T18:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight values from the iplocation command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-values-from-the-iplocation-command/m-p/395799#M114923</link>
      <description>&lt;P&gt;Just to mention it, there's no need to &lt;CODE&gt;| dedup Country&lt;/CODE&gt;, cause after a &lt;CODE&gt;stats by Country&lt;/CODE&gt; there won't be any duplicates for that field ever. To setup an alert, add a filter for your relevant countries (like &lt;CODE&gt;| where Country="yourcountry"&lt;/CODE&gt;), and then just have the alert fire when there is more than 0 results. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 23:05:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-highlight-values-from-the-iplocation-command/m-p/395799#M114923</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-05-10T23:05:11Z</dc:date>
    </item>
  </channel>
</rss>

