<?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: Dynamic source selection based on search in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536506#M36633</link>
    <description>&lt;P&gt;Splunk can create new fields with regular expressions, and there's nothing wrong with that.&lt;BR /&gt;Use rex as in my example.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jan 2021 14:42:50 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2021-01-20T14:42:50Z</dc:date>
    <item>
      <title>Dynamic source selection based on search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536345#M36609</link>
      <description>&lt;P&gt;Hi.. I have in splunk logs comes from different sources.. and different events. For example, one type of events contains user information without server name:&lt;/P&gt;&lt;DIV&gt;Logged-in user {'kind': 'user', 'name': 'XXXXXX', 'admin': False, 'groups': [], 'server': '/jhub-test/user/XXXXXX/', 'pending': None, 'created': '2020-12-27T03:29:41.850432Z', 'last_activity': '2021-01-16T05:18:16.822564Z', 'servers': None}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;and other have server ip on that..&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So I need to construct query were I can select the source based on server ip search and after search the specific action - for example user logon events.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;so I want to write some query like this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if source=* contain ip address &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;when source="the actual source name which contain ip address"&amp;nbsp; |search "*Logged*"&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Jan 2021 16:11:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536345#M36609</guid>
      <dc:creator>systematics78</dc:creator>
      <dc:date>2021-01-19T16:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic source selection based on search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536402#M36614</link>
      <description>&lt;P&gt;Why don't you search and filter them all?&lt;/P&gt;&lt;P&gt;index=yours source=normal OR source=X.X.X.X "Logged"&lt;BR /&gt;| where match(source,"\d+\.\d+\.\d+\.\d+")&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 22:30:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536402#M36614</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-01-19T22:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic source selection based on search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536441#M36618</link>
      <description>&lt;P&gt;I have source from multiply environments - for example SandBox, Dev, QA etc.. with exact same configuration and need to segregate by environment - so need to filter source by searching ip address to identify the source relationship with environment and after use just that source with some events..&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 06:59:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536441#M36618</guid>
      <dc:creator>systematics78</dc:creator>
      <dc:date>2021-01-20T06:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic source selection based on search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536464#M36623</link>
      <description>&lt;P&gt;Create a lookup and check it against the source.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 10:31:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536464#M36623</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-01-20T10:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic source selection based on search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536465#M36624</link>
      <description>&lt;P&gt;Can I have more explanation what you exactly mean?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 10:36:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536465#M36624</guid>
      <dc:creator>systematics78</dc:creator>
      <dc:date>2021-01-20T10:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic source selection based on search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536467#M36625</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.1/SearchReference/Lookup" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.1/SearchReference/Lookup&lt;/A&gt;&lt;/P&gt;&lt;P&gt;A field with a description and a field with an IP address would be fine, I guess.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 10:40:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536467#M36625</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-01-20T10:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic source selection based on search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536468#M36626</link>
      <description>&lt;P&gt;I just want to construct a table for example:&lt;/P&gt;&lt;P&gt;Environment&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;User Activity&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Username&lt;/P&gt;&lt;P&gt;DEV&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Logged IN&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;systematics78&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I have sources from this environment but exactly with the same configuration&lt;/P&gt;&lt;P&gt;For example from Dev Environment I have log file with several rows like this&lt;/P&gt;&lt;P&gt;I log:187 10.161.2.165&amp;nbsp; some info&lt;/P&gt;&lt;P&gt;I log:587 Logged-In systematics78&lt;/P&gt;&lt;P&gt;For sandbox environment&lt;/P&gt;&lt;P&gt;I log:187 10.161.1.175&amp;nbsp; some info&lt;/P&gt;&lt;P&gt;I log:587 Logged-In systematics78&lt;/P&gt;&lt;P&gt;The logs name generated randomly on daily basis.. So I have just one info - ip address - based on that I can decide that User activity is related with for example DEV or Sandbox environment&lt;/P&gt;&lt;P&gt;So the main guest ion How I can create such report&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 10:45:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536468#M36626</guid>
      <dc:creator>systematics78</dc:creator>
      <dc:date>2021-01-20T10:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic source selection based on search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536470#M36627</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=_internal | head 1 | fields _raw
| eval _raw="I log:187 10.161.2.165  some info I log:587 Logged-In systematics78
I log:187 10.161.1.175  some info  I log:587 Logged-In systematics78"
| multikv noheader=t
| rex "(?&amp;lt;ip&amp;gt;\d+\.\d+\.\d+\.\d+)"
| rex "(?&amp;lt;UserActivity&amp;gt;Logged\S+)\s*(?&amp;lt;Username&amp;gt;\S+)"
| table ip UserActivity Username
```
| lookup ipaddress as ip OUTPUT Environment
```&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Jan 2021 11:00:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536470#M36627</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-01-20T11:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic source selection based on search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536471#M36628</link>
      <description>&lt;P&gt;Actually the fields not the same.. for example&lt;/P&gt;&lt;P&gt;&lt;SPAN class="key-name"&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="t string"&gt;[I 2021-01-20 10:50:14.071 JupyterHub log:174] 302 GET / -&amp;gt; /jhub-test/hub/ (@10.161.10.174) 1.30ms&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="key-name"&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="t string"&gt;[I 2021-01-19 08:05:10.633 JupyterHub login:43] User logged out: systematics&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t string"&gt;This is from the same source - So based on first row I can decide that user logged off from app in QA environment..&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 11:00:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536471#M36628</guid>
      <dc:creator>systematics78</dc:creator>
      <dc:date>2021-01-20T11:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic source selection based on search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536475#M36629</link>
      <description>&lt;P&gt;&lt;SPAN class="key-name"&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="t string"&gt;[I 2021-01-20 10:50:14.071 &lt;STRONG&gt;JupyterHub log&lt;/STRONG&gt;:174] 302 GET / -&amp;gt; /jhub-test/hub/ (&lt;STRONG&gt;@10.161.10.174&lt;/STRONG&gt;) 1.30ms&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="key-name"&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="t string"&gt;[I 2021-01-19 08:05:10.633 &lt;STRONG&gt;JupyterHub login&lt;/STRONG&gt;:43] User logged out: systematics&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t string"&gt;It has good features. Pay attention here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t string"&gt;Also, I think it says ip in the source, so you can extract it from there.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 11:29:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536475#M36629</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-01-20T11:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic source selection based on search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536477#M36630</link>
      <description>&lt;P&gt;Yes.. I know it.. I'm not so good on Splunk side.. that why I'm asking.. As I told i have more that 100+ such files as a source - some of them from different environment.. And I need just create dashboard and visualize users activities regarding with the environment.. I can construct this tables on segregated source.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 12:15:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536477#M36630</guid>
      <dc:creator>systematics78</dc:creator>
      <dc:date>2021-01-20T12:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic source selection based on search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536506#M36633</link>
      <description>&lt;P&gt;Splunk can create new fields with regular expressions, and there's nothing wrong with that.&lt;BR /&gt;Use rex as in my example.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 14:42:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamic-source-selection-based-on-search/m-p/536506#M36633</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-01-20T14:42:50Z</dc:date>
    </item>
  </channel>
</rss>

