<?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 can I format field with relative fieldname ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-format-field-with-relative-fieldname/m-p/625060#M217286</link>
    <description>&lt;P&gt;Can I completely replace double quotes with asterisks ?&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2022 09:15:29 GMT</pubDate>
    <dc:creator>Chaser</dc:creator>
    <dc:date>2022-12-22T09:15:29Z</dc:date>
    <item>
      <title>How can I format field with relative fieldname ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-format-field-with-relative-fieldname/m-p/625033#M217273</link>
      <description>&lt;P&gt;My task is format field "app" with relative fieldname&lt;/P&gt;&lt;P&gt;How can I use format command to format as example: (app=*app1* OR&amp;nbsp; app=*app2* OR *app3* OR ...)&lt;/P&gt;&lt;P&gt;please help me, thanks&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 04:46:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-format-field-with-relative-fieldname/m-p/625033#M217273</guid>
      <dc:creator>Chaser</dc:creator>
      <dc:date>2022-12-22T04:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I format field with relative fieldname ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-format-field-with-relative-fieldname/m-p/625036#M217275</link>
      <description>&lt;P&gt;What is a "relative fieldname"? &amp;nbsp;What do the asterisks (*) in your example represent? &amp;nbsp;What is the data like, or the output of your search like? (Or what do raw data look like and your search look like?)&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 04:48:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-format-field-with-relative-fieldname/m-p/625036#M217275</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-12-22T04:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I format field with relative fieldname ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-format-field-with-relative-fieldname/m-p/625037#M217276</link>
      <description>&lt;P&gt;fieldname is app, I mean, data have an app named Microsoft.sharepoint, but I input "sharepoint" it's still worked and it's understood&amp;nbsp;Microsoft.sharepoint&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 06:22:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-format-field-with-relative-fieldname/m-p/625037#M217276</guid>
      <dc:creator>Chaser</dc:creator>
      <dc:date>2022-12-22T06:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I format field with relative fieldname ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-format-field-with-relative-fieldname/m-p/625038#M217277</link>
      <description>&lt;P&gt;the asterisk(*) mean: if search *sharepoint*, it will show all of result have "sharepoint"&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 06:27:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-format-field-with-relative-fieldname/m-p/625038#M217277</guid>
      <dc:creator>Chaser</dc:creator>
      <dc:date>2022-12-22T06:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I format field with relative fieldname ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-format-field-with-relative-fieldname/m-p/625040#M217279</link>
      <description>&lt;P&gt;Something like this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| fields - _time
| eval app = mvappend("*app1*", "*app2*")
| format&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 06:38:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-format-field-with-relative-fieldname/m-p/625040#M217279</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-12-22T06:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I format field with relative fieldname ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-format-field-with-relative-fieldname/m-p/625043#M217280</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chaser_0-1671691461098.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23118i130C2635E17C8673/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Chaser_0-1671691461098.png" alt="Chaser_0-1671691461098.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the result like picture on above, but I want all double quote (") transfer to asterisk (*), can you help me&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 06:47:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-format-field-with-relative-fieldname/m-p/625043#M217280</guid>
      <dc:creator>Chaser</dc:creator>
      <dc:date>2022-12-22T06:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I format field with relative fieldname ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-format-field-with-relative-fieldname/m-p/625054#M217285</link>
      <description>&lt;P&gt;The easiest, and in my opinion semantically the most explicit, method would be to enter asterisks into the lookup table.&lt;/P&gt;&lt;P&gt;If you cannot change the table (I don't see any obstacle to that but), you can just alter it after inputlookup.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup app_whitelist.csv
| fields app
| eval app = "*" . app . "*" ``` assuming app is single valued ```
| format&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 08:10:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-format-field-with-relative-fieldname/m-p/625054#M217285</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-12-22T08:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I format field with relative fieldname ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-format-field-with-relative-fieldname/m-p/625060#M217286</link>
      <description>&lt;P&gt;Can I completely replace double quotes with asterisks ?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 09:15:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-format-field-with-relative-fieldname/m-p/625060#M217286</guid>
      <dc:creator>Chaser</dc:creator>
      <dc:date>2022-12-22T09:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I format field with relative fieldname ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-format-field-with-relative-fieldname/m-p/625115#M217299</link>
      <description>&lt;P&gt;The output is just a string, and search is the field name. &amp;nbsp;Yes you can use string manipulation to change anything, like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex mode=sed field=search "s/\"//g" ``` this only works if app values do not include quotation marks ```&lt;/LI-CODE&gt;&lt;P&gt;But why? &amp;nbsp;Not only is this unnecessary, it is wrong in terms of code hygiene. &amp;nbsp;Splunk already gives you the necessary and sufficient syntax so it doesn't matter what is in the fields being formatted the search term will be faithful to the requirement. &amp;nbsp;Stripping quotes only makes it less stable.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 17:18:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-format-field-with-relative-fieldname/m-p/625115#M217299</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-12-22T17:18:56Z</dc:date>
    </item>
  </channel>
</rss>

