<?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: specific ip remove sql questio in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/specific-ip-remove-sql-questio/m-p/547809#M37687</link>
    <description>&lt;P&gt;index="fw" src_ip="192.168.10.*"&lt;BR /&gt;| rex "192\.168\.10\.(?&amp;lt;range&amp;gt;\d{1,3})"&lt;BR /&gt;| where range &amp;gt;=11 AND range &amp;lt;=126&lt;BR /&gt;| dedup src_ip&lt;BR /&gt;| makeresults count=24&lt;BR /&gt;| streamstats count&lt;BR /&gt;| eval count=count+1&lt;BR /&gt;| eval count=count*5+1&lt;BR /&gt;| eval src_ip="192.168.10.".count&lt;BR /&gt;| stats values(src_ip) as src_ip&lt;BR /&gt;| nomv src_ip&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You'll get that error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error in 'makeresults' command: This command must be the first command of a search.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Apr 2021 00:09:21 GMT</pubDate>
    <dc:creator>nnonm111</dc:creator>
    <dc:date>2021-04-14T00:09:21Z</dc:date>
    <item>
      <title>specific ip remove sql questio</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/specific-ip-remove-sql-questio/m-p/547701#M37666</link>
      <description>&lt;DIV class="lang_select___3h6b5"&gt;&lt;DIV&gt;&lt;DIV class="dropdown_wrap___2x_qn target___1bV2b"&gt;&lt;DIV class="dropdown_top___13QlJ"&gt;&lt;SPAN class="btn_dropdown_arr___2xcBb"&gt;&lt;SPAN class="blind"&gt;&lt;FONT&gt;&lt;FONT&gt;열기 / 닫기 아이콘&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="edit_area___2iv-G"&gt;&lt;DIV class="edit_box___1KtZ3 active___3VPGL font_step2___3vt9-"&gt;&lt;SPAN&gt;&lt;FONT&gt;&lt;FONT&gt;index = "fw"src_ip = "192.168.10. *" &lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;FONT&gt;&lt;FONT&gt;| &lt;/FONT&gt;&lt;FONT&gt;rex "192 \ .168 \ .10 \. (? &amp;lt;범위&amp;gt; \ d {1,3})" &lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;FONT&gt;&lt;FONT&gt;| &lt;/FONT&gt;&lt;FONT&gt;여기서 범위&amp;gt; = 11 AND 범위 &amp;lt;= 126 &lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;FONT&gt;&lt;FONT&gt;| &lt;/FONT&gt;&lt;FONT&gt;중복 제거 src_ip &lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;FONT&gt;&lt;FONT&gt;| &lt;/FONT&gt;&lt;FONT&gt;stats count &lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;FONT&gt;&lt;FONT&gt;나는 위의 명령에서 ip를 얻고 있습니다. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;FONT&gt;&lt;FONT&gt;192.168.10.16, 192.168.10.21, 192.168.10.26, 192.168.10.31 ~ 192.168.10.126의 네 가지 IP를 살펴보고 싶습니다. &lt;/FONT&gt;&lt;FONT&gt;방법이 있습니까?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Apr 2021 04:58:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/specific-ip-remove-sql-questio/m-p/547701#M37666</guid>
      <dc:creator>nnonm111</dc:creator>
      <dc:date>2021-04-13T04:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: specific ip remove sql questio</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/specific-ip-remove-sql-questio/m-p/547705#M37667</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233055"&gt;@nnonm111&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You question is not clear, could you please tell us what do you want to do with that four ip? (The list has actually five ips)&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 04:36:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/specific-ip-remove-sql-questio/m-p/547705#M37667</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-04-13T04:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: specific ip remove sql questio</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/specific-ip-remove-sql-questio/m-p/547706#M37668</link>
      <description>&lt;P&gt;&lt;SPAN&gt;After 192.168.10.11 we would like to exclude 4 ip(192.168.10.12,13,14,15) by 192.168.10.126.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Output value:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;192.168.10.11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;192.168.10.16&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;192.168.10.21&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;192.168.10.126&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 04:56:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/specific-ip-remove-sql-questio/m-p/547706#M37668</guid>
      <dc:creator>nnonm111</dc:creator>
      <dc:date>2021-04-13T04:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: specific ip remove sql questio</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/specific-ip-remove-sql-questio/m-p/547714#M37669</link>
      <description>&lt;P&gt;You can use regex to filter those ip addresses, please try below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| regex src_ip!="192\.168\.10\.1[2-5]"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 13 Apr 2021 05:42:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/specific-ip-remove-sql-questio/m-p/547714#M37669</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-04-13T05:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: specific ip remove sql questio</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/specific-ip-remove-sql-questio/m-p/547716#M37670</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The sql does not fit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;index=fw&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;filed=src_ip&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;python code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a = '192.168.11.'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for i in range(11,127,5):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ip = str(a)+str(i)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print(ip)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can the pyhton be expressed in sql?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 06:06:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/specific-ip-remove-sql-questio/m-p/547716#M37670</guid>
      <dc:creator>nnonm111</dc:creator>
      <dc:date>2021-04-13T06:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: specific ip remove sql questio</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/specific-ip-remove-sql-questio/m-p/547750#M37678</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233055"&gt;@nnonm111&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can use below to create similar output to your pyhton code.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults count=24 
| streamstats count 
| eval count=count+1 
| eval count=count*5+1 
| eval src_ip="192.168.10.".count 
| stats values(src_ip) as src_ip 
| nomv src_ip&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 13 Apr 2021 11:01:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/specific-ip-remove-sql-questio/m-p/547750#M37678</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-04-13T11:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: specific ip remove sql questio</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/specific-ip-remove-sql-questio/m-p/547809#M37687</link>
      <description>&lt;P&gt;index="fw" src_ip="192.168.10.*"&lt;BR /&gt;| rex "192\.168\.10\.(?&amp;lt;range&amp;gt;\d{1,3})"&lt;BR /&gt;| where range &amp;gt;=11 AND range &amp;lt;=126&lt;BR /&gt;| dedup src_ip&lt;BR /&gt;| makeresults count=24&lt;BR /&gt;| streamstats count&lt;BR /&gt;| eval count=count+1&lt;BR /&gt;| eval count=count*5+1&lt;BR /&gt;| eval src_ip="192.168.10.".count&lt;BR /&gt;| stats values(src_ip) as src_ip&lt;BR /&gt;| nomv src_ip&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You'll get that error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error in 'makeresults' command: This command must be the first command of a search.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 00:09:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/specific-ip-remove-sql-questio/m-p/547809#M37687</guid>
      <dc:creator>nnonm111</dc:creator>
      <dc:date>2021-04-14T00:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: specific ip remove sql questio</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/specific-ip-remove-sql-questio/m-p/547827#M37689</link>
      <description>&lt;P&gt;To use as a filter , you can use in a subsearch;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="fw" src_ip="192.168.10.*" 
| dedup src_ip 
| search 
    [| makeresults count=24 
    | streamstats count 
    | eval count=count+1 
    | eval count=count*5+1 
    | eval src_ip="192.168.10.".count 
    | stats values(src_ip) as src_ip ]&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 14 Apr 2021 04:07:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/specific-ip-remove-sql-questio/m-p/547827#M37689</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-04-14T04:07:50Z</dc:date>
    </item>
  </channel>
</rss>

