<?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 Translating string in search string in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Translating-string-in-search-string/m-p/409256#M118069</link>
    <description>&lt;P&gt;In my search strings I often rename columns using "AS". Is there a way I can expose those as parameters so that when I generate a message.pot file they are included?&lt;/P&gt;

&lt;P&gt;Or is it possible to define a macro or a .conf file that can be localized and then used in the search string?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jun 2018 22:35:25 GMT</pubDate>
    <dc:creator>derekf</dc:creator>
    <dc:date>2018-06-25T22:35:25Z</dc:date>
    <item>
      <title>Translating string in search string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Translating-string-in-search-string/m-p/409256#M118069</link>
      <description>&lt;P&gt;In my search strings I often rename columns using "AS". Is there a way I can expose those as parameters so that when I generate a message.pot file they are included?&lt;/P&gt;

&lt;P&gt;Or is it possible to define a macro or a .conf file that can be localized and then used in the search string?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 22:35:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Translating-string-in-search-string/m-p/409256#M118069</guid>
      <dc:creator>derekf</dc:creator>
      <dc:date>2018-06-25T22:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Translating string in search string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Translating-string-in-search-string/m-p/409257#M118070</link>
      <description>&lt;P&gt;Yes, of course.  Here is a  &lt;CODE&gt;macro&lt;/CODE&gt; definition that I use to normalize fields coming out of &lt;CODE&gt;CIM&lt;/CODE&gt; searches:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Normalize_CIM_Fieldnames]
definition = rename list(*) AS * values(*) AS *\
\
| rename COMMENT AS "START WITH CIM DMs"\
\
| rename Authentication.Failed_Authentication.* AS *\
| rename Authentication.Successful_Authentication.* AS *\
| rename Authentication.Default_Authentication.Failed_Default_Authentication.* AS *\
| rename Authentication.Default_Authentication.Successful_Default_Authentication.* AS *\
| rename Authentication.Default_Authentication.* AS *\
| rename Authentication.Insecure_Authentication.* AS *\
| rename Authentication.Privileged_Authentication.Failed_Privileged_Authentication.* AS *\
| rename Authentication.Privileged_Authentication.Successful_Privileged_Authentication.* AS *\
| rename Authentication.Privileged_Authentication.* AS *\
| rename Authentication.* AS *\
\
| rename All_Changes.Auditing_Changes.* AS *\
| rename All_Changes.Endpoint_Changes.Filesystem_Changes.* AS *\
| rename All_Changes.Endpoint_Changes.Registry_Changes.* AS *\
| rename All_Changes.Endpoint_Changes.Endpoint_Restarts.* AS *\
| rename All_Changes.Endpoint_Changes.Other_Endpoint_Changes.* AS *\
| rename All_Changes.Endpoint_Changes.* AS *\
| rename All_Changes.Network_Changes.Device_Restarts.* AS *\
| rename All_Changes.Network_Changes.* AS *\
| rename All_Changes.Account_Management.Created_Accounts.* AS *\
| rename All_Changes.Account_Management.Deleted_Accounts.* AS *\
| rename All_Changes.Account_Management.Locked_Accounts.* AS *\
| rename All_Changes.Account_Management.Updated_Accounts.* AS *\
| rename All_Changes.Account_Management.* AS *\
| rename All_Changes.* AS *\
\
| rename IDS_Attacks.Application_Intrustion_Detection.* AS *\
| rename IDS_Attacks.Host_Intrustion_Detection.* AS *\
| rename IDS_Attacks.Network_Intrustion_Detection.* AS *\
| rename IDS_Attacks.* AS *\
\
| rename Malware_Attacks.Allowed_Malware.* AS *\
| rename Malware_Attacks.Blocked_Malware.* AS *\
| rename Malware_Attacks.Quarantied.Malware.* AS *\
| rename Malware_Attacks.* AS *\
\
| rename All_Traffic.Traffic_By_Action.Allowed_Traffic.* AS *\
| rename All_Traffic.Traffic_By_Action.Blocked_Traffic.* AS *\
| rename All_Traffic.Traffic_By_Action.* AS *\
| rename All_Traffic.* AS *\
\
| rename Web.Proxy.* AS *\
| rename Web.* AS *\
\
| rename COMMENT AS "NOW DO CUSTOM DMs"
errormsg = Description: Author=Gregg Woodcock
iseval = 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Jul 2018 04:01:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Translating-string-in-search-string/m-p/409257#M118070</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-07-01T04:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Translating string in search string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Translating-string-in-search-string/m-p/409258#M118071</link>
      <description>&lt;P&gt;Thank you for the response. I have not seen * used when renaming before. Do you think you would be able to explain this a little bit for me? Also, will this make the renamed columns exposed to the messages.pot file created when doing localization?&lt;/P&gt;

&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 16:41:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Translating-string-in-search-string/m-p/409258#M118071</guid>
      <dc:creator>derekf</dc:creator>
      <dc:date>2018-07-03T16:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Translating string in search string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Translating-string-in-search-string/m-p/409259#M118072</link>
      <description>&lt;P&gt;Nevermind, it is simply a wildcard. &lt;BR /&gt;
&lt;CODE&gt;rename All_Traffic.* AS * would just be rename All_Traffic.(field) AS (field)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Still not sure how I can extract what fields are renamed to so I can localized them though.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 16:44:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Translating-string-in-search-string/m-p/409259#M118072</guid>
      <dc:creator>derekf</dc:creator>
      <dc:date>2018-07-03T16:44:55Z</dc:date>
    </item>
  </channel>
</rss>

