<?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: What is the best query for retrieving a field name in different languages? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-query-for-retrieving-a-field-name-in-different/m-p/439536#M174023</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;,&lt;/P&gt;

&lt;P&gt;I couldn't find any translation rules in the Splunk Add-on for Microsoft Windows. So I think you will have to do the translation yourself.&lt;/P&gt;

&lt;P&gt;You could use the &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.1/SearchReference/ConditionalFunctions" target="_blank"&gt;coalesce eval function&lt;/A&gt; to create one common field for all languages. Assuming your available field are named faulting_application_path, chemin_de_lapplication_defaillante and pfad_der_fehlerhaften_anwendung:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval faulting_application_path=coalesce(faulting_application_path,chemin_de_lapplication_defaillante,pfad_der_fehlerhaften_anwendung)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 Sep 2020 22:25:44 GMT</pubDate>
    <dc:creator>whrg</dc:creator>
    <dc:date>2020-09-29T22:25:44Z</dc:date>
    <item>
      <title>What is the best query for retrieving a field name in different languages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-query-for-retrieving-a-field-name-in-different/m-p/439535#M174022</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;

&lt;P&gt;I use the WMI below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="windows-wmi" sourcetype="WMI:Reliability" Logfile=Application SourceName="Application Error"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and i have to retrieve a specific field.&lt;/P&gt;

&lt;P&gt;The problem is that this field is sometimes in French, sometimes in English and sometimes in german&lt;BR /&gt;
for example :&lt;/P&gt;

&lt;P&gt;french : chemin de l'application défaillante&lt;BR /&gt;
english : faulting application path&lt;BR /&gt;
german : pfad der fehlerhaften anwendung&lt;/P&gt;

&lt;P&gt;is there a solution for having the log in a same language?&lt;/P&gt;

&lt;P&gt;If not, what is the best query for retrieving the field no matter the language is??&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 09:14:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-query-for-retrieving-a-field-name-in-different/m-p/439535#M174022</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2018-12-18T09:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best query for retrieving a field name in different languages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-query-for-retrieving-a-field-name-in-different/m-p/439536#M174023</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;,&lt;/P&gt;

&lt;P&gt;I couldn't find any translation rules in the Splunk Add-on for Microsoft Windows. So I think you will have to do the translation yourself.&lt;/P&gt;

&lt;P&gt;You could use the &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.1/SearchReference/ConditionalFunctions" target="_blank"&gt;coalesce eval function&lt;/A&gt; to create one common field for all languages. Assuming your available field are named faulting_application_path, chemin_de_lapplication_defaillante and pfad_der_fehlerhaften_anwendung:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval faulting_application_path=coalesce(faulting_application_path,chemin_de_lapplication_defaillante,pfad_der_fehlerhaften_anwendung)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:25:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-query-for-retrieving-a-field-name-in-different/m-p/439536#M174023</guid>
      <dc:creator>whrg</dc:creator>
      <dc:date>2020-09-29T22:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best query for retrieving a field name in different languages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-query-for-retrieving-a-field-name-in-different/m-p/439537#M174024</link>
      <description>&lt;P&gt;Is splunk not automatically identifying the field names for you ?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 16:00:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-query-for-retrieving-a-field-name-in-different/m-p/439537#M174024</guid>
      <dc:creator>macadminrohit</dc:creator>
      <dc:date>2018-12-18T16:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best query for retrieving a field name in different languages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-query-for-retrieving-a-field-name-in-different/m-p/439538#M174025</link>
      <description>&lt;P&gt;hello&lt;BR /&gt;
I done this but I think it counts only the "Chemin d’accès de l’application défaillante" events&lt;BR /&gt;
is is true?&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index="windows-wmi" sourcetype="WMI:Reliability" Logfile=Application SourceName="Application Error" &lt;BR /&gt;
| dedup _time &lt;BR /&gt;
| eval faulting_application_path=coalesce("Faulting application path","Chemin d’accès de l’application défaillante","Pfad der fehlerhaften Anwendung") &lt;BR /&gt;
| stats count by "Chemin d’accès de l’application défaillante" &lt;BR /&gt;
| rename "Chemin d’accès de l’application défaillante" as Application, count as Errors &lt;BR /&gt;
| sort -Errors limit=10&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I need to count all the item in coalesce so i need something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval test=coalesce("Faulting application path","Chemin d’accès de l’application défaillante","Pfad der fehlerhaften Anwendung") 
| stats count by test
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Dec 2018 09:56:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-query-for-retrieving-a-field-name-in-different/m-p/439538#M174025</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2018-12-19T09:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best query for retrieving a field name in different languages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-query-for-retrieving-a-field-name-in-different/m-p/439539#M174026</link>
      <description>&lt;P&gt;It can be tricky to work with fields which contain spaces in the field name.&lt;BR /&gt;
I think you need to use single quotation marks:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval faulting_application_path=coalesce('Faulting application path','Chemin d’accès de l’application défaillante','Pfad der fehlerhaften Anwendung')
| stats count as Errors by faulting_application_path
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Dec 2018 10:02:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-query-for-retrieving-a-field-name-in-different/m-p/439539#M174026</guid>
      <dc:creator>whrg</dc:creator>
      <dc:date>2018-12-19T10:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best query for retrieving a field name in different languages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-query-for-retrieving-a-field-name-in-different/m-p/439540#M174027</link>
      <description>&lt;P&gt;thanks perfect&lt;BR /&gt;
last question : i do the same thing for another sourcename but it doesnt works. could you help me please??&lt;/P&gt;

&lt;P&gt;index="windows-wmi" sourcetype="WMI:Reliability" Logfile=Application SourceName="Application Hang" &lt;BR /&gt;
| dedup _time &lt;BR /&gt;
| eval 'Application Path'=coalesce('Application Path','Chemin d’accès de l’application','Anwendungspfad') &lt;BR /&gt;
| stats count as Errors by 'Application Path' &lt;BR /&gt;
| rename 'Application Path' as Application &lt;BR /&gt;
| sort -Errors limit=10&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2018 06:26:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-query-for-retrieving-a-field-name-in-different/m-p/439540#M174027</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2018-12-21T06:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best query for retrieving a field name in different languages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-query-for-retrieving-a-field-name-in-different/m-p/439541#M174028</link>
      <description>&lt;P&gt;I think it needs to be&lt;BR /&gt;
| eval "Application Path" = ...&lt;BR /&gt;
and&lt;BR /&gt;
| stats count as Errors by "Application Path"&lt;BR /&gt;
and&lt;BR /&gt;
| rename "Application Path" as Application&lt;/P&gt;

&lt;P&gt;Spaces in field names can be really tricky. Better do&lt;BR /&gt;
eval Application_Path = ...&lt;BR /&gt;
to avoid spaces.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2018 09:04:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-query-for-retrieving-a-field-name-in-different/m-p/439541#M174028</guid>
      <dc:creator>whrg</dc:creator>
      <dc:date>2018-12-21T09:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best query for retrieving a field name in different languages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-query-for-retrieving-a-field-name-in-different/m-p/439542#M174029</link>
      <description>&lt;P&gt;perfect! thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2018 12:08:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-query-for-retrieving-a-field-name-in-different/m-p/439542#M174029</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2018-12-21T12:08:01Z</dc:date>
    </item>
  </channel>
</rss>

