<?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 get word on search and save on new column tables ? in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-get-word-on-search-and-save-on-new-column-tables/m-p/450517#M6254</link>
    <description>&lt;P&gt;This feels like a very cumbersome approach to achieve something that might be achieved much more easily in other ways. But without any understanding of the actual data and the end goal that you want to achieve, that is a bit difficult to provide any concrete suggestions.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2019 10:42:41 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2019-07-03T10:42:41Z</dc:date>
    <item>
      <title>How to get word on search and save on new column tables ?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-get-word-on-search-and-save-on-new-column-tables/m-p/450510#M6247</link>
      <description>&lt;P&gt;Hello guys, &lt;/P&gt;

&lt;P&gt;I have a search,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=example "testword" OR "abcd" |  table _time _raw 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I run this query, I get some result because triggered on the testword or abcd (string). My question, how do I find the word that causes the result to appear and that word I display in the table column? &lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;P&gt;table&lt;BR /&gt;
_raw : abcd is the only alphabet&lt;BR /&gt;
word : &lt;STRONG&gt;abcd&lt;/STRONG&gt; &lt;BR /&gt;
_time : 18:00&lt;/P&gt;

&lt;P&gt;_raw : this only testword&lt;BR /&gt;
word : &lt;STRONG&gt;testword&lt;/STRONG&gt; &lt;BR /&gt;
_time : 18:00&lt;/P&gt;

&lt;P&gt;Please help me, create a value of column word from a word on a search, thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 09:20:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-get-word-on-search-and-save-on-new-column-tables/m-p/450510#M6247</guid>
      <dc:creator>nisnes12</dc:creator>
      <dc:date>2019-06-27T09:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get word on search and save on new column tables ?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-get-word-on-search-and-save-on-new-column-tables/m-p/450511#M6248</link>
      <description>&lt;P&gt;@nisnes12 ,&lt;/P&gt;

&lt;P&gt;Not sure about the use case but it's always better to extract the field and do the comparison. Regardless of that, if you want to find the string matching the event, try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval word_matched=if(searchmatch("abcd"),"abcd","testword")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Jun 2019 10:56:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-get-word-on-search-and-save-on-new-column-tables/m-p/450511#M6248</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-06-27T10:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get word on search and save on new column tables ?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-get-word-on-search-and-save-on-new-column-tables/m-p/450512#M6249</link>
      <description>&lt;P&gt;thanks for your answers, but how to i have many string in the query ?  example i have 100 string for condition&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 03:36:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-get-word-on-search-and-save-on-new-column-tables/m-p/450512#M6249</guid>
      <dc:creator>nisnes12</dc:creator>
      <dc:date>2019-06-28T03:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get word on search and save on new column tables ?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-get-word-on-search-and-save-on-new-column-tables/m-p/450513#M6250</link>
      <description>&lt;P&gt;@nisnes12 in your SPL while filtering data for index do you filter 100 words? Or one or two of 100 values? How do you apply filter? Can you share your current SPL and elaborate your issue?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 03:48:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-get-word-on-search-and-save-on-new-column-tables/m-p/450513#M6250</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-06-28T03:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get word on search and save on new column tables ?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-get-word-on-search-and-save-on-new-column-tables/m-p/450514#M6251</link>
      <description>&lt;P&gt;sourcetype=example "testword" OR "abcd" OR "test" OR "ball" OR "happy"  (and many more) | table _time _raw&lt;/P&gt;

&lt;P&gt;i think good to use case command for this issue, what about you ?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 03:51:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-get-word-on-search-and-save-on-new-column-tables/m-p/450514#M6251</guid>
      <dc:creator>nisnes12</dc:creator>
      <dc:date>2019-06-28T03:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get word on search and save on new column tables ?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-get-word-on-search-and-save-on-new-column-tables/m-p/450515#M6252</link>
      <description>&lt;P&gt;@nisnes12, you can use case as well if there are multiple values. However if you have a specific pattern or field where these strings appear, then it would be more efficient and easy. What's your use case and final result you want to achieve?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 12:38:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-get-word-on-search-and-save-on-new-column-tables/m-p/450515#M6252</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-06-28T12:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get word on search and save on new column tables ?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-get-word-on-search-and-save-on-new-column-tables/m-p/450516#M6253</link>
      <description>&lt;P&gt;yes use case function, how about my word is regex words ? example  sourcetype=example "testword" OR "abcd" |  eval word=case(match(_raw,"(delmitier)*abc"),"abcd") | table _time _raw &lt;BR /&gt;
 , if i use case , i get error 'Error in 'eval' command: Regex: quantifier does not follow a repeatable item'&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 09:14:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-get-word-on-search-and-save-on-new-column-tables/m-p/450516#M6253</guid>
      <dc:creator>nisnes12</dc:creator>
      <dc:date>2019-07-03T09:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get word on search and save on new column tables ?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-get-word-on-search-and-save-on-new-column-tables/m-p/450517#M6254</link>
      <description>&lt;P&gt;This feels like a very cumbersome approach to achieve something that might be achieved much more easily in other ways. But without any understanding of the actual data and the end goal that you want to achieve, that is a bit difficult to provide any concrete suggestions.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 10:42:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-to-get-word-on-search-and-save-on-new-column-tables/m-p/450517#M6254</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-07-03T10:42:41Z</dc:date>
    </item>
  </channel>
</rss>

