<?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 edit my search to create a table that shows number of attacks from each security device and summary ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-that-shows-number-of/m-p/337456#M100134</link>
    <description>&lt;P&gt;Try the updated answer.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Apr 2017 16:18:06 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-04-18T16:18:06Z</dc:date>
    <item>
      <title>How to edit my search to create a table that shows number of attacks from each security device and summary ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-that-shows-number-of/m-p/337453#M100131</link>
      <description>&lt;P&gt;Hey all, &lt;BR /&gt;
I'm trying to create table for SOC members that shows number of attacks from each security device + summary, &lt;/P&gt;

&lt;P&gt;My search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=CheckPoint  priority&amp;gt;=5 | iplocation src | stats count( index ) by src,Country | rename count(index) as CheckPoint-FW
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Table:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;src                |       Country         |         CheckPoint-FW
101.xxx.xxx.93     |       China           |         35
51.xx.x.3          |       US              |         21
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need to add two more columns-  IPS (index=ips)  and Summary.&lt;BR /&gt;
It should look like this:&lt;/P&gt;

&lt;P&gt;Table:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;src            |           Country         |          CheckPoint-FW    |    IPS    |     Summary
101.xxx.xxx.93 |           China           |          35               |    10     |     45
51.xx.x.3      |           US              |          21               |    10     |     31
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas ? &lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 16:01:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-that-shows-number-of/m-p/337453#M100131</guid>
      <dc:creator>bugnet</dc:creator>
      <dc:date>2017-04-18T16:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a table that shows number of attacks from each security device and summary ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-that-shows-number-of/m-p/337454#M100132</link>
      <description>&lt;P&gt;I'm guessing this as you didn't mention what does the index=ips contains. Assuming it has same data as index=CheckPoint&lt;BR /&gt;
&lt;STRONG&gt;Updated&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=CheckPoint OR index=ips priority&amp;gt;=5 
| eval src=coalesce(src,src_ip)
| chart count over src by index 
| iplocation src | table src Country CheckPoint ips
| rename CheckPoint as "CheckPoint-FW" ips as IPS 
| addtotals labelfield=Summary
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Apr 2017 16:11:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-that-shows-number-of/m-p/337454#M100132</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-04-18T16:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a table that shows number of attacks from each security device and summary ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-that-shows-number-of/m-p/337455#M100133</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
No, the data is not the same:&lt;/P&gt;

&lt;P&gt;index=checkpoint:  the source ip field is "src" &lt;BR /&gt;
index=ips: the source ip field is "src_ip"&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 16:14:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-that-shows-number-of/m-p/337455#M100133</guid>
      <dc:creator>bugnet</dc:creator>
      <dc:date>2017-04-18T16:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a table that shows number of attacks from each security device and summary ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-that-shows-number-of/m-p/337456#M100134</link>
      <description>&lt;P&gt;Try the updated answer.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 16:18:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-that-shows-number-of/m-p/337456#M100134</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-04-18T16:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a table that shows number of attacks from each security device and summary ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-that-shows-number-of/m-p/337457#M100135</link>
      <description>&lt;P&gt;Thanks for the help!&lt;BR /&gt;
I get the next error: &lt;BR /&gt;
" Error in 'eval' command: The 'coalesec' function is unsupported or undefined&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 17:02:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-that-shows-number-of/m-p/337457#M100135</guid>
      <dc:creator>bugnet</dc:creator>
      <dc:date>2017-04-18T17:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a table that shows number of attacks from each security device and summary ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-that-shows-number-of/m-p/337458#M100136</link>
      <description>&lt;P&gt;Sorry. Its OK!!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 17:08:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-that-shows-number-of/m-p/337458#M100136</guid>
      <dc:creator>bugnet</dc:creator>
      <dc:date>2017-04-18T17:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a table that shows number of attacks from each security device and summary ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-that-shows-number-of/m-p/337459#M100137</link>
      <description>&lt;P&gt;Hi, I have problem using the "chart" command. you have another idea instead using chart? &lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 13:04:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-that-shows-number-of/m-p/337459#M100137</guid>
      <dc:creator>bugnet</dc:creator>
      <dc:date>2017-04-19T13:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a table that shows number of attacks from each security device and summary ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-that-shows-number-of/m-p/337460#M100138</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=CheckPoint OR index=ips priority&amp;gt;=5 
 | eval src=coalesce(src,src_ip) | eval CheckPoint=if(index="CheckPoint",1,0) | eval ips=if(index="ips",1,0) 
 | stats sum(CheckPoint) as CheckPoint sum(ips) as ips by src
 | iplocation src | table src Country CheckPoint ips
 | rename CheckPoint as "CheckPoint-FW" ips as IPS 
 | addtotals labelfield=Summary
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any special issue with using chart command?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 13:48:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-that-shows-number-of/m-p/337460#M100138</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-04-19T13:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a table that shows number of attacks from each security device and summary ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-that-shows-number-of/m-p/337461#M100139</link>
      <description>&lt;P&gt;Hi, its look OK, but if I have one more field that created with eval. How I can show it on the table? &lt;/P&gt;

&lt;P&gt;the field is Action:&lt;BR /&gt;
| eval &lt;STRONG&gt;Action&lt;/STRONG&gt; = if(msg="ip is block","B","Not blocked")&lt;/P&gt;

&lt;P&gt;The table should shows number of attacks from each security device + summary, When the Action field should indicate whether the src address is already blocked: &lt;/P&gt;

&lt;P&gt;src | Country | ips | checkpoint | Summary | Action&lt;BR /&gt;
101.xxx.xxx.93 | China | 35 | 10 | 45 | B&lt;BR /&gt;
51.xx.x.3 | US | 21 | 10 | 31 |  Not blocked&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 15:03:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-that-shows-number-of/m-p/337461#M100139</guid>
      <dc:creator>bugnet</dc:creator>
      <dc:date>2017-04-19T15:03:33Z</dc:date>
    </item>
  </channel>
</rss>

