<?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 How do a search with a string comma separated values ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-a-search-with-a-string-comma-separated-values/m-p/567691#M197854</link>
    <description>&lt;P&gt;Hello team! How are u?&lt;/P&gt;&lt;P&gt;I have a question about how to search with a comma separated values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;I have an index with vm's information, like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JuanAntunes_2-1632151288903.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16068i7D28E2CD79CB2632/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JuanAntunes_2-1632151288903.png" alt="JuanAntunes_2-1632151288903.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;JuanAntunes_2-1632151288903.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the column "datastores" returns me all datastores assigned to this VM, so I need to calculate how much freespace I have in this VM.&lt;BR /&gt;&lt;BR /&gt;So I have another index, with the "datastores" information, like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JuanAntunes_3-1632151303605.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16069i17B47BBB6C6083A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JuanAntunes_3-1632151303605.png" alt="JuanAntunes_3-1632151303605.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;JuanAntunes_3-1632151303605.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know how to filter just one result, but I don't know how I can filter two or more comma-separated datastores.&lt;BR /&gt;&lt;BR /&gt;Can anyone help me? Thanks in advanced&lt;/P&gt;</description>
    <pubDate>Mon, 20 Sep 2021 15:25:41 GMT</pubDate>
    <dc:creator>JuanAntunes</dc:creator>
    <dc:date>2021-09-20T15:25:41Z</dc:date>
    <item>
      <title>How do a search with a string comma separated values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-a-search-with-a-string-comma-separated-values/m-p/567691#M197854</link>
      <description>&lt;P&gt;Hello team! How are u?&lt;/P&gt;&lt;P&gt;I have a question about how to search with a comma separated values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;I have an index with vm's information, like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JuanAntunes_2-1632151288903.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16068i7D28E2CD79CB2632/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JuanAntunes_2-1632151288903.png" alt="JuanAntunes_2-1632151288903.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;JuanAntunes_2-1632151288903.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the column "datastores" returns me all datastores assigned to this VM, so I need to calculate how much freespace I have in this VM.&lt;BR /&gt;&lt;BR /&gt;So I have another index, with the "datastores" information, like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JuanAntunes_3-1632151303605.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16069i17B47BBB6C6083A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JuanAntunes_3-1632151303605.png" alt="JuanAntunes_3-1632151303605.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;JuanAntunes_3-1632151303605.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know how to filter just one result, but I don't know how I can filter two or more comma-separated datastores.&lt;BR /&gt;&lt;BR /&gt;Can anyone help me? Thanks in advanced&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 15:25:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-a-search-with-a-string-comma-separated-values/m-p/567691#M197854</guid>
      <dc:creator>JuanAntunes</dc:creator>
      <dc:date>2021-09-20T15:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do a search with a string comma separated values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-a-search-with-a-string-comma-separated-values/m-p/567693#M197856</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234014"&gt;@JuanAntunes&lt;/a&gt;&amp;nbsp;First split the values of your datastore field as a seperate row then search for it, like below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval datastores=split(datastores,",") 
| mvexpand datastores
| search datastores="*"&lt;/LI-CODE&gt;&lt;P&gt;Also, If this reply helps you, an upvote would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 15:33:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-a-search-with-a-string-comma-separated-values/m-p/567693#M197856</guid>
      <dc:creator>ashvinpandey</dc:creator>
      <dc:date>2021-09-20T15:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do a search with a string comma separated values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-a-search-with-a-string-comma-separated-values/m-p/567697#M197858</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199978"&gt;@ashvinpandey&lt;/a&gt;&amp;nbsp;, first of all thanks for your time!&lt;BR /&gt;&lt;BR /&gt;Here's the query I'm doing with your help, but still to no success.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JuanAntunes_0-1632152373077.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16070iE10A084CB807108D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JuanAntunes_0-1632152373077.png" alt="JuanAntunes_0-1632152373077.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;JuanAntunes_0-1632152373077.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 15:40:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-a-search-with-a-string-comma-separated-values/m-p/567697#M197858</guid>
      <dc:creator>JuanAntunes</dc:creator>
      <dc:date>2021-09-20T15:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do a search with a string comma separated values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-a-search-with-a-string-comma-separated-values/m-p/567700#M197860</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234014"&gt;@JuanAntunes&lt;/a&gt;&amp;nbsp;Make sure your subsearch is also having the same datastores field name also the datastores field in the subsearch is also splitted if it contains "," and add below query line after your eval tmp:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| fields tmp&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 15:46:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-a-search-with-a-string-comma-separated-values/m-p/567700#M197860</guid>
      <dc:creator>ashvinpandey</dc:creator>
      <dc:date>2021-09-20T15:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do a search with a string comma separated values ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-a-search-with-a-string-comma-separated-values/m-p/567703#M197861</link>
      <description>&lt;P&gt;Thanks so much!&amp;nbsp;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199978"&gt;@ashvinpandey&lt;/a&gt;&amp;nbsp; it works!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 15:59:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-a-search-with-a-string-comma-separated-values/m-p/567703#M197861</guid>
      <dc:creator>JuanAntunes</dc:creator>
      <dc:date>2021-09-20T15:59:41Z</dc:date>
    </item>
  </channel>
</rss>

